Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e73e060 commit d8bfa76Copy full SHA for d8bfa76
1 file changed
lib/core/common.py
@@ -582,7 +582,7 @@ def parsePasswordHash(password):
582
if not password or password == " ":
583
password = "NULL"
584
585
- if kb.dbms == "Microsoft SQL Server" and password != "NULL":
+ if kb.dbms == "Microsoft SQL Server" and password != "NULL" and isHexEncodedString(password):
586
hexPassword = password
587
password = "%s\n" % hexPassword
588
password += "%sheader: %s\n" % (blank, hexPassword[:6])
@@ -1209,7 +1209,7 @@ def isHexEncodedString(subject):
1209
False
1210
"""
1211
1212
- 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
1213
1214
def getConsoleWidth(default=80):
1215
width = None
0 commit comments