1 Star 0 Fork 2

云上 / WDScanner

forked from fs0crety / WDScanner 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
filespider.php 676 Bytes
一键复制 编辑 原始数据 按行查看 历史
tidesec 提交于 2019-02-13 13:15 . Update code
<?php
function ld_Checkpath($str)
{
$arr = array("\\","/","..",":");
foreach ($arr as $k)
{
if(stristr("$str","$k")) exit();
}
return $str;
}
$hash = ld_Checkpath($_GET['p']);
//$basedir = dirname(__FILE__);
$path = dirname(__FILE__)."/TaskPython/logspider/$hash/urllog.txt";
//print $path;
$done = dirname(__FILE__)."/TaskPython/logspider/$hash/done.txt";
$urlall = dirname(__FILE__)."/TaskPython/logspider/$hash/urlall.txt";
if (is_file($done)){
if (isset($_GET['c']) && ($_GET['c'] == 'urlall')){
echo file_get_contents($urlall);
}else{
echo file_get_contents($path);
}
}else{
echo "null";}
//echo $path;
//echo file_get_contents($path);
?>
1
https://gitee.com/on_cloud_admin/WDScanner.git
git@gitee.com:on_cloud_admin/WDScanner.git
on_cloud_admin
WDScanner
WDScanner
master

搜索帮助