From 2d3f0920c5aba1f2353250267f83700021f6ab4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Niew=C3=B6hner?= Date: Wed, 9 Oct 2019 11:36:37 +0200 Subject: [PATCH] Fix broken requests file parsing due to missing indent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 4e7eefe2a introduced the possibility to pass multiple requests files. Due to missing indent, the url parameter does not get set if it is not a Burp Suite log or Web Scarab file and thus breaks parsing of regular request files. Fix this by adding the missing indent. Signed-off-by: Michael Niewöhner --- lib/core/option.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/core/option.py b/lib/core/option.py index 8b38a6866..f9f34970a 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -312,10 +312,10 @@ def _setRequestFromFile(): conf.multipleTargets = True seen.add(url) - if url is None: - errMsg = "specified file '%s' " % requestFile - errMsg += "does not contain a valid HTTP request" - raise SqlmapDataException(errMsg) + if url is None: + errMsg = "specified file '%s' " % requestFile + errMsg += "does not contain a valid HTTP request" + raise SqlmapDataException(errMsg) if conf.secondReq: conf.secondReq = safeExpandUser(conf.secondReq)