Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e9ae44c

Browse files
committed
Implementation for an #162
1 parent 0ad3846 commit e9ae44c

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

lib/controller/checks.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,8 +520,7 @@ def genCmpPayload():
520520
break
521521

522522
if injectable is True:
523-
# There is no need to perform this test with others
524-
# boundaries
523+
kb.vulnHosts.add(conf.hostname)
525524
break
526525

527526
# Reset forced back-end DBMS value

lib/controller/controller.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def start():
236236
action()
237237
return True
238238

239-
if conf.url and not any([conf.forms, conf.crawlDepth]):
239+
if conf.url and not any((conf.forms, conf.crawlDepth)):
240240
kb.targetUrls.add((conf.url, conf.method, conf.data, conf.cookie))
241241

242242
if conf.configFile and not kb.targetUrls:
@@ -277,6 +277,7 @@ def start():
277277
testSqlInj = True
278278

279279
testSqlInj &= (conf.hostname, conf.path, None, None) not in kb.testedParams
280+
testSqlInj &= conf.hostname not in kb.vulnHosts
280281

281282
if not testSqlInj:
282283
infoMsg = "skipping '%s'" % targetUrl

lib/core/option.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,6 +1569,7 @@ def __setKnowledgeBaseAttributes(flushAll=True):
15691569
kb.testedParams = set()
15701570
kb.userAgents = None
15711571
kb.vainRun = True
1572+
kb.vulnHosts = set()
15721573
kb.wordlists = None
15731574

15741575
def __useWizardInterface():

0 commit comments

Comments
 (0)