Skip to content

Commit 3b3c2a5

Browse files
committed
Fixes #5386
1 parent 4f76144 commit 3b3c2a5

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

lib/core/common.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5385,11 +5385,12 @@ def _parseBurpLog(content):
53855385
elif key.upper() == HTTP_HEADER.HOST.upper():
53865386
if '://' in value:
53875387
scheme, value = value.split('://')[:2]
5388-
splitValue = value.split(":")
5389-
host = splitValue[0]
53905388

5391-
if len(splitValue) > 1:
5392-
port = filterStringValue(splitValue[1], "[0-9]")
5389+
port = extractRegexResult(r":(?P<result>\d+)\Z", value)
5390+
if port:
5391+
value = value[:-(1 + len(port))]
5392+
5393+
host = value
53935394

53945395
# Avoid to add a static content length header to
53955396
# headers and consider the following lines as

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.7.4.3"
23+
VERSION = "1.7.4.4"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

0 commit comments

Comments
 (0)