Share your repls and programming experiences

← Back to all posts
website hacking game
h
MrEconomical (2124)

PLEASE READ BEFORE PLAYING

hacker, hacker is a coding game that involves "hacking" or editing the source code to solve a set of challenges. in most browsers, inspecting element allows you to view and tamper with the source code of a page, but these effects will only last until you reload the page. however, depending on how the website was designed, you may be able to do some pretty cheaty stuff before your changes get reset. personally, i think this is very cool. hacker, hacker is game specifically about tampering with the source code.

<br><br>

a few notes:

<br><br>

this game DOES require some basic understanding of javascript and html as it is written in javascript, and in order to solve the challenges you must edit javascript code.

<br><br>

to view and edit source code, simply right click and inspect element. here, you can see everything about the web page that is running.

<br><br>

only edit the javascript / html related to the level or challenge you are on (see the console). editing anything else might break your game. also, don't do something like make yourself win automatically. i know it is a hacking game, and you are supposed to tamper with code, but please play the game as it was intented to be played because it is just more fun that way. :)

<br><br>

DISCLAIMER: i am not responsible for anything you may decide to "hack" on other webpages after seeing this game

<br><br>

<div class = "bold">GOOD LUCK, AND HAVE FUN!</div>
Commentshotnewtop
mamamia5x (68)

This game seems really cool, but I never really got to enjoy it. My school laptop has removed inspection mode, so I can't enjoy it.

Lamby777 (54)

@mamamia5x ikr, so glad I'm actually using replit at home rn, I always code at school.

mamamia5x (68)

@Lamby777 I have a school laptop that I get to take home. They blocked it at my home too. Your lucky.

Lamby777 (54)

@mamamia5x I take mine home I just have my own laptop that I use because it runs windows not chrome os

mamamia5x (68)

@Lamby777 My brother won a laptop, but I barely use it know. I could play it on that.

AdamZow (5)

Control u works on restricted school laptops so that you can see all of the raw code itself. @mamamia5x

mamamia5x (68)

@AdamZow Yeah, but in this game I need to edit it.

mchapy1 (17)

Great game, stuck on level one. I turned autocorrect on to fill the password out automatically, nothing happened. I don't see any other obvious signs of the password. Great game!

HaydenFrobenius (2)

@mchapy1 you need to open the console and click on sources and then on the side, click the javascript file of the level you're on. That will show you how the main code works. BTW, the password is "superstrongpassword123"

CollinKunsman1 (28)

I'm already stuck on the first level... :'(

ChezCoder (1187)

BEST GAME IN THE WORLD PLEASE CREATE ANOTHER ONE!!! I'M ADDICTED
Edit: If you make another game like this, can you make it so that the user has to use the javascript console instead of inspect element? I can't inspect so I have to rerun the code over and over again.

Haaruun (94)

@iamawesome10901 win.call({legit:true}, 7)
im not telling you the real way tho :P

KellerWorthen (14)

@iamawesome10901 You got all the way to level 7 ?!?!?!?!

AdCharity (1243)

You should look up firefox's x ray goggles so everyone can play :) (just a suggestion since I can't use them anymore; school blocked em)

AdCharity (1243)

btw repl posts are put in a text box, so they don't support standard HTML. does do markdown tho. Nice project.

mwilki7 (943)

very entertaining to play
reminds me of those cheat engine challenges

kaiserb1 (11)

I did it. Level 7 was challenging, but I manage to pass it

kaiserb1 (11)

No one need help?

Numka (0)

@kaiserb1 I would like to get some help. I can open level_7.js in debugger and open formatted version, but I can't understand how do I access 'c', because it seems that script exposes nothing.

kaiserb1 (11)

@Numka Yes, the script is obfuscated. I used a breakpoint to stop execution of the script and then step by step execution in debugger. Hope this helps.

Numka (0)

@kaiserb1 thanks, but it doesn't help that much. Is my approach correct at least? I'm trying to overwrite 'c' as global variable and pass 'o' where I want to.

