hashcat Forum
input file format - 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: input file format (/thread-4784.html)



input file format - malignant2030 - 11-05-2015

Hello I've been wanting to test out a few hashes but am having a hard time with the input file format. 

Use case is:

Base 64 encoded hash (sha1)
email address is salt
pwd is 8 chars, charset is a-zA-z0-9!@#$%^&*()-=_+[]{}
what i've tried thus far:
(hashcat bin is linked)
./hc -m 120 hash.txt -a 3 ?a?a?a?a?a?a?a?a

//in compliance with the rules the following is  a totally random base64 encoded string
echo 'me@you.com:aGVsbG93b3JsZA==' > hash.txt

this rx'd unmatched sep.

echo 'aGVsbG93b3JsZA==:me@you.com' > hash.txt

also unmatched

I'm guessing that hashcat doesnt like the b64 encoded hash?

Do I need to pass in the hex representation of the byte[] instead? Also, if I know the salt ahead of time, can I pass it in plaintext or do I need to convert it to hex as well?

Thanks for your time.


EDIT - I'm generating the hash like so: 

Code:
HashAlgorithm managedHash = new SHA1Managed();
var byteValue = Encoding.UTF8.GetBytes(string.Format("{0}{1}", salt, password));
var byteHash = managedHash.ComputeHash(byteValue);
managedHash.Clear();
return Convert.ToBase64String(byteHash);



RE: input file format - philsmd - 11-05-2015

You can find the hash format for all the supported hash types here: https://hashcat.net/wiki/doku.php?id=example_hashes