(hashFile)
| 1312 | return results |
| 1313 | |
| 1314 | def crackHashFile(hashFile): |
| 1315 | i = 0 |
| 1316 | attack_dict = {} |
| 1317 | |
| 1318 | check = None |
| 1319 | for line in getFileItems(conf.hashFile): |
| 1320 | if check is None and not attack_dict and ':' in line: |
| 1321 | check = any(re.search(_, line) for _ in getPublicTypeMembers(HASH, True)) |
| 1322 | |
| 1323 | if ':' in line and check is False: |
| 1324 | user, hash_ = line.split(':', 1) |
| 1325 | attack_dict[user] = [hash_] |
| 1326 | else: |
| 1327 | attack_dict["%s%d" % (DUMMY_USER_PREFIX, i)] = [line] |
| 1328 | i += 1 |
| 1329 | |
| 1330 | dictionaryAttack(attack_dict) |
no test coverage detected
searching dependent graphs…