11-05-2015, 03:43 AM
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 '[email protected]:aGVsbG93b3JsZA==' > hash.txt
this rx'd unmatched sep.
echo 'aGVsbG93b3JsZA==:[email protected]' > 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:
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 '[email protected]:aGVsbG93b3JsZA==' > hash.txt
this rx'd unmatched sep.
echo 'aGVsbG93b3JsZA==:[email protected]' > 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);