mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Fixes #2809
This commit is contained in:
parent
7c5b051d60
commit
e7268ffb4d
3 changed files with 9 additions and 3 deletions
|
|
@ -366,6 +366,12 @@ def unix_md5_passwd(password, salt, magic="$1$", **kwargs):
|
|||
if isinstance(password, unicode):
|
||||
password = password.encode(UNICODE_ENCODING)
|
||||
|
||||
if isinstance(magic, unicode):
|
||||
magic = magic.encode(UNICODE_ENCODING)
|
||||
|
||||
if isinstance(salt, unicode):
|
||||
salt = salt.encode(UNICODE_ENCODING)
|
||||
|
||||
salt = salt[:8]
|
||||
ctx = password + magic + salt
|
||||
final = md5(password + salt + password).digest()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue