Minor fix

This commit is contained in:
Bernardo Damele 2008-10-16 15:39:25 +00:00
parent a5b2366033
commit e5aa557bd4
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ sqlmap (0.6.1-1) stable; urgency=low
wrap sqlmap in Metasploit and any other tool; wrap sqlmap in Metasploit and any other tool;
* Minor enhancement to save also the length of query output in the * Minor enhancement to save also the length of query output in the
session file when retrieving the query output length for ETA or for session file when retrieving the query output length for ETA or for
resume purposes. TODO: fix for ETA resume purposes.
-- Bernardo Damele A. G. <bernardo.damele@gmail.com> Fri, 10 Oct 2008 10:00:00 +0100 -- Bernardo Damele A. G. <bernardo.damele@gmail.com> Fri, 10 Oct 2008 10:00:00 +0100

View File

@ -55,13 +55,13 @@ def __getFieldsProxy(expression):
def __goInference(payload, expression): def __goInference(payload, expression):
start = time.time() start = time.time()
dataToSessionFile("[%s][%s][%s][%s][" % (conf.url, kb.injPlace, conf.parameters[kb.injPlace], expression))
if ( conf.eta or conf.threads > 1 ) and kb.dbms: if ( conf.eta or conf.threads > 1 ) and kb.dbms:
_, length, _ = queryOutputLength(expression, payload) _, length, _ = queryOutputLength(expression, payload)
else: else:
length = None length = None
dataToSessionFile("[%s][%s][%s][%s][" % (conf.url, kb.injPlace, conf.parameters[kb.injPlace], expression))
count, value = bisection(payload, expression, length=length) count, value = bisection(payload, expression, length=length)
duration = int(time.time() - start) duration = int(time.time() - start)