website hacking game
h
MrEconomical (401)

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>
You are viewing a single comment. View All
kaiserb1 (10)

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

kaiserb1 (10)

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 (10)

@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 (10)

@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 (10)

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