From ac467bc4538627f49eeb38e05513688fc7d143b2 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 28 Sep 2015 09:54:41 +0200 Subject: [PATCH] Fixes #1437 --- lib/techniques/blind/inference.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/techniques/blind/inference.py b/lib/techniques/blind/inference.py index 3a6a0cdb7..11e78ed6c 100644 --- a/lib/techniques/blind/inference.py +++ b/lib/techniques/blind/inference.py @@ -232,8 +232,10 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None # Used for gradual expanding into unicode charspace shiftTable = [2, 2, 3, 3, 5, 4] - if CHAR_INFERENCE_MARK in payload and ord('\n') in charTbl: - charTbl.remove(ord('\n')) + if "'%s'" % CHAR_INFERENCE_MARK in payload: + for char in ('\n', '\r'): + if ord(char) in charTbl: + charTbl.remove(ord(char)) if not charTbl: return None