当前位置:网站首页>CTF PHP audit bypasses filtering learning from topics
CTF PHP audit bypasses filtering learning from topics
2022-06-26 04:16:00 【eliforsharon】
Catalog
Basic introduction
It's going on ping When the order is executed , Ability to execute new commands by truncation .
Inject according to this principle .
Examples are as follows ip=127.0.0.1;ls
Space filtering
Consider command injection , Filtered spaces , May adopt ${IFS}、$IFS、$IFS$9 To represent the delimiter , But consider $IFS When directly followed by letters, it may be resolved to other variables , So using ${IFS} Fixed variable , perhaps $IFS$9 use $9 This null character is used to separate the fixed variable from the following letter 

Filter only cat,flag Other key words
If not filtered " ’ \ And so on
have access to "" Connector ,\ Escape characters to space strings to bypass filtering
Filter ; | & Equal connector
linux Next ; It can be used %0a replace
example ctfhub-rce- The comprehensive exercise filters the following characters
preg_match_all("/(\||&|;| |\/|cat|flag|ctfhub)/"
So the last payload by
1%0acd$IFS$1f""lag_is_here%0aca""t$IFS$1f""lag_7548135816224.php
Filter more/tail/less/cat And so on
Use strings
$a == md5( $a) Bypass
The principle is to find a 0e The string that begins with its md5 So is the value 0e,
Such as 0e215962017
Use inode Node view file
ls -i You can view the of the file inode Number 
Then you can use the command find -inum 1321734 | xargs cat To view the file .
xargs Take the previous output as the input behind the pipe .
Array strong comparison bypasses
php5.5 Array of versions key overflow bug
Reference link
[0 => 0] === [0x100000000 => 0] by true
边栏推荐
- Binary search method
- SQL related knowledge - DQL
- Analysis report on the development trend and operation status of China's environmental monitoring instrument industry from 2022 to 2028
- 微软禁止俄用户下载安装Win10/11
- Knowledge of functions
- College C language final exam · multiple choice questions · summary notes of mistakes and difficulties
- [Qunhui] no port access (reverse proxy + intranet penetration)
- Lua语法讲解
- Part 4: drawing quadrilateral
- SQL related knowledge - constraints
猜你喜欢

解析JSON接口并批量插入到数据库中

第 4 篇:绘制四边形

线程同步之条件变量

What if the serial port fails to open when the SCM uses stc-isp to download software?

Install dbeaver and connect Clickhouse

After four years of outsourcing, people are directly abandoned...
![Which is the best embedded visual programming software? (introduction, evaluation and selection of visual programming platform) [scratch, mind+, mixly]](/img/9c/7af92e6ef907b443d974275614e51a.jpg)
Which is the best embedded visual programming software? (introduction, evaluation and selection of visual programming platform) [scratch, mind+, mixly]

力扣 515. 在每个树行中找最大值

Oracle technology sharing Oracle 19.14 upgrade 19.15

面了个字节拿25k出来的测试,算是真正见识到了基础的天花板
随机推荐
In the matter of getting customers at sea, how can advertisers play besides digital advertising?
解析JSON接口并批量插入到数据库中
Quanergy welcomes Lori sundberg as chief human resources officer
Dix critères de base importants pour les essais de débogage de logiciels
SQL related knowledge - DQL
C generic
Principle and implementation of syn cookie
MapReduce execution principle record
Introduction Guide to the flutterplugin plug-in in the actual combat of flutter
How to use EEPROM in 51 Single Chip Microcomputer?
Understand CGI and fastcgi
Go SQL parsing time Time type
MySQL enable logbin in Qunhui docker
35岁程序员炒Luna 千万资产3天归零,网友:和赌博一样
Tencent Interviewer: How did binder get its system services?
[MySQL] MySQL export database
NFT creation and binding of BSC and HT chains
Sorting out the knowledge points of the renderview renderobject parentdata of the shuttle
Oracle technology sharing Oracle 19.14 upgrade 19.15
在出海获客这件事上,数字广告投放之外,广告主还能怎么玩儿?