Damo Brute the PIN

Page takes a “pin” and sees if it matches what’s expected via hash functions, if so, we can add our name to Hall of Fame.

Page does checking in javascript, so let’s take advantage.  Copy top of page, and wrap in a brute force function, to check through all values.  Put new code in new, local, .html file and brute force the PIN.

Brute force function:

function brute() {
var str;
for(var i = 1000000; i < 10000000; i++) {
alert(‘Reached the end ;c’);

Put brute() on an onLoad for a new page, and load that page.  About 3/4 of the way through, we get our answer and we have brute forced the PIN by barely writing any new code.  YAY!

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *