From 3d87489de5af9959d9063cd5becc0115a07c4772 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 7 Dec 2010 08:05:03 +0000 Subject: [PATCH] minor update --- lib/controller/checks.py | 6 +----- lib/core/settings.py | 6 ++---- xml/payloads.xml | 6 +++--- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index ff866fa36..b9b441293 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -46,7 +46,6 @@ from lib.core.exception import sqlmapUserQuitException from lib.core.session import setString from lib.core.session import setRegexp from lib.core.settings import TIME_MIN_DELTA -from lib.core.settings import TIME_N_RESPONSE from lib.request.connect import Connect as Request from plugins.dbms.firebird.syntax import Syntax as Firebird from plugins.dbms.postgresql.syntax import Syntax as PostgreSQL @@ -360,14 +359,11 @@ def checkSqlInjection(place, parameter, value): injectable = True elif check == "[DELAYED]": - if duration >= max(TIME_MIN_DELTA, TIME_N_RESPONSE * kb.responseTime): + if duration >= max(TIME_MIN_DELTA, kb.responseTime): infoMsg = "%s parameter '%s' is '%s' injectable " % (place, parameter, title) logger.info(infoMsg) injectable = True - else: - import pdb - pdb.set_trace() # Restore old value of socket timeout socket.setdefaulttimeout(popValue()) diff --git a/lib/core/settings.py b/lib/core/settings.py index 1d66109d4..b6168d086 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -48,10 +48,8 @@ DUMP_STOP_MARKER = "__STOP__" PAYLOAD_DELIMITER = "\x00" -# settings used for delayed time payloads -TIME_MIN_DELTA = 1 # minimum difference of loading time in seconds -TIME_N_RESPONSE = 3 # minimum multiplicant of response time - +# minimum difference of loading time in seconds for delayed time payloads +TIME_MIN_DELTA = 2 # System variables IS_WIN = subprocess.mswindows diff --git a/xml/payloads.xml b/xml/payloads.xml index 9011ca5de..f36037f09 100644 --- a/xml/payloads.xml +++ b/xml/payloads.xml @@ -1267,7 +1267,7 @@ Formats: 0 1 - ; SELECT [RANDNUM] WHERE EXISTS(SELECT * FROM GENERATE_SERIES(1, 3000000)); + ; SELECT [RANDNUM] WHERE EXISTS(SELECT * FROM GENERATE_SERIES(1, 10000000)); -- @@ -1503,7 +1503,7 @@ Formats: 1,2,3 1 - AND EXISTS(SELECT * FROM GENERATE_SERIES(1, 3000000)) + AND EXISTS(SELECT * FROM GENERATE_SERIES(1, 10000000)) @@ -1658,7 +1658,7 @@ Formats: 1,2,3 2 - OR EXISTS(SELECT * FROM GENERATE_SERIES(1, 3000000)) + OR EXISTS(SELECT * FROM GENERATE_SERIES(1, 10000000))