Сибиряк


Зарегистрирован: Sep 2002
Место проживания: Новосибирск
Публикаций: 1255
Статус:  |
<?
$url = "http://tutorials.yaxay.com/index.php"; // Trailing slash when not using filename
$file = "content.inc"; // file to write to. remember to chmod 777 to not get errors
$unique_start = "error_reporting"; // Where to begin to grab
$unique_end = "/global.php"; // Where to end the grab
###
## Íèæå íè÷åãî íå ðåäàêòèðîâàòü
###
ini_set('max_execution_time', '0');
flush ();
// fetch domein from url
$fetch_domain = parse_url($url);
$fetch_domain = $fetch_domain[host];
// Host checking code
$socket_handle = fsockopen("$fetch_domain", 80, $error_nr, $error_txt,30);
if(!$socket_handle)
{
print("Cannot make a connection to: $fetch_domain and therefore cannot collect your requested data");
$contents = implode("",@file( $file ) );
echo $contents;
exit;
}
$fd= fread(fopen("$url", "r"), 100000);
if ($fd)
{
$start= strpos($fd, "$unique_start");
$finish= strpos($fd, "$unique_end");
$length= $finish-$start;
$code=substr($fd, $start, $length);
}
###
## Íèæå íè÷åãî íå ðåäàêòèðîâàòü
###
// $code = preg_replace("new code", "old code", $code);
// uncomment the above line to edit the output
echo $code;
$tmpfile = fopen($file,"w+");
$fp = fwrite($tmpfile,$code);
fclose($tmpfile);
flush ();
?>
Хрень это болотная. Ко должен был дать $templatesused = ...., а там все пусто. Или я чего-то не так сделал. Ну есть форум vbulletin, и там есть хаки, которые я хочу достать. Но как?
__________________
Международное брачное агенство в Сибири.
Сообщить модератору об этом сообщении | Предупреждение | IP: определен
|