Posts: 14
Threads: 4
Joined: Jan 2012
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
Posts: 127
Threads: 16
Joined: Sep 2011
01-30-2012, 08:42 PM
(This post was last modified: 01-30-2012, 08:46 PM by chort.)
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.
Posts: 14
Threads: 4
Joined: Jan 2012
01-30-2012, 08:48 PM
(This post was last modified: 01-30-2012, 09:30 PM by cuda.)
* Outfile Formats:
1 = hash[
alt]
2 = plain
3 = hash[
alt]:plain
4 = hex_plain
5 = hash[
alt]:hex_plain
6 = plain:hex_plain
7 = hash[
alt]:plain:hex_plain
nothing changed with cut -d':' -f1 cracked.txt | xargs -I {} -xn1 grep {} hashfile.txt ):
Posts: 127
Threads: 16
Joined: Sep 2011
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.
Posts: 14
Threads: 4
Joined: Jan 2012
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);
?>
Posts: 127
Threads: 16
Joined: Sep 2011
Nice work. Perhaps you would like to post that in the User Contribution section too in case other people find it useful.
Posts: 5,185
Threads: 230
Joined: Apr 2010
oclhashcat-plus exactly gets the --show and --username feature to solve this