摘要: 进入网站就是代码,开始审计 <?php if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR']; } if(!isset($_GET['host 阅读全文
posted @ 2022-01-10 17:48 oldliutou 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 打开网站 前置知识: WEB-INF主要包含一下文件或目录: /WEB-INF/web.xml:Web应用程序配置文件,描述了 servlet 和其他的应用组件配置及命名规则。 /WEB-INF/classes/:含了站点所有用的 class 文件,包括 servlet class 和非servle 阅读全文
posted @ 2022-01-10 17:06 oldliutou 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 上传 .htaccess和 .png文件即可,并且用长语法PHP代码绕过限制,用蚁剑连接即可。 阅读全文
posted @ 2022-01-10 17:04 oldliutou 阅读(28) 评论(0) 推荐(0) 编辑
摘要: <?php include("flag.php"); highlight_file(__FILE__); class FileHandler { protected $op="1"; protected $filename="/tmp/tmpfile"; protected $content="He 阅读全文
posted @ 2022-01-10 17:01 oldliutou 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 打开网页是PHP代码,开始代码审计吧 include 'flag.php'; $flag='MRCTF{xxxxxxxxxxxxxxxxxxxxxxxxx}'; if(isset($_GET['gg'])&&isset($_GET['id'])) { $id=$_GET['id']; $gg=$_G 阅读全文
posted @ 2022-01-10 17:00 oldliutou 阅读(29) 评论(0) 推荐(0) 编辑