Cosmetics

This commit is contained in:
Bernardo Damele 2010-12-07 12:32:58 +00:00
parent 2b2b7dc3a6
commit effd2ca0e3
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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")