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:

Maybe Related?

1 Comment »

  1. Actually, you could just hit “stop” between the cancel and the redirect.

    Comment by Istand1337 — April 18, 2007 @ 3:27 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

FireStats iconAnvänder FireStats