hashcat Forum

Full Version: A custom php algorithm in hashcat?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to crack passwords on hashcat but this is the algorithm in php and I'm not sure how I can use this in hashcat:

function pass2($password, $id) {
    $key = "r2chYO214w>1a32";
    $hash1 = sha1($password, true);
    $hash2 = $hash1 ^ sha1($id . $key . sha1($hash1, true), true);
    return base64_encode($hash2);
}

So my question is how exactly do I get to crack passwords on hashcat using this algorithm, please help.
If you encode the password "hashcat" with this algorithm, what is the result?
(10-27-2017, 06:56 PM)Waffle Wrote: [ -> ]If you encode the password "hashcat" with this algorithm, what is the result?

P8eWSN4Vi+uoQYpsdG0/o8lAKXo=

But you also have to provide the id of the account that the password belongs to so in the example above I picked the id of 100.

print pass2('hashcat', '100');
There's no magic involved here. You can either create a new mode or hack an existing one. It's all OSS