mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-08 22:03:11 +03:00
Minor bug fix
This commit is contained in:
parent
d8e5585c66
commit
4d46f997a7
|
@ -616,7 +616,7 @@ def parseTargetDirect():
|
||||||
remote = False
|
remote = False
|
||||||
|
|
||||||
for dbms in SUPPORTED_DBMS:
|
for dbms in SUPPORTED_DBMS:
|
||||||
details = re.search("^(?P<dbms>%s)://(?P<credentials>(?P<user>.+?)\:(?P<pass>.+?)\@)?(?P<remote>(?P<hostname>.+?)\:(?P<port>[\d]+)\/)?(?P<db>[\w\d\.\_\-\/]+?)$" % dbms, conf.direct, re.I)
|
details = re.search("^(?P<dbms>%s)://(?P<credentials>(?P<user>.+?)\:(?P<pass>.*?)\@)?(?P<remote>(?P<hostname>.+?)\:(?P<port>[\d]+)\/)?(?P<db>[\w\d\.\_\-\/]+?)$" % dbms, conf.direct, re.I)
|
||||||
|
|
||||||
if details:
|
if details:
|
||||||
conf.dbms = details.group('dbms')
|
conf.dbms = details.group('dbms')
|
||||||
|
@ -628,6 +628,9 @@ def parseTargetDirect():
|
||||||
conf.dbmsUser = str()
|
conf.dbmsUser = str()
|
||||||
conf.dbmsPass = str()
|
conf.dbmsPass = str()
|
||||||
|
|
||||||
|
if not conf.dbmsPass:
|
||||||
|
conf.dbmsPass = None
|
||||||
|
|
||||||
if details.group('remote'):
|
if details.group('remote'):
|
||||||
remote = True
|
remote = True
|
||||||
conf.hostname = details.group('hostname')
|
conf.hostname = details.group('hostname')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user