File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -5385,11 +5385,12 @@ def _parseBurpLog(content):
5385
5385
elif key .upper () == HTTP_HEADER .HOST .upper ():
5386
5386
if '://' in value :
5387
5387
scheme , value = value .split ('://' )[:2 ]
5388
- splitValue = value .split (":" )
5389
- host = splitValue [0 ]
5390
5388
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
5393
5394
5394
5395
# Avoid to add a static content length header to
5395
5396
# headers and consider the following lines as
Original file line number Diff line number Diff line change 20
20
from thirdparty .six import unichr as _unichr
21
21
22
22
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23
- VERSION = "1.7.4.3 "
23
+ VERSION = "1.7.4.4 "
24
24
TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
25
25
TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
26
26
VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
You can’t perform that action at this time.
0 commit comments