RingZer0-56 - Hash Breaker
Coding challenge
Hash breaker
In this challenge we’re getting a hash and we need to “break it” under 3 seconds.
The hash looks like this
dff281d5b39ae2a4d28fea6995b2693bfbeaf050
By the length we can assume that it’s sha1. I tried using hashcat to see if i would get an answer to what it was.
Using SecList and the folder passwords i got a hit. It was a 4 digit number.
I refreshed the page and got another hash and tried it again. Again another 4 digit number. I tried 5 times and every single time it was a 4 digit number. Going from that logic i assumed it was always a 4 digit number.
So i created a wordlist for all 4 digit numbers. Actually i did it from 0 to 10000, which was not the best way since it would never be a number < 1000. So i had 1000 entries for nothing. It still worked tho.
After this was created it was a attempting the script to read the hash then compare line by line with my wordlist until i found the match hash.