mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Fix forced SSL port rewrite
This commit is contained in:
parent
bfe39d010f
commit
8cac5fdab6
3 changed files with 4 additions and 4 deletions
|
|
@ -20,7 +20,7 @@ from lib.core.enums import OS
|
|||
from thirdparty import six
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.10.6.9"
|
||||
VERSION = "1.10.6.10"
|
||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||
|
|
|
|||
|
|
@ -422,7 +422,7 @@ class Connect(object):
|
|||
elif target:
|
||||
if conf.forceSSL:
|
||||
url = re.sub(r"(?i)\A(http|ws):", r"\g<1>s:", url)
|
||||
url = re.sub(r"(?i):80/", ":443/", url)
|
||||
url = re.sub(r"(?i):80(?=[/?#]|\Z)", ":443", url)
|
||||
|
||||
if PLACE.GET in conf.parameters and not get:
|
||||
get = conf.parameters[PLACE.GET]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue