diff --git a/lib/core/agent.py b/lib/core/agent.py index 61ba770e0..e4b02e4eb 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -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