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):
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
Original file line number Diff line number Diff line change 2020from 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 "
2424TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2525TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2626VERSION_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