Archive for August, 2006

You are now browsing the archive for August in 2006.

HBH Javascript 2: Immediate Redirection

Since Javascript is implemented client-side, the first thing to do when hacking Javascript is to check the source code. Unfortunately, Hellbound Hackers’ second Javascript challenge contains code that redirects you immedieately when the page loads. In order to view the source code, you must somehow make the browser ignore this redirection. There are several ways. I assume that you are using Firefox:

  • Disable JavascriptEdit -> Preferences -> Content, remove the tick in the Enable Javascript box.
  • NoScript Add-On — Download the Firefox add-on NoScript, which enables selective enabling/disabling of Javascript in an easily accessible menu.
  • wget — or any other application that can fetch remote websites. Functions for this exist in practically every programming language. With wget, you can just run wget http://hellboundhackers.org/challenges/js/js2/index.php and download a copy of the file, which you can read in any text editor.

When you have acquired the source code, you can find this code: