diff --git a/lib/core/agent.py b/lib/core/agent.py index 075f1e058..65c0bc281 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -219,8 +219,8 @@ class Agent: inferenceQuery = queries[kb.misc.testedDbms].inference.query payload = payload.replace("[INFERENCE]", inferenceQuery) else: - errMsg = "invalid usage of inference payload without knowledge " - errMsg += "of underlying DBMS" + errMsg = "invalid usage of inference payload without " + errMsg += "knowledge of underlying DBMS" raise sqlmapNoneDataException, errMsg return payload diff --git a/lib/core/common.py b/lib/core/common.py index 66d287e71..ef085000f 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1609,6 +1609,7 @@ def extractRegexResult(regex, content, flags=0): if regex and content and '?P' in regex: match = re.search(regex, content, flags) + if match: retVal = match.group("result")