Problem with token length exceptions - 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: Problem with token length exceptions (/thread-8327.html) |
Problem with token length exceptions - lucifergreen - 04-25-2019 Hello all, I'm still fairly new to cracking hashes and im looking for a bit of advice on a project I'm working on for my final year project at university. So I'm attempting to create a small Beowulf cluster of 2-4 pc's with compatible hardware for cracking md5 hashes. I'm using a few python libraries to *attempt* to do this and I'm having an issue with trying to run hashcat through python. The following code works when running from a command line but when trying to run from the python script I get around 2100 token length exceptions. I shut the other nodes in the cluster down to see if that was causing the issue but no such luck. Code: hashcat32.exe -a 3 -m 0 -d 1 hashes.txt -1 ?l?d ?1?1?1?1?1?1?1?1?1 --increment if anyone is proficient at python and can point out my mistakes then the section of code trying to run hashcat is here: Code: #pass arguments through the subprocess module to run hashcat Is there anything obvious I should check to try and fix this? I'm thinking its a problem with my script more than anything but just wanted to rule out missing something obvious with my hashcat statement first. I'm aware there are wrappers which in hindsight would have probably been much easier to implement than this backwards method but that will have to be a future project looking into those. I've checked for the common issues on the faq's but no luck so far! It's pretty intimidating from first glance so if anyone has any advice I'm keen to learn! RE: Problem with token length exceptions - philsmd - 04-25-2019 make sure that the args.txt file only contains the arguments starting with -a 3 (not the binary "hashcat32.exe" too) also make sure that the file "hashes.txt" only contains valid MD5 hashes you can also debug it like this: Code: print ['path to hashcat directory'] + line.split () to see what the final command is RE: Problem with token length exceptions - lucifergreen - 04-25-2019 This worked perfectly! Thanks so much! (04-25-2019, 07:48 PM)philsmd Wrote: make sure that the args.txt file only contains the arguments starting with -a 3 (not the binary "hashcat32.exe" too) |