当前位置:网站首页>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
边栏推荐
猜你喜欢
![[笔记]机器学习之前言介绍](/img/69/e2acd3efd5f513c9c32fca701b66c0.png)
[笔记]机器学习之前言介绍

Alibaba senior experts create a learning architecture from scratch, including Alibaba's internal technology stack PPT, PFD actual combat

87. (Home of cesium) cesium heat map (topography)

PHP基础笔记-NO.1

使用安全浏览器将网页保存为pdf的方法步骤

When does MySQL use table locks and when to use row locks?You should know this

Shell编程案例

【计网】二、物理层

vulnhub pyexp: 1

mysql跨库关联查询(dblink)
随机推荐
Shell编程案例
201709-3 CCF jason查询 (满分题解)
实时渲染器不止lumion,Chaos Vantage你值得一试
warnings.warn(“Title is more than 31 characters. Some applications may not be able to read the file
【计网】二、物理层
WEB 渗透之SSRF
WEB 渗透之RCE
懵逼!阿里一面被虐了,幸获内推华为技术四面,成功拿到offer,年薪40w
【Azure 事件中心】使用Azure AD认证方式创建Event Hub Consume Client + 自定义Event Position
2022年最新的Android面试大厂必考174题(附带详细答案)
Mock模拟数据,并发起get,post请求(保姆级教程,一定能成功)
基于ck+redash构建MySQL慢日志+审计日志展示平台
软件测试回归案例,什么是回归测试?
MD5是对称加密还是非对称加密,有什么优缺点
87. (Home of cesium) cesium heat map (topography)
多线程和并发编程(四)
sys文件系统
Confused!Ali was abused on the one hand, but was fortunate to be promoted to Huawei's technology, and successfully got the offer, with an annual salary of 40w
MySQL【变量、流程控制与游标】
excel写入不完全sheet.append方法(openpyxl)