Skip to content

Commit 8a19966

Browse files
committed
Minor patch for parsePasswordHash
1 parent 5a4a8ee commit 8a19966

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

data/txt/sha256sums.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ d69e84f1648cdb907f5d2dd454f03874a4613752b07867510145d51d84b3c56f lib/controller
167167
1966ca704961fb987ab757f0a4afddbf841d1a880631b701487c75cef63d60c3 lib/controller/__init__.py
168168
b2555d11529689f5d7d02bee0741d3228969e2bf29a2b9140bf1560ff60249e7 lib/core/agent.py
169169
b13462712ec5ac07541dba98631ddcda279d210b838f363d15ac97a1413b67a2 lib/core/bigarray.py
170-
abb79fbf4cdd2e57e16d6145ef87e99e9b31a4d04f6c29dcebef4b48cf3f727e lib/core/common.py
170+
df59ab7c23d2cf96ea951a9a91f95865b79008ff4131e9178b346e274d920dff lib/core/common.py
171171
a6397b10de7ae7c56ed6b0fa3b3c58eb7a9dbede61bf93d786e73258175c981e lib/core/compat.py
172172
e37bfd314a46699b14e1c8a5ea851d546d3a36bea8e5f37466ef2921ff78fefd lib/core/convert.py
173173
c03dc585f89642cfd81b087ac2723e3e1bb3bfa8c60e6f5fe58ef3b0113ebfe6 lib/core/data.py
@@ -188,7 +188,7 @@ c03dc585f89642cfd81b087ac2723e3e1bb3bfa8c60e6f5fe58ef3b0113ebfe6 lib/core/data.
188188
48797d6c34dd9bb8a53f7f3794c85f4288d82a9a1d6be7fcf317d388cb20d4b3 lib/core/replication.py
189189
0b8c38a01bb01f843d94a6c5f2075ee47520d0c4aa799cecea9c3e2c5a4a23a6 lib/core/revision.py
190190
888daba83fd4a34e9503fe21f01fef4cc730e5cde871b1d40e15d4cbc847d56c lib/core/session.py
191-
f707285b42754718c42d8298663681118f42710371310111f70ce5037356a7cb lib/core/settings.py
191+
137217753ef641cf3c1488a9f3b39f4097fa471579263922f6ad4bcdb976ba03 lib/core/settings.py
192192
cd5a66deee8963ba8e7e9af3dd36eb5e8127d4d68698811c29e789655f507f82 lib/core/shell.py
193193
bcb5d8090d5e3e0ef2a586ba09ba80eef0c6d51feb0f611ed25299fbb254f725 lib/core/subprocessng.py
194194
70ea3768f1b3062b22d20644df41c86238157ec80dd43da40545c620714273c6 lib/core/target.py

lib/core/common.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,10 +1464,13 @@ def parsePasswordHash(password):
14641464
retVal = "%s\n" % password
14651465
retVal += "%sheader: %s\n" % (blank, password[:6])
14661466
retVal += "%ssalt: %s\n" % (blank, password[6:14])
1467-
retVal += "%smixedcase: %s\n" % (blank, password[14:54])
14681467

1469-
if password[54:]:
1470-
retVal += "%suppercase: %s" % (blank, password[54:])
1468+
if password.startswith("0x0200"):
1469+
retVal += "%shash: %s\n" % (blank, password[14:])
1470+
else:
1471+
retVal += "%smixedcase: %s\n" % (blank, password[14:54])
1472+
if password[54:]:
1473+
retVal += "%suppercase: %s" % (blank, password[54:])
14711474

14721475
return retVal
14731476

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty import six
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.10.6.46"
23+
VERSION = "1.10.6.47"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

0 commit comments

Comments
 (0)