Please note, this is a STATIC archive of website hashcat.net from October 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.

hashcat Forum

Full Version: output file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Greetings.
i have hashlist file with next fomat
Quote:id:hash
id:hash
id:hash
id:hash

out file looks like this
Quote:hash:password
hash:password
hash:password
hash:password

what should i do to get output file looks like

Quote:id:password
or
Quote:id:hash:password
Run oclHashcat-plus with --help to see the supported output formats.

I do something like:
Code:
$ cut -d':' -f1 cracked.txt | xargs -I {} -xn1 grep {} hashfile.txt

You could write a shell script if you want something fancier.
* Outfile Formats:

1 = hash[Confusedalt]
2 = plain
3 = hash[Confusedalt]:plain
4 = hex_plain
5 = hash[Confusedalt]:hex_plain
6 = plain:hex_plain
7 = hash[Confusedalt]:plain:hex_plain
nothing changed with cut -d':' -f1 cracked.txt | xargs -I {} -xn1 grep {} hashfile.txt ):
cracked.txt is the file you output cracked hashes to (hash:plain).
hashfile.txt is the file you're reading hashes from (username:hash)

Use oclHashcat-plus with -o cracked.txt

Once it's finished, use the cut ... | xargs ... one-liner to find the cracked hashes from the original file. This assumes you're running Linux. There's probably a powershell equivalent for Windows.
problem solved via php script ^___^

PHP Code:
<?php
echo('COMBINING FILES!');
$in1 fopen("emaihash.txt""rb");
$in2 fopen("hashpass.txt""rb");
$out fopen("emailpass.txt""wb"); //or emailhashpassword.txt
while ($row trim(fgets($in1)))
{
    list(
$email$hash) = preg_split("~:~"$row);
    list(, 
$pass) = preg_split("~:~"trim(fgets($in2)));
    
fwrite($out$email.":".$pass."\r\n"); //or fwrite($out, $email.":".$hash.":".$pass."\r\n");
}
fclose($in1);
fclose($in2);
fclose($out);
?>
Nice work. Perhaps you would like to post that in the User Contribution section too in case other people find it useful.
oclhashcat-plus exactly gets the --show and --username feature to solve this