Numka (0)

@kaiserb1 nvm, I found a way. It was fun, i thought of the method at first try, but then I was intimidated by obfuscated script.

septicarm713 (0)

@kaiserb1 I get to level 7, but my JS knowledge is a little limited. I have no clue what I'm doing. I had a few of my friends and I read through all of the 600 lines of code and found nothing. I don't know what you and @Numka are talking about in terms of breakpoints and global variables, but if you'd like to help out that would be great.

kaiserb1 (11)

@septicarm713 Are you familiar with Chrome debugging tool?

septicarm713 (0)

@kaiserb1 I am not familiar with the chrome debugging tools but I will look into it.

kaiserb1 (11)

@septicarm713 In Google Chrome press Ctrl+Shift+I. You will see differenet subviews. Look for Sources. When you click on it , will see Event Listener Breakpoints. Mark Mouse. When you click on the board for your move, the script will stop execution and you can l go true it step by step. In Watch menu add the variable of intersest. Hope this help.

[deleted]

I'm stuck on lvl 2! Help!

youalie (1)

how do u do lvl 4 help

HaydenFrobenius (2)

@youalie type this code into the console win.call({legit: true}, 4)

[deleted]

Hint for lvl 3?

[deleted]

Thanks! I only know a bit about html so im finding all the levels hard XD @MrEconomical

[deleted]

wait no I meant lvl 2 the carrot one @MrEconomical

HaydenFrobenius (2)

@CoolJames1610 type this code into the console win.call({legit: true}, 3);

AdCharity (1243)

@CoolJames1610 console: money = 1000000000000000000000000000000
You can buy carrots now congrats

Lamby777 (54)

How do you win level 7? I'm stumped!

HaydenFrobenius (2)

@Lamby777 win.call({legit: true}, 7)

Lamby777 (54)

@HaydenFrobenius WOOOOOOOOOW. :/ The var name was hidden in plain sight lol

jacobhutcheson (1)

win(1) win(2) win(3) win(4) win(5) this game is easy

MrEconomical (2124)

@jacobhutcheson I don't know how to fix that without making the game very hard by putting everything in one file so I won't

[deleted]

how to do lvl 2 the carrot one @jacobhutcheson

ironblockhd (0)

@jacobhutcheson how to win the game in one line of code:

for(i=0;i<7;i++)win.call({legit:1},i)

AmazingMech2418 (488)

This is easy if you exclude level 7... Why did you have to make the variables local in a function? I just had to un-obfuscate the hexadecimal...

AmazingMech2418 (488)

The only way I can complete level 7 is if I use the win function. Is it supposed to be that way? In the console, I can't edit the JavaScript variables or code for level 7. The only thing I can do is inject a fake form of the function, but then, it just runs the win function anyways.

ironblockhd (0)

I am next level hacker, i hacked the game machanism: win.bind({legit:true})("insert level")

avibeskrowni (114)

legit = true;
win(0);
win(1);
win(2);
win(3);
win(4);
win(5);
win(6);
win(7);

but actually i made it through to level six in about five minutes and level seven finished in twenty.

he's right, obfuscations ARE hard

IsaacGarcia4 (0)

You can just do win.call lol

btecht (3)

Really cool game. I very much enjoyed the game.

CodingAP (4)

Great Idea! I'm going to make my own style of this game if you don't mind

NateFarquhar (0)

Where’s the cool stuff

iiviigames (0)

After level 3 (with the find the buttons) it totally stopped loading.

hg0428 (74)

I can not edit the Javascript.

bgrubert (128)

Beat it! Level 7 hint: redefine the function win()! PS. Great game never seen anything like it!

SpicedSpices (119)

This is actually a really cool game and concept! There is one small thing you need to fix though. If you just put in this code, you will win: win.call({legit: true}, 4). It is setting legit to true so you will always win. The number at the end is any level. This game is really neat and you should keep working on it. Can't wait to see more!