Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d6606a8

Browse files
committed
Patch to prevent problems like Issue #381
1 parent cfcf8a3 commit d6606a8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/core/option.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,10 @@ def _parseBurpLog(content):
324324
scheme = "https"
325325
port = port or "443"
326326

327+
if not host:
328+
errMsg = "invalid format of a request file"
329+
raise SqlmapSyntaxException, errMsg
330+
327331
if not url.startswith("http"):
328332
url = "%s://%s:%s%s" % (scheme or "http", host, port or "80", url)
329333
scheme = None

0 commit comments

Comments
 (0)