View Single Post
ישן 10-04-06, 11:21   # 2
בניה
משתמש - היכל התהילה
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: נחושה
הודעות: 3,434

בניה לא מחובר  

לש"ש

תראה מה הקוד הזה עושה :
PHP קוד:
<?php
$url
="http://bnaya.be/";
$url=parse_url($url);
if(
$url['port']<1)
    
$url['port']=80;
$fp=fsockopen($url['host'],$url['port'], $errno$errstr30);
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($fp128);
   }
   
fclose($fp);]
}
?>
בקובץ index.php בדומיין bnaya.be יש את הקוד הזה:
PHP קוד:
<?php
header
("location : http://bnaya.be/phpupload/index.php");
?>
  Reply With Quote