HowTo Hack Javascript Guessing Games

by zimmemic25 in Living > Video Games

33032 Views, 2 Favorites, 0 Comments

HowTo Hack Javascript Guessing Games

M-hacker-logo_bg.png
How to hack HTML/JS games where you must guess numbers or passwords

Get a Game

firefox.png
first you need a game, e.g. this one.
Open it with your borwser, i recommend Firefox.
I'll describe howto use firefox, not IE.

Open Source of the Game!

snap1.png
snap2.png
right-click and select "View Page Source".
then search for the variable which you think is the number/etc you have to enter.

Found It

snap3.png
snap5.png
we found a nice variable...

if we look at it, its a number between 0 and 1000, looks familiar... :-P

now enter javascript:alert(vaiable-name); into the address bar.
because our variable is called random_number, we enter javascript:alert(random_number);

Running Our Little Script

snap8.png
snap6.png
snap7.png
ok now press RETURN, and we get a new window.
it should tell us the variable's value.

enter the value into the input-box.
if it was the right variable, we should have won.