error_reporting(0);if(!isset($_GET['num'])){ show_source(__FILE__); }else{ $str= $_GET['num']; $blacklist= ['','\t','\r','\n','\'','"','`','\[','\]','\$','\\','\^'];foreach($blacklistas$blackitem) {if(preg_match('/'. $blackitem .'/m', $str)...
Transfer-Encoding标头用于指定消息体使用分块编码(ChunkedEncode),也就是说消息报文由一个或多个数据块组成,每个数据块大小以字节为单位(十六进制表示) 衡量,后跟换行符,然后是块内容,最重要的是:整个消息体以大小为0的块结束,也就是说解析遇到0数据块就结束。 这就导致如果我们使用如反向代理一类的服务器(后面简...
error_reporting(0); if(isset($_GET['c'])){ $c = $_GET['c']; if(!preg_match("/flag/i", $c)){ eval($c); } }else{ highlight_file(__FILE__); } 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 我这里只想到五种简便的方法: 通配符 payload1:c=system("nl fla???"); pa...
path='c:\windows' error_reporting(0) <?php// 关闭错误报告 error_reporting(0);// 报告 runtime 错误 error_reporting(E_ERROR | E_WARNING | E_PARSE);// 报告所有错误 error_reporting(E_ALL);// 等同 error_reporting(E_ALL); ini_set("error_reporting", E_ALL);// 报告 E_NOTICE 之外的...
代码运行次数:0 复制 Cloud Studio代码运行 1.<?php2.error_reporting(0);3.if(empty($_GET['id'])){4.show_source(__FILE__);5.die();6.}else{7.include('flag.php');8.$a="www.OPENCTF.com";9.$id=$_GET['id'];10.@parse_str($id);11.if($a[0]!='QNKCDZO'&&md5($a[0])...
phphighlight_file(__FILE__);include('flag.php');error_reporting(0);$error='你还想要flag嘛?';$suces='既然你想要那给你吧!';foreach($_GETas$key=>$value){if($key==='error'){die("what are you doing?!");}$$key=$$value;}foreach($_POSTas$key=>$value){if($value==='flag')...
phpheader('Content-type:text/html;charset=utf-8');error_reporting(0);highlight_file(__file__);//level 1if(isset($_GET['num'])){$num=$_GET['num'];if(intval($num)<2020&&intval($num+1)>2021){echo"我不经意间看了看我的劳力士, 不是想看时间, 只是想不经意间, 让你知道我过得...
define("SECRET_KEY",'***');define("METHOD","aes-128-cbc");error_reporting(0);include('conn.php');functionsqliCheck($str){if(preg_match("/\\\|,|-|#|=|~|union|like|procedure/i",$str)){return1;}return0;}functionget_random_iv(){$random_iv='';for($i=0;$i<16;$i++){$...
error_reporting(0);if(empty($_GET["action"])) { show_source(__FILE__); }else{include$_GET["action"].".php"; } 可以文件包含,但是被添加了.php后缀。尝试%00截断、超长字符串截断均不成功。 注意到第一句代码,变量名为ROBOTS,联想到robots.txt。