Minor bug fix

This commit is contained in:
Miroslav Stampar 2014-07-19 23:17:23 +02:00
parent 0eb5fb1e5a
commit 3cfa63646b
2 changed files with 8 additions and 7 deletions

View File

@ -275,7 +275,7 @@ class Agent(object):
inferenceQuery = inference.query
payload = payload.replace("[INFERENCE]", inferenceQuery)
else:
elif not kb.testMode:
errMsg = "invalid usage of inference payload without "
errMsg += "knowledge of underlying DBMS"
raise SqlmapNoneDataException(errMsg)

View File

@ -286,6 +286,7 @@ def _goBooleanProxy(expression):
initTechnique(kb.technique)
if conf.dnsName:
query = agent.prefixQuery(kb.injection.data[kb.technique].vector)
query = agent.suffixQuery(query)
payload = agent.payload(newValue=query)