|
38 | 38 | from lib.core.common import getCompiledRegex |
39 | 39 | from lib.core.common import getFileItems |
40 | 40 | from lib.core.common import getPublicTypeMembers |
| 41 | +from lib.core.common import hashDBRetrieve |
| 42 | +from lib.core.common import hashDBWrite |
41 | 43 | from lib.core.common import normalizeUnicode |
42 | 44 | from lib.core.common import paths |
43 | 45 | from lib.core.common import readInput |
@@ -592,7 +594,7 @@ def dictionaryAttack(attack_dict): |
592 | 594 | item = [(user, hash_), {'salt': hash_[4:12], 'count': 1<<ITOA64.index(hash_[3]), 'prefix': hash_[:12]}] |
593 | 595 |
|
594 | 596 | if item and hash_ not in keys: |
595 | | - resumed = conf.hashDB.retrieve(hash_) |
| 597 | + resumed = hashDBRetrieve(hash_) |
596 | 598 | if not resumed: |
597 | 599 | attack_info.append(item) |
598 | 600 | else: |
@@ -723,7 +725,7 @@ def dictionaryAttack(attack_dict): |
723 | 725 |
|
724 | 726 | while not retVal.empty(): |
725 | 727 | _, hash_, word = item = retVal.get(block=False) |
726 | | - conf.hashDB.write(hash_, word) |
| 728 | + hashDBWrite(hash_, word) |
727 | 729 | results.append(item) |
728 | 730 |
|
729 | 731 | conf.hashDB.endTransaction() |
@@ -806,7 +808,7 @@ class Value(): |
806 | 808 |
|
807 | 809 | while not retVal.empty(): |
808 | 810 | _, hash_, word = item = retVal.get(block=False) |
809 | | - conf.hashDB.write(hash_, word) |
| 811 | + hashDBWrite(hash_, word) |
810 | 812 | results.append(item) |
811 | 813 |
|
812 | 814 | conf.hashDB.endTransaction() |
|
0 commit comments