A custom php algorithm in hashcat? - Printable Version +- hashcat Forum (https://hashcat.net/forum) +-- Forum: Support (https://hashcat.net/forum/forum-3.html) +--- Forum: hashcat (https://hashcat.net/forum/forum-45.html) +--- Thread: A custom php algorithm in hashcat? (/thread-6967.html) |
A custom php algorithm in hashcat? - reeexy - 10-27-2017 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. RE: A custom php algorithm in hashcat? - Waffle - 10-27-2017 If you encode the password "hashcat" with this algorithm, what is the result? RE: A custom php algorithm in hashcat? - reeexy - 10-27-2017 (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'); RE: A custom php algorithm in hashcat? - atom - 10-28-2017 There's no magic involved here. You can either create a new mode or hack an existing one. It's all OSS |