mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 11:45:46 +03:00
minor update
This commit is contained in:
parent
da51e8a9d1
commit
753dcb3450
|
@ -180,6 +180,7 @@ def oracle_old_passwd(password, username, uppercase=True): # prior to version '1
|
||||||
>>> oracle_old_passwd(password='tiger', username='scott', uppercase=True)
|
>>> oracle_old_passwd(password='tiger', username='scott', uppercase=True)
|
||||||
'F894844C34402B67'
|
'F894844C34402B67'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
IV, pad = "\0"*8, "\0"
|
IV, pad = "\0"*8, "\0"
|
||||||
|
|
||||||
if isinstance(username, unicode):
|
if isinstance(username, unicode):
|
||||||
|
@ -239,8 +240,8 @@ def wordpress_passwd(password, salt, count, prefix, uppercase=False):
|
||||||
http://packetstormsecurity.org/files/74448/phpassbrute.py.txt
|
http://packetstormsecurity.org/files/74448/phpassbrute.py.txt
|
||||||
http://scriptserver.mainframe8.com/wordpress_password_hasher.php
|
http://scriptserver.mainframe8.com/wordpress_password_hasher.php
|
||||||
|
|
||||||
>>> wordpress_passwd(password='testpass', salt='dYPSjeF4', count=2048)
|
>>> wordpress_passwd(password='testpass', salt='aD9ZLmkp', count=2048, prefix='$P$9aD9ZLmkp', uppercase=False)
|
||||||
''
|
'$P$9aD9ZLmkpsN4A83G8MefaaP888gVKX0'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def _encode64(input_, count):
|
def _encode64(input_, count):
|
||||||
|
@ -453,6 +454,9 @@ def __bruteProcessVariantA(attack_info, hash_regex, wordlist, suffix, retVal, pr
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
except UnicodeEncodeError:
|
||||||
|
pass # ignore possible encoding problems caused by some words in custom dictionaries
|
||||||
|
|
||||||
except Exception, ex:
|
except Exception, ex:
|
||||||
print ex
|
print ex
|
||||||
warnMsg = "there was a problem while hashing entry: %s. " % repr(word)
|
warnMsg = "there was a problem while hashing entry: %s. " % repr(word)
|
||||||
|
@ -516,6 +520,9 @@ def __bruteProcessVariantB(user, hash_, kwargs, hash_regex, wordlist, suffix, re
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
except UnicodeEncodeError:
|
||||||
|
pass # ignore possible encoding problems caused by some words in custom dictionaries
|
||||||
|
|
||||||
except Exception, ex:
|
except Exception, ex:
|
||||||
print ex
|
print ex
|
||||||
warnMsg = "there was a problem while hashing entry: %s. " % repr(word)
|
warnMsg = "there was a problem while hashing entry: %s. " % repr(word)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user