Introduction: HowTo Hack Javascript Guessing Games

Picture of HowTo Hack Javascript Guessing Games

How to hack HTML/JS games where you must guess numbers or passwords

Step 1: Get a Game

Picture of Get a Game

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.

Step 2: Open Source of the Game!

Picture of Open Source of the Game!

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

Step 3: Found It

Picture of Found It

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);

Step 4: Running Our Little Script

Picture of Running Our Little Script

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.


agent (author)2009-07-12

This works the exact same in IE.

zimmemic25 (author)agent2009-08-07

i know, but because i use linux and firefox, i can't make an instructable for IE, because i can't get the screenshots of IE. and i don't like it.

Nevermind (author)2008-11-14

Hmm, I see this game was made by another Instructables member, Why dont you give credit to whoever made it.....

zimmemic25 (author)Nevermind2008-11-22

i never said that its mine... i just tell you how to solve it the cheating way.

Nevermind (author)zimmemic252008-11-24

Just give credit to whoever you got it from.............

n8man (author)Nevermind2008-11-26

Coolz made it, you might of heard of him.

zimmemic25 (author)n8man2008-11-28

yeah i found the game in his instructable, but @Nevermind: i dont have it "got", i dont host it, its the original URI... its not an instructable about this game, i just use it as an example

About This Instructable




More by zimmemic25:HowTo hack javascript guessing gamesrepair missing SD-card lock
Add instructable to: