You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I am trying to use the tool with a new hash list or file, I am getting the following error:
Percentage Cracked:
Traceback (most recent call last):
File "./hat.py", line 1131, in <module>
main_menu()
File "./hat.py", line 1124, in main_menu
options[task]()
File "./hat.py", line 1096, in hash_from_file
crack_menu()
File "./hat.py", line 961, in crack_menu
percent_cracked = (hashes_cracked * 100 / HASHES_LOADED)
UnboundLocalError: local variable 'hashes_cracked' referenced before assignment
I amended the hat.py file to include hashes_cracked = 0 at line 960, to arbitrarily set the variable if the pot file does not exist (shown below):
POT = POT + '.pot'
pot_absolute = os.path.join(L00T_POT_DIR, POT)
if os.path.exists(pot_absolute):
with open(pot_absolute) as lines:
hashes_cracked = len(lines.readlines())
prGreen(hashes_cracked)
else:
prRed("0")
hashes_cracked = 0
print" " + "Percentage Cracked:",
percent_cracked = (hashes_cracked * 100 / HASHES_LOADED)
The text was updated successfully, but these errors were encountered:
I have noticed a small bug in the tool.
When I am trying to use the tool with a new hash list or file, I am getting the following error:
I amended the hat.py file to include hashes_cracked = 0 at line 960, to arbitrarily set the variable if the pot file does not exist (shown below):
The text was updated successfully, but these errors were encountered: