mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
code refactoring regarding dictionary attack
This commit is contained in:
parent
ba4ea32603
commit
3cae76627c
3 changed files with 13 additions and 3 deletions
|
|
@ -12,13 +12,14 @@ import time
|
|||
|
||||
from hashlib import md5
|
||||
from hashlib import sha1
|
||||
from zipfile import ZipFile
|
||||
from zipfile import ZipFile
|
||||
|
||||
from extra.pydes.pyDes import des
|
||||
from extra.pydes.pyDes import CBC
|
||||
from lib.core.common import conf
|
||||
from lib.core.common import dataToStdout
|
||||
from lib.core.common import getFileItems
|
||||
from lib.core.common import getPublicTypeMembers
|
||||
from lib.core.common import paths
|
||||
from lib.core.common import readInput
|
||||
from lib.core.convert import hexdecode
|
||||
|
|
@ -190,7 +191,7 @@ def dictionaryAttack():
|
|||
|
||||
hash_ = hash_.split()[0]
|
||||
|
||||
for regex in HASH.__all__:
|
||||
for _, regex in getPublicTypeMembers(HASH):
|
||||
if re.match(regex, hash_):
|
||||
rehash = regex
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue