diff --git a/lib/core/agent.py b/lib/core/agent.py index 6e4e391d9..04e8f5e31 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -523,6 +523,9 @@ class Agent: if comment is None: comment = kb.unionComment + if query.startswith("SELECT "): + query = query[len("SELECT "):] + inbandQuery = self.prefixQuery("UNION ALL SELECT ") if query.startswith("TOP"):