From 6e4b65a822984a73539410f9c66e99316533319c Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Sat, 15 Jan 2011 23:28:31 +0000 Subject: [PATCH] Minor refactoring --- lib/request/direct.py | 2 +- lib/request/inject.py | 4 ---- lib/techniques/blind/inference.py | 3 --- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/request/direct.py b/lib/request/direct.py index 366eadb57..4703049d8 100644 --- a/lib/request/direct.py +++ b/lib/request/direct.py @@ -35,7 +35,7 @@ def direct(query, content=True): select = True break - logger.debug("query: %s" % query) + logger.log(9, query) if not select: output = timeout(func=conf.dbmsConnector.execute, args=(query,), duration=conf.timeout, default=None) diff --git a/lib/request/inject.py b/lib/request/inject.py index 1247bcf08..8dc1cf43c 100644 --- a/lib/request/inject.py +++ b/lib/request/inject.py @@ -492,10 +492,6 @@ def goStacked(expression, silent=False): comment = queries[getIdentifiedDBMS()].comment.query query = agent.prefixQuery("; %s" % expression) query = agent.suffixQuery("%s;%s" % (query, comment)) - - debugMsg = "query: %s" % query - logger.debug(debugMsg) - payload = agent.payload(newValue=query) page, _ = Request.queryPage(payload, content=True, silent=silent, noteResponseTime=False) diff --git a/lib/techniques/blind/inference.py b/lib/techniques/blind/inference.py index 327ae9a13..b6e951b52 100644 --- a/lib/techniques/blind/inference.py +++ b/lib/techniques/blind/inference.py @@ -81,9 +81,6 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None else: expressionUnescaped = unescaper.unescape(expression) - debugMsg = "query: %s" % expressionUnescaped - logger.debug(debugMsg) - if length and not isinstance(length, int) and length.isdigit(): length = int(length)