From a8f02916a95e81bbef55502101f5673a648ed635 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 7 Jan 2013 18:39:35 +0100 Subject: [PATCH] Minor fix (Issue #305) --- lib/techniques/blind/inference.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/techniques/blind/inference.py b/lib/techniques/blind/inference.py index 873009f7a..88c8e4d37 100644 --- a/lib/techniques/blind/inference.py +++ b/lib/techniques/blind/inference.py @@ -116,7 +116,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None if length == 0: return 0, "" - if (lastChar > 0 or firstChar > 0): + if length and (lastChar > 0 or firstChar > 0): length = min(length, lastChar or length) - firstChar showEta = conf.eta and isinstance(length, int)