mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-18 04:20:35 +03:00
Implementation for an Issue #507
This commit is contained in:
parent
4929cff0c0
commit
52a71546d0
|
@ -287,7 +287,13 @@ def start():
|
||||||
if paramKey not in kb.testedParams:
|
if paramKey not in kb.testedParams:
|
||||||
testSqlInj = True
|
testSqlInj = True
|
||||||
|
|
||||||
testSqlInj &= conf.hostname not in kb.vulnHosts
|
if testSqlInj and conf.hostname in kb.vulnHosts:
|
||||||
|
if kb.skipVulnHost is None:
|
||||||
|
message = "vulnerability has already been detected "
|
||||||
|
message += "against '%s'. Do you want to skip " % conf.hostname
|
||||||
|
message += "further tests involving it? [Y/n]"
|
||||||
|
kb.skipVulnHost = readInput(message, default="Y").upper() != 'N'
|
||||||
|
testSqlInj = not kb.skipVulnHost
|
||||||
|
|
||||||
if not testSqlInj:
|
if not testSqlInj:
|
||||||
infoMsg = "skipping '%s'" % targetUrl
|
infoMsg = "skipping '%s'" % targetUrl
|
||||||
|
|
|
@ -1673,6 +1673,7 @@ def _setKnowledgeBaseAttributes(flushAll=True):
|
||||||
kb.resumeValues = True
|
kb.resumeValues = True
|
||||||
kb.safeCharEncode = False
|
kb.safeCharEncode = False
|
||||||
kb.singleLogFlags = set()
|
kb.singleLogFlags = set()
|
||||||
|
kb.skipVulnHost = None
|
||||||
kb.reduceTests = None
|
kb.reduceTests = None
|
||||||
kb.stickyDBMS = False
|
kb.stickyDBMS = False
|
||||||
kb.stickyLevel = None
|
kb.stickyLevel = None
|
||||||
|
|
Loading…
Reference in New Issue
Block a user