|
45 | 45 | from hashlib import sha256 |
46 | 46 | from hashlib import sha384 |
47 | 47 | from hashlib import sha512 |
48 | | -from Queue import Queue |
49 | 48 |
|
50 | 49 | from lib.core.common import Backend |
51 | 50 | from lib.core.common import checkFile |
|
68 | 67 | from lib.core.data import conf |
69 | 68 | from lib.core.data import kb |
70 | 69 | from lib.core.data import logger |
| 70 | +from lib.core.datatype import OrderedSet |
71 | 71 | from lib.core.enums import DBMS |
72 | 72 | from lib.core.enums import HASH |
73 | 73 | from lib.core.enums import MKSTEMP_PREFIX |
|
87 | 87 | from lib.core.settings import ROTATING_CHARS |
88 | 88 | from lib.core.wordlist import Wordlist |
89 | 89 | from thirdparty.colorama.initialise import init as coloramainit |
90 | | -from thirdparty.oset.pyoset import oset |
91 | 90 | from thirdparty.pydes.pyDes import des |
92 | 91 | from thirdparty.pydes.pyDes import CBC |
| 92 | +from thirdparty.six.moves import queue as _queue |
93 | 93 |
|
94 | 94 | def mysql_passwd(password, uppercase=True): |
95 | 95 | """ |
@@ -561,7 +561,7 @@ def storeHashesToFile(attack_dict): |
561 | 561 | if not attack_dict: |
562 | 562 | return |
563 | 563 |
|
564 | | - items = oset() |
| 564 | + items = OrderedSet() |
565 | 565 |
|
566 | 566 | for user, hashes in attack_dict.items(): |
567 | 567 | for hash_ in hashes: |
@@ -1059,7 +1059,7 @@ def dictionaryAttack(attack_dict): |
1059 | 1059 | warnMsg += "not supported on this platform" |
1060 | 1060 | singleTimeWarnMessage(warnMsg) |
1061 | 1061 |
|
1062 | | - retVal = Queue() |
| 1062 | + retVal = _queue.Queue() |
1063 | 1063 | _bruteProcessVariantA(attack_info, hash_regex, suffix, retVal, 0, 1, kb.wordlists, custom_wordlist, conf.api) |
1064 | 1064 |
|
1065 | 1065 | except KeyboardInterrupt: |
@@ -1150,7 +1150,7 @@ def dictionaryAttack(attack_dict): |
1150 | 1150 | class Value(): |
1151 | 1151 | pass |
1152 | 1152 |
|
1153 | | - retVal = Queue() |
| 1153 | + retVal = _queue.Queue() |
1154 | 1154 | found_ = Value() |
1155 | 1155 | found_.value = False |
1156 | 1156 |
|
|
0 commit comments