Trying to crack any kind of hash (SHA1, MD5, etc) and you receive the “Token length exception – no hashes loaded” error in hashcat?
The easiest way to fix this error is to edit the file that contains the hashes, with a text editor like Sublime for Linux or Notepad++ on Windows, use the “Save with encoding” option (Sublime) and specify UTF-8 as the encoding.
This should fix the error and get you underway with your hashcat cracking session, regardless of the hashing algorithm or the attack mode (bruteforce, wordlist, etc).
If this doesn’t work, then you might have blank spaces at the end of each hash line, so delete those spaces.
Happy cracking session!
[…] If you receive an “Token length exception” error, please check this article. […]
hi i have no empty spaces and the encoding is UTF-8 but i still have this problem??
Try to cut the contents of the hash file, paste it in Notepad and save as new file.
Either this, or you are not using the correct hash type in the command syntax (-m parameter).
Try checking the hash with https://www.tunnelsup.com/hash-analyzer/ and modify the “-m xxxx”.
Cheers – that worked. Was using 100 for SHA1 when it was an MD5; -m 0.
good day am struggling here . hers is my cmd: hashcat -m 0 hashes.txt(contains hash) -o passwords.txt /usr/share/wordlists/fasttrack.txt and i also tried hashcat -m 1000 -a 3 hashes.txt(contains hash) .all its sayin is token lenght exception
you need to add a switch –username, if the format is ‘username:hash’
For instance: hashcat -a 0 -m 7300 hash.txt /wordlist.txt –username -w 3