mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-26 07:59:52 +03:00
Fixed the problem of using -r to parse the request where host:ip does not splice the port.
This commit is contained in:
parent
507c719bef
commit
2cb46c0839
|
@ -5401,8 +5401,6 @@ def parseRequestFile(reqFile, checkParams=True):
|
||||||
scheme, value = value.split('://')[:2]
|
scheme, value = value.split('://')[:2]
|
||||||
|
|
||||||
port = extractRegexResult(r":(?P<result>\d+)\Z", value)
|
port = extractRegexResult(r":(?P<result>\d+)\Z", value)
|
||||||
if port:
|
|
||||||
value = value[:-(1 + len(port))]
|
|
||||||
|
|
||||||
host = value
|
host = value
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user