From 0ffffef088b1f6e1a9b6017b79c18a55ef3be096 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Sun, 31 Oct 2010 14:22:32 +0000 Subject: [PATCH] Implemented --tamper for direct connection too (-d) --- lib/core/agent.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/core/agent.py b/lib/core/agent.py index 0a3c268f8..4e0769d3a 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -42,6 +42,10 @@ class Agent: elif query.startswith("; "): query = query.replace("; ", "", 1) + if kb.tamperFunctions: + for function in kb.tamperFunctions: + query = function(query) + return query def payload(self, place=None, parameter=None, value=None, newValue=None, negative=False, falseCond=False):