From a43d252ae9d71e7ba578dde9f11700f8e17166f1 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 6 Dec 2010 00:14:08 +0000 Subject: [PATCH] minor update --- lib/core/agent.py | 4 ++++ 1 file changed, 4 insertions(+) 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