Home > Backend Development > PHP Tutorial > PHP traverses a single directory with writable permissions script_PHP tutorial

PHP traverses a single directory with writable permissions script_PHP tutorial

WBOY
Release: 2016-07-13 17:47:50
Original
978 people have browsed it

 

 

 

 FUCK IT

 

 

 

www.2cto.com

 单个目录路径:

 

 

 常用文件路径:

 c:windows

 c:Documents and Settings

        c:Program Files

 c:Documents and SettingsAll UsersApplication DataMicrosoftMedia Index

  C:phpPEAR

  C:Program FilesZendZendOptimizer-3.3.0

 C:Program FilesCommon Files

 C:7i24.comiissafelog

 C:windows

 C:RECYCLER

 C:windowstemp

 c:Program FilesMicrosoft SQL Server90SharedErrorDumps

 f:recycler

 C:Program FilesSymantec AntiVirusSAVRT

 C:WINDOWS7i24.comFreeHost

 C:phpdev

 C:~1
 

 C:System Volume Information

 C:Program FilesZendZendOptimizer-3.3.0docs

 C:Documents and SettingsAll UsersDRM

 C:Documents and SettingsAll UsersApplication DataMcAfeeDesktopProtection

 C:Documents and SettingsAll UsersApplication Data360safesoftmgr

 C:Program FilesMicrosoft SQL Server90SharedErrorDumps

 


 

 

 

 

 

 set_time_limit(120);

 if($_POST['submit']){

     $a=$_POST['name'];

 if(file_exists($a)){

 

 dir_File($a);

 }else{

 echo "文件目录无权限或不存在";

 }

 }

 

 

 function dir_File($dirname){

 

 );

 while()){

 if($fileName!="." && $fileName!=".."){

 $dirFile=$dirname."\".$fileName;

 //echo $dirFile."
";

 if(is_dir($dirFile)){

 //echo $dirFile."这是一个目录"."
";

   if(is_writable($dirFile)){

 echo $dirFile."这个目录可写"."
";

 echo $dir=dir_File($dirFile);

 

 }

 }

 }

 }

 }

 

?>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/478487.htmlTechArticle!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml html head meta http-equi...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template