mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
More DREI updates
This commit is contained in:
parent
1241a025a2
commit
09aba3b5ce
16 changed files with 65 additions and 36 deletions
4
thirdparty/fcrypt/fcrypt.py
vendored
4
thirdparty/fcrypt/fcrypt.py
vendored
|
|
@ -455,7 +455,7 @@ def _PERM_OP(a,b,n,m):
|
|||
def _set_key(password):
|
||||
"""Generate DES key schedule from ASCII password."""
|
||||
|
||||
c,d = struct.unpack('<ii', password)
|
||||
c,d = struct.unpack('<ii', password.encode("utf8") if not isinstance(password, bytes) else password)
|
||||
c = (c & 0x7f7f7f7f) << 1
|
||||
d = (d & 0x7f7f7f7f) << 1
|
||||
|
||||
|
|
@ -606,7 +606,7 @@ crypt supported by the OpenBSD C library.
|
|||
# Convert to characters.
|
||||
for i in xrange(len(r)):
|
||||
r[i] = _cov_2char[r[i]]
|
||||
return salt[:2] + string.join(r, '')
|
||||
return salt[:2] + ''.join(r)
|
||||
|
||||
def _test():
|
||||
"""Run doctest on fcrypt module."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue