Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f125f64

Browse files
committed
Minor style update (marker for empty cracked password)
1 parent 12012b3 commit f125f64

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

lib/core/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.2.9.1"
22+
VERSION = "1.2.9.2"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
@@ -429,6 +429,9 @@
429429
# Display hash attack info every mod number of items
430430
HASH_MOD_ITEM_DISPLAY = 11
431431

432+
# Display marker for (cracked) empty password
433+
HASH_EMPTY_PASSWORD_MARKER = "<empty>"
434+
432435
# Maximum integer value
433436
MAX_INT = sys.maxint
434437

lib/utils/hash.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
from lib.core.settings import COMMON_USER_COLUMNS
7676
from lib.core.settings import DEV_EMAIL_ADDRESS
7777
from lib.core.settings import DUMMY_USER_PREFIX
78+
from lib.core.settings import HASH_EMPTY_PASSWORD_MARKER
7879
from lib.core.settings import HASH_MOD_ITEM_DISPLAY
7980
from lib.core.settings import HASH_RECOGNITION_QUIT_THRESHOLD
8081
from lib.core.settings import IS_WIN
@@ -684,7 +685,7 @@ def attackDumpedTable():
684685
value = table[column]['values'][i]
685686

686687
if value and value.lower() in lut:
687-
table[column]['values'][i] = "%s (%s)" % (getUnicode(table[column]['values'][i]), getUnicode(lut[value.lower()]))
688+
table[column]['values'][i] = "%s (%s)" % (getUnicode(table[column]['values'][i]), getUnicode(lut[value.lower()] or HASH_EMPTY_PASSWORD_MARKER))
688689
table[column]['length'] = max(table[column]['length'], len(table[column]['values'][i]))
689690

690691
def hashRecognition(value):

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
5050
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
5151
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
5252
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
53-
153ad66f2a6789909f4a4702650397dc lib/core/settings.py
53+
5e2fea9a1e0cc3d12578dbcf079dba67 lib/core/settings.py
5454
dd68a9d02fccb4fa1428b20e15b0db5d lib/core/shell.py
5555
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5656
815d1cf27f0f8738d81531e73149867d lib/core/target.py
@@ -109,7 +109,7 @@ f9867bbfcd6d31916ca73e72e95fd881 lib/utils/deps.py
109109
f7af65aa47329d021e2b2cc8521b42a4 lib/utils/getch.py
110110
7af29f61302c8693cd6436d4b69e22d3 lib/utils/har.py
111111
062e4e8fc43ac54305a75ddd0d482f81 lib/utils/hashdb.py
112-
05dbc49838ca0454ce401ad616acf8c5 lib/utils/hash.py
112+
d0f4d56c5d6a09a4635035e233d4a782 lib/utils/hash.py
113113
011d2dbf589e0faa0deca61a651239cc lib/utils/htmlentities.py
114114
1e5532ede194ac9c083891c2f02bca93 lib/utils/__init__.py
115115
010d8327239d33af4ce9f25683cfc012 lib/utils/pivotdumptable.py

0 commit comments

Comments
 (0)