![]() |
Non printable ascii characters in salt - Printable Version +- hashcat Forum (https://hashcat.net/forum) +-- Forum: Deprecated; Previous versions (https://hashcat.net/forum/forum-29.html) +--- Forum: Old hashcat Support (https://hashcat.net/forum/forum-20.html) +--- Thread: Non printable ascii characters in salt (/thread-1801.html) |
Non printable ascii characters in salt - seanmheff - 12-01-2012 Hi guys, I have some hashes that were created in the following format: hash = md5($salt.$pass.$salt) The problem is that the salt can contain non printable ascii characters. So I am unable to save the salts as ascii characters that hashcat can recognize. Does anyone have any ideas how I can go about cracking the hashes? IS there any support for hashcat reading the hex representation of the salt? RE: Non printable ascii characters in salt - M@LIK - 12-01-2012 From --help: Code: --hex-salt Assume salt is given in hex RE: Non printable ascii characters in salt - seanmheff - 12-01-2012 But oclHashcat-plus cannot crack hashes of created by this algorithm: md5($salt.$pass.$salt) :/ any other ideas? RE: Non printable ascii characters in salt - M@LIK - 12-02-2012 Can you post some of the salts? In hex if it's required. RE: Non printable ascii characters in salt - seanmheff - 12-02-2012 Here is an example salt in hex: a2cdde9445d0c3e285cac24b0632b6df7d2c74c8 The salts are 20 characters long and are composed of random ascii characters in the range 0-255. The example salt I have posted contains the hex value 0x06... This is a non printable character, herein lies my problem - I cannot write it to a file and have hashcat recognize it! On the plus side I have written my own wordlist cracker in php (the language the salt was created in) that seems to work... But very slowly. Its a shame not to be able to utilize hashcat's speed and functionality. RE: Non printable ascii characters in salt - epixoip - 12-02-2012 (12-02-2012, 03:01 PM)seanmheff Wrote: This is a non printable character, herein lies my problem - I cannot write it to a file and have hashcat recognize it! you can use printf etc to write it to a file if you wish. e.g., Code: printf "\x06\n" >somefile RE: Non printable ascii characters in salt - seanmheff - 12-02-2012 Got it working now.. I have my data saved in the form username:hash:hex(salt) I wrote a program to parse the data, and output it to a file saved in the form hash:ascii(salt) The resulting file appears corrupt on my system (Linux based) and is not readable by any text editor I have installed. However, hashcat can read most of the data and crack the hashes ![]() Thanks for your help guys ![]() RE: Non printable ascii characters in salt - M@LIK - 12-02-2012 "shit in, shit out" -Not-me |