[羊城杯 2020]Easyphp2
[羊城杯 2020]Easyphp2
考点
wp
<?php
ini_set('max_execution_time', 5);
if ($_COOKIE['pass'] !== getenv('PASS')) {
setcookie('pass', 'PASS');
die('wrong');
if (isset($_GET["count"])) {
$count = $_GET["count"];
if(preg_match('/;|base64|rot13|base32|base16|<\?php|#/i', $count)){
die('hacker!');
}
echo "shell".exec('printf \'' . $count . '\' | wc -c');小结
最后更新于