mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-13 01:23:04 +03:00
Minor possible bug fix
This commit is contained in:
parent
e73e06069b
commit
d8bfa76dca
|
@ -582,7 +582,7 @@ def parsePasswordHash(password):
|
||||||
if not password or password == " ":
|
if not password or password == " ":
|
||||||
password = "NULL"
|
password = "NULL"
|
||||||
|
|
||||||
if kb.dbms == "Microsoft SQL Server" and password != "NULL":
|
if kb.dbms == "Microsoft SQL Server" and password != "NULL" and isHexEncodedString(password):
|
||||||
hexPassword = password
|
hexPassword = password
|
||||||
password = "%s\n" % hexPassword
|
password = "%s\n" % hexPassword
|
||||||
password += "%sheader: %s\n" % (blank, hexPassword[:6])
|
password += "%sheader: %s\n" % (blank, hexPassword[:6])
|
||||||
|
@ -1209,7 +1209,7 @@ def isHexEncodedString(subject):
|
||||||
False
|
False
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return re.match(r"\A[0-9a-fA-F]+\Z", subject) is not None
|
return re.match(r"\A[0-9a-fA-Fx]+\Z", subject) is not None
|
||||||
|
|
||||||
def getConsoleWidth(default=80):
|
def getConsoleWidth(default=80):
|
||||||
width = None
|
width = None
|
||||||
|
|
Loading…
Reference in New Issue
Block a user