mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-29 01:19:47 +03:00
Refactoring for Python 3 ws_comma
* 2to3 `ls | grep -v thirdparty` -f ws_comma
This commit is contained in:
parent
2a07f529ed
commit
6907e15a0e
|
@ -381,7 +381,7 @@ def unix_md5_passwd(password, salt, magic="$1$", **kwargs):
|
|||
ctx = password + magic + salt
|
||||
final = md5(password + salt + password).digest()
|
||||
|
||||
for pl in xrange(len(password),0,-16):
|
||||
for pl in xrange(len(password), 0, -16):
|
||||
if pl > 16:
|
||||
ctx = ctx + final[:16]
|
||||
else:
|
||||
|
@ -418,7 +418,7 @@ def unix_md5_passwd(password, salt, magic="$1$", **kwargs):
|
|||
|
||||
final = md5(ctx1).digest()
|
||||
|
||||
hash_ = _encode64((int(ord(final[0])) << 16) | (int(ord(final[6])) << 8) | (int(ord(final[12]))),4)
|
||||
hash_ = _encode64((int(ord(final[0])) << 16) | (int(ord(final[6])) << 8) | (int(ord(final[12]))), 4)
|
||||
hash_ = hash_ + _encode64((int(ord(final[1])) << 16) | (int(ord(final[7])) << 8) | (int(ord(final[13]))), 4)
|
||||
hash_ = hash_ + _encode64((int(ord(final[2])) << 16) | (int(ord(final[8])) << 8) | (int(ord(final[14]))), 4)
|
||||
hash_ = hash_ + _encode64((int(ord(final[3])) << 16) | (int(ord(final[9])) << 8) | (int(ord(final[15]))), 4)
|
||||
|
|
|
@ -49,9 +49,9 @@ class Fingerprint(GenericFingerprint):
|
|||
# Microsoft Access table reference updated on 01/2010
|
||||
sysTables = {
|
||||
"97": ("MSysModules2", "MSysAccessObjects"),
|
||||
"2000" : ("!MSysModules2", "MSysAccessObjects"),
|
||||
"2002-2003" : ("MSysAccessStorage", "!MSysNavPaneObjectIDs"),
|
||||
"2007" : ("MSysAccessStorage", "MSysNavPaneObjectIDs"),
|
||||
"2000": ("!MSysModules2", "MSysAccessObjects"),
|
||||
"2002-2003": ("MSysAccessStorage", "!MSysNavPaneObjectIDs"),
|
||||
"2007": ("MSysAccessStorage", "MSysNavPaneObjectIDs"),
|
||||
}
|
||||
# MSysAccessXML is not a reliable system table because it doesn't always exist
|
||||
# ("Access through Access", p6, should be "normally doesn't exist" instead of "is normally empty")
|
||||
|
|
Loading…
Reference in New Issue
Block a user