【PHP代码审计】如何搜索伪静态页面对应执行的php文件


0x001 查看重写路由规则的配置文件

我本地使用的apache
在这里插入图片描述

0x002 根据访问的url判断使用了哪条路由规则

在这里插入图片描述
在这里插入图片描述

url:http://127.0.0.1/dmjz/detail-9.html

触发规则:RewriteRule ^/detail-([0-9]+)\.html  /index\.php\?detailid=$1&ifalias=n&file=category [L]

执行文件:category

需要传的参数为:detailid

在这里插入图片描述

0x003 断点调试确认执行文件是否正确

在这里插入图片描述
在这里插入图片描述

http://127.0.0.1/dmjz/detail-9.html  执行文件为 --> /dmjz/component/dm-include/file_category.php

猜你喜欢

转载自blog.csdn.net/weixin_44032232/article/details/114226496