mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-07 01:03:43 +03:00
Cosmetics
This commit is contained in:
parent
2b2b7dc3a6
commit
effd2ca0e3
|
@ -219,8 +219,8 @@ class Agent:
|
||||||
inferenceQuery = queries[kb.misc.testedDbms].inference.query
|
inferenceQuery = queries[kb.misc.testedDbms].inference.query
|
||||||
payload = payload.replace("[INFERENCE]", inferenceQuery)
|
payload = payload.replace("[INFERENCE]", inferenceQuery)
|
||||||
else:
|
else:
|
||||||
errMsg = "invalid usage of inference payload without knowledge "
|
errMsg = "invalid usage of inference payload without "
|
||||||
errMsg += "of underlying DBMS"
|
errMsg += "knowledge of underlying DBMS"
|
||||||
raise sqlmapNoneDataException, errMsg
|
raise sqlmapNoneDataException, errMsg
|
||||||
|
|
||||||
return payload
|
return payload
|
||||||
|
|
|
@ -1609,6 +1609,7 @@ def extractRegexResult(regex, content, flags=0):
|
||||||
|
|
||||||
if regex and content and '?P<result>' in regex:
|
if regex and content and '?P<result>' in regex:
|
||||||
match = re.search(regex, content, flags)
|
match = re.search(regex, content, flags)
|
||||||
|
|
||||||
if match:
|
if match:
|
||||||
retVal = match.group("result")
|
retVal = match.group("result")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user