לש"ש
תראה מה הקוד הזה עושה :
PHP קוד:
<?php
$url="http://bnaya.be/";
$url=parse_url($url);
if($url['port']<1)
$url['port']=80;
$fp=fsockopen($url['host'],$url['port'], $errno, $errstr, 30);
if (!$fp) {
echo $errstr.' '.$errno."<br />\n";
} else {
$send = "GET / HTTP/1.1\r\n";
$send .= "Host: ".$url['host']."\r\n";
$send .= "Connection: Close\r\n\r\n";
fwrite($fp, $send);
while (!feof($fp)) {
echo fgets($fp, 128);
}
fclose($fp);]
}
?>
בקובץ index.php בדומיין bnaya.be יש את הקוד הזה:
PHP קוד:
<?php
header("location : http://bnaya.be/phpupload/index.php");
?>