Wednesday, January 12, 2011

Extbasic Mission 2

Let's look at the program given:
     
  $lvl_text = file_get_contents($_POST['filename'].'.php');


The program is very straightforward. It gets the contents or the source code of any specified php file and stores it in the variable lvl_text. As is evident only php files can be accessed. We need to get the contents of the file hackthissite.org/index.php. Now look at the URL of the mission.
                 
                          http://www.hackthissite.org/missions/extbasic/2

We have traversed into two folders of hackthissite.org, i.e. missions and extbasic. So we need to go two folders backward. So we must enter

                                               ../../index


There is no need to add .php as it will be added by the program given.

No comments:

Post a Comment