From f0d3e6c565bc7739a190320ae319048afe34ac38 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 24 May 2010 09:28:20 +0000 Subject: [PATCH] fix --- lib/techniques/blind/inference.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/techniques/blind/inference.py b/lib/techniques/blind/inference.py index d88a51a41..9ce9f96a5 100644 --- a/lib/techniques/blind/inference.py +++ b/lib/techniques/blind/inference.py @@ -183,12 +183,14 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None if type(charTbl) != xrange: charTbl = charTbl[:position] else: - charTbl = xrange(charTbl[0], charTbl[position] + 1) + charTbl = xrange(charTbl[0], charTbl[position]) if len(charTbl) == 1: if maxValue == 1: return None elif minValue == maxChar: + import pdb + pdb.set_trace() charTbl = xrange( maxChar + 1, (maxChar + 1) << 8 ) maxChar = maxValue = charTbl[-1] minValue = charTbl[0]