当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
阿里资深架构师钟华曰:中台战略思想与架构实战;含内部实施手册
87. (Home of cesium) cesium heat map (topography)
【WPS-OFFICE-Word】 WPS中样式的运作原理?样式自动更新、自动改变如何处理?样式的管理方法?
智能合约安全——delegatecall (2)
MySQL【变量、流程控制与游标】
Difference差分数组
高数---级数
Higher mathematics - chapter ten infinite series - constant term series
C#爬虫之通过Selenium获取浏览器请求响应结果
金鱼哥RHCA回忆录:CL210管理计算资源--管理计算节点+章节实验
【微信小程序】NFC 标签打开小程序
APT级全面免杀与企业纵深防御体系的红蓝对抗
sys文件系统
NLP的Taskflow API
PHP基础笔记-NO.2
WEB 渗透之SSRF
[Dataset][VOC] Rat dataset voc format 3001 sheets
15、学习MySQL NULL 值处理
Don't look down upon the WebSocket!Long connection, stateful, two-way, full-duplex king is Fried
OSError: [WinError 123] 文件名、目录名或卷标语法不正确







![[Notes] Introduction to machine learning](/img/69/e2acd3efd5f513c9c32fca701b66c0.png)

