mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
Minor bug fix for --forms
This commit is contained in:
parent
6525e08d6b
commit
76ce9cc888
|
@ -208,8 +208,7 @@ def start():
|
||||||
if conf.multipleTargets:
|
if conf.multipleTargets:
|
||||||
hostCount += 1
|
hostCount += 1
|
||||||
if conf.forms:
|
if conf.forms:
|
||||||
name = kb.formNames[(targetUrl, targetMethod, targetData, targetCookie)]
|
message = "[#%d] form:\n%s %s" % (hostCount, conf.method or HTTPMETHOD.GET, targetUrl)
|
||||||
message = "[#%d] %s:\n%s %s" % (hostCount, "form%s" % (" '%s'" % name if name else ""), conf.method or HTTPMETHOD.GET, targetUrl)
|
|
||||||
else:
|
else:
|
||||||
message = "%s %d:\n%s %s" % ("url", hostCount, conf.method or HTTPMETHOD.GET, targetUrl)
|
message = "%s %d:\n%s %s" % ("url", hostCount, conf.method or HTTPMETHOD.GET, targetUrl)
|
||||||
|
|
||||||
|
|
|
@ -373,7 +373,7 @@ def __findPageForms():
|
||||||
|
|
||||||
target = (url, method, data, conf.cookie)
|
target = (url, method, data, conf.cookie)
|
||||||
kb.targetUrls.add(target)
|
kb.targetUrls.add(target)
|
||||||
kb.formNames[target] = form.name
|
kb.formNames.append(target)
|
||||||
else:
|
else:
|
||||||
errMsg = "there were no forms found at a given target url"
|
errMsg = "there were no forms found at a given target url"
|
||||||
raise sqlmapGenericException, errMsg
|
raise sqlmapGenericException, errMsg
|
||||||
|
@ -1142,7 +1142,7 @@ def __setKnowledgeBaseAttributes():
|
||||||
kb.dep = None
|
kb.dep = None
|
||||||
kb.docRoot = None
|
kb.docRoot = None
|
||||||
kb.dynamicMarkings = []
|
kb.dynamicMarkings = []
|
||||||
kb.formNames = advancedDict()
|
kb.formNames = []
|
||||||
kb.headersCount = 0
|
kb.headersCount = 0
|
||||||
kb.headersFp = {}
|
kb.headersFp = {}
|
||||||
kb.hintValue = None
|
kb.hintValue = None
|
||||||
|
|
Loading…
Reference in New Issue
Block a user