From 7c2b3afafbfa00e7be8ae6ede7011fc37ef56145 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 19 Mar 2011 17:37:26 +0000 Subject: [PATCH] minor fix (-r required Content-Length which is a part of Burp log and as we share the parsing logic this was a headache for -r) --- lib/core/option.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/core/option.py b/lib/core/option.py index e752d6b6c..b4af95e9a 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -215,9 +215,11 @@ def __feedTargetsDict(reqFile, addedTargetUrls): for line in lines: if len(line) == 0 or line == "\n": - continue + if method == HTTPMETHOD.POST: + data = "" + params = True - if line.startswith("GET ") or line.startswith("POST "): + elif (line.startswith("GET ") or line.startswith("POST ")) and " HTTP/" in line: if line.startswith("GET "): index = 4 else: