hashcat 5.0.0 with Token length exception with sha1 - Printable Version +- hashcat Forum (https://hashcat.net/forum) +-- Forum: Support (https://hashcat.net/forum/forum-3.html) +--- Forum: hashcat (https://hashcat.net/forum/forum-45.html) +--- Thread: hashcat 5.0.0 with Token length exception with sha1 (/thread-7964.html) |
hashcat 5.0.0 with Token length exception with sha1 - pmatos - 11-19-2018 Hello I was attempting (first time with hashcat) this: Code: $ echo "foo:$(echo bar | sha1sum | cut -d ' ' -f 1)" > test.txt No idea why my hash wouldn't be a valid hash. Looks valid: Code: $ cat test.txt What's hashcat really complaining about here? RE: hashcat 5.0.0 with Token length exception with sha1 - DanielG - 11-19-2018 You are not using --username which tells hashcat to ignore the "foo:" part. Hashcat expects a list with just the hashes, no extra data before that. See https://hashcat.net/wiki/doku.php?id=example_hashes where you can see mode 100 only expects "b89eaac7e61417341b710b727768294d0e6a277b" and not "foo: b89eaac7e61417341b710b727768294d0e6a277b". --edit: Also you are doing "echo bar | sha1sum" which will make a sha1sum of 'bar+newline' because echo automatically appends a newline. If you just want the sha1sum of 'bar' use "echo -n bar" to omit the newline. RE: hashcat 5.0.0 with Token length exception with sha1 - royce - 11-19-2018 By default, hashcat expects bare hashes (without username). To ignore username, use --username. With -a 0, you also need to supply a wordlist. If you want to try the default mask attack set instead, use -a 3. RE: hashcat 5.0.0 with Token length exception with sha1 - undeath - 11-19-2018 also note that you probably intended to run Code: echo "foo:$(echo -n bar | sha1sum | cut -d ' ' -f 1)" |