MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / crackHashFile

Function crackHashFile

lib/utils/hash.py:1314–1330  ·  view source on GitHub ↗
(hashFile)

Source from the content-addressed store, hash-verified

1312 return results
1313
1314def 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)

Callers 1

startFunction · 0.90

Calls 4

getFileItemsFunction · 0.90
getPublicTypeMembersFunction · 0.90
dictionaryAttackFunction · 0.85
searchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…