minor update

This commit is contained in:
Miroslav Stampar 2010-12-06 00:14:08 +00:00
parent 5189f138d7
commit a43d252ae9

View File

@ -212,6 +212,10 @@ class Agent:
if kb.dbms is not None:
inferenceQuery = queries[kb.dbms].inference.query
payload = payload.replace("[INFERENCE]", inferenceQuery)
elif "[INFERENCE]" in payload:
errMsg = "invalid usage of inference payload without knowledge "
errMsg += "of underlying DBMS"
raise sqlmapNoneDataException, errMsg
return payload