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,13 +286,14 @@ def _goBooleanProxy(expression):
initTechnique(kb.technique)
query = agent.prefixQuery(kb.injection.data[kb.technique].vector)
query = agent.suffixQuery(query)
payload = agent.payload(newValue=query)
output = _goDns(payload, expression)
if conf.dnsName:
query = agent.prefixQuery(kb.injection.data[kb.technique].vector)
query = agent.suffixQuery(query)
payload = agent.payload(newValue=query)
output = _goDns(payload, expression)
if output is not None:
return output
if output is not None:
return output
vector = kb.injection.data[kb.technique].vector
vector = vector.replace("[INFERENCE]", expression)