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

Skip to content

Commit 0a21635

Browse files
committed
Adding a minor thing (history reasons)
1 parent 83aa1ac commit 0a21635

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

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

lib/utils/hash.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import base64
3434
import binascii
3535
import gc
36+
import hashlib
3637
import os
3738
import re
3839
import tempfile
@@ -247,6 +248,18 @@ def oracle_old_passwd(password, username, uppercase=True): # prior to version '
247248

248249
return retVal.upper() if uppercase else retVal.lower()
249250

251+
def md4_generic_passwd(password, uppercase=False):
252+
"""
253+
>>> md4_generic_passwd(password='testpass', uppercase=False)
254+
'5b4d300688f19c8fd65b8d6ccf98e0ae'
255+
"""
256+
257+
password = getBytes(password)
258+
259+
retVal = hashlib.new("md4", password).hexdigest()
260+
261+
return retVal.upper() if uppercase else retVal.lower()
262+
250263
def md5_generic_passwd(password, uppercase=False):
251264
"""
252265
>>> md5_generic_passwd(password='testpass', uppercase=False)

0 commit comments

Comments
 (0)