Skip to content
← Back to Community
website hacking game
Profile icon
h
has Hacker Plan
MrEconomical

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.



a few notes:



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.



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



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. :)



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



Voters
Profile icon
TobiaOverPower
Profile icon
softfire
Profile icon
the-ghostghost2
Profile icon
codingbeast25
Profile icon
OwenHart1
Profile icon
PieceCtrlJosh
Profile icon
programmeruser
Profile icon
TheOceanFace
Profile icon
Pirraio
Profile icon
Navinor
Comments
hotnewtop
Profile icon
mamamia5x

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.

Profile icon
MrEconomical
Profile icon
Haaruun

@mamamia5x same :(

Profile icon
DexieTheSheep

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

Profile icon
mamamia5x

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

Profile icon
DexieTheSheep

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

Profile icon
hg0428
Profile icon
AdamZow

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

Profile icon
mamamia5x

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

Profile icon
CamiXes

@mamamia5x SAME,,,

Profile icon
TNJS

I use a raspberry pi for my coding @Lamby777

Profile icon
mchapy1

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!

Profile icon
MrEconomical

@mchapy1 hint: sources :)

Profile icon
HaydenFrobenius

@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"

Profile icon
CollinKunsman1

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

Profile icon
ChezCoder

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.

Profile icon
HaydenFrobenius

@ChezCoder Yes! Pls make another one!

Profile icon
thecat0

@ChezCoder i was thinking so too

Profile icon
PowerCoder

Easy and fun

Profile icon
iamawesome10901

level 7 hint?

Profile icon
Haaruun

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

Profile icon
KellerWorthen

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

Profile icon
AdCharity

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)

Profile icon
AdCharity

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

Profile icon
MrEconomical

@AdCharity I know its for effect

Profile icon
AdCharity

@MrEconomical lol i figured

Profile icon
mwilki7

very entertaining to play
reminds me of those cheat engine challenges

Profile icon
kaiserb1

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

Profile icon
kaiserb1

No one need help?

Profile icon
Numka

@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.

Profile icon
kaiserb1

@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.

Profile icon
Numka

@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.

Profile icon
Numka

@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.

Profile icon
kaiserb1

@Numka Yes

Profile icon
kaiserb1

@Numka cool

Profile icon
[deleted]

@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.

Profile icon
MrEconomical

@septicarm713 chrome debugger tools

Profile icon
kaiserb1

@septicarm713 Are you familiar with Chrome debugging tool?

Profile icon
[deleted]

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

Profile icon
kaiserb1

@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.

Profile icon
Haaruun

Won the game, then I cheated to win agin,

win.call({legit:true}, 7)
Profile icon
[deleted]

I'm stuck on lvl 2! Help!

Profile icon
ludimedi

@CoolJames1610 make more money

Profile icon
youalie

how do u do lvl 4 help

Profile icon
HaydenFrobenius

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

Profile icon
[deleted]

Hint for lvl 3?

Profile icon
MrEconomical

@CoolJames1610 getElementById

Profile icon
[deleted]

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

Profile icon
[deleted]

wait no I meant lvl 2 the carrot one @MrEconomical

Profile icon
MrEconomical

@CoolJames1610 console + sources

Profile icon
HaydenFrobenius

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

Profile icon
HaydenFrobenius

@CoolJames1610 win.call({legit: true}, 2)

Profile icon
AdCharity

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

Profile icon
Kieranisatard

xd

Profile icon
DexieTheSheep

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

Profile icon
HaydenFrobenius

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

Profile icon
DexieTheSheep

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

Profile icon
jacobhutcheson

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

Profile icon
MrEconomical

@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

Profile icon
[deleted]

how to do lvl 2 the carrot one @jacobhutcheson

Profile icon
ironblockhd

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

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

Profile icon
assaassa

sa

Profile icon
Hyderite

yeah i cant even get through the first level

Profile icon
maxina

Dude, great idea! I want to create my own version of something similar to this!

Profile icon
StringentDev

use win([level no], this.legit = true) to advance any level.
@MrEconomical
as it said before if got determined and found this in 5 mins. "nice try".

Profile icon
gentechnolgy

im confused on where i edit it in level_0.js

Profile icon
AmazingMech2418

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...

Profile icon
AmazingMech2418

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.

Profile icon
ironblockhd

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

Profile icon
avibeskrowni

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

Profile icon
SonnyDray69

hi

Profile icon
IsaacGarcia4

You can just do win.call lol

Profile icon
17TAdshead

olh

Profile icon
CAPOxNAZA

76

Profile icon
btecht

Really cool game. I very much enjoyed the game.