Monday, October 4, 2010

hack this site Javascript 2

In this second mission you are required to disable JavaScript in your browser which is a very simple thing to do.

In firefox   : Tools Menu -> Options -> Content -> uncheck "Enable JavaScript"

In Chrome : Preferences -> Under the hood -> Content settings -> JavaScript -> Check "Do not allow any site to run JavaScript"

Now that you have disabled JavaScript, go to the 2nd mission's page, and click the link to win. Just remember to enable JavaScript back again.

Saturday, July 31, 2010

hack this site Javascript 1

this mission is pretty easy, it requires very little knowledge of JavaScript, all you have to do is check the page source ( under Firefox: View -> Page source or Ctrl + u), scroll down where the HTML code for  the form is, you'll notice this interesting piece of code:


As you can see, what the script does is comparing the value of "x" (which is taken from the user input) and compare it to the word "cookies" (which is the password) if it matches, it means that you successfully passed this mission.

I recommend that you check out some of the links mentioned here to help you get more familiar with JavaScript.