RFI(Remote File Inclusion)

Remote File Inclusion

Remote File Inclusion ( RFI ) allows the attacker to upload his file on a website server using a script. Remote File Inclusion is a common vulnerability found in many websites. Using RFI you can literally deface the websites, get access to the server. Here i am going to describe this.

Searching the Vulnerability:

Remote File inclusion vulnerability is usually occured in those sites which have a navigation similar to this:


If you want to find more website like this try is with google dork.


After going to the target website test it for RFI vulnerability. Use this:


after pressing enter if the google’s homepage is there on the website, then this website is vulnerable to RFI attack.

Now you can execute your own scripts on the webserver of this website.


look at the original URL there is no extension. It means it is adding extension mnually so use “” after your url.

Now to gain access you should use c99 shell. you can download c99 shell from the link below:

now upload this script to any webhost and get a url of that. Let’s say your url is like this:


**Question Mark is must

now use your url in place of google url.


Now the you are inside the website and you can do anything with it

Leave a Reply

Your email address will not be published. Required fields are marked *