当前位置:网站首页>ctfshow php特性
ctfshow php特性
2022-08-03 18:57:00 【白塔河冲浪手】
web89
<?php
include("flag.php");
highlight_file(__FILE__);
if(isset($_GET['num'])){
$num = $_GET['num'];
if(preg_match("/[0-9]/", $num)){
die("no no no!");
}
if(intval($num)){
echo $flag;
}
}
有个正则匹配0-9数字,,输出flag的条件是要变量num为整数,直接用数组绕过就行了
web90
<?php
include("flag.php");
highlight_file(__FILE__);
if(isset($_GET['num'])){
$num = $_GET['num'];
if($num==="4476"){
die("no no no!");
}
if(intval($num,0)===4476){
echo $flag;
}else{
echo intval($num,0);
}
}
绕过强等于===
?num=4476a
web91
边栏推荐
猜你喜欢
随机推荐
Online monitoring of UPS power supply and operating environment in the computer room, the solution is here
pytest接口自动化测试框架 | Jenkins集成初探
APT级全面免杀与企业纵深防御体系的红蓝对抗
[Dataset][VOC] Rat dataset voc format 3001 sheets
POJ 3041 Asteroids(最大匹配数=最小点覆盖)
WEB 渗透之RCE
C#爬虫之通过Selenium获取浏览器请求响应结果
一文搞懂│php 中的 DI 依赖注入
201709-3 CCF jason查询 (满分题解)
分享即时通讯开发之WebSocket:概念、原理、易错常识、动手实践
openresty 高可用部署
With the help of Kubernetes kubekey speed installation
Big guy, who is free to help me to see what the problem is, I just read MySQL source print, and I just came into contact with flink.
Redis:哨兵
B628芯片电路图,B628升压IC的PCB布局PCB
高数---级数
红日安全内网渗透靶场-VulnStack-1
Don't look down upon the WebSocket!Long connection, stateful, two-way, full-duplex king is Fried
cocos creater 3.x 插件安装方法
机器学习的方法总结