diff --git a/consts.js b/consts.js index c7a272b..cd39f27 100644 --- a/consts.js +++ b/consts.js @@ -6,3 +6,5 @@ exports.VULNTYPE_REFLECTED = "reflected"; exports.VULNTYPE_STORED = "stored"; exports.VULNTYPE_WARNING = "warning"; +exports.DEF_MAXEXECTIME = 300000; + diff --git a/domdig.js b/domdig.js index 0a1337d..bf044b9 100755 --- a/domdig.js +++ b/domdig.js @@ -221,6 +221,7 @@ function ps(message){ const options = utils.parseArgs(argv, targetUrl); options.crawlmode = "random" + if(!options.maxExecTime) options.maxExecTime = consts.DEF_MAXEXECTIME; const checks = argv.C ? argv.C.split(",") : [consts.CHECKTYPE_DOM, consts.CHECKTYPE_REFLECTED, consts.CHECKTYPE_STORED]; var payloads = argv.P ? utils.loadPayloadsFromFile(argv.P) : defpayloads; diff --git a/package.json b/package.json index 1c12fa5..2a1985d 100755 --- a/package.json +++ b/package.json @@ -4,12 +4,7 @@ "description": "DOM XSS scanner for Single Page Applications", "main": "domdig.js", "dependencies": { - "htcrawl": "^1.0.1", - "minimist": "^1.2.0", - "chalk": "^2.4.2" - }, - "devDependencies": { - "htcrawl": "^1.0.1", + "htcrawl": "fcavallarin/htcrawl#master", "minimist": "^1.2.0", "chalk": "^2.4.2" },