当前位置:网站首页>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
边栏推荐
- High performance computing center roce overview
- C generic
- The stc-isp burning program for 51 single chip microcomputer always shows that "the target single chip microcomputer is being detected..." the cold start board does not respond
- asp. Net web page, ASP connects to the database, and uses asp:panel and asp:dropdownlist controls
- Analysis of the principle of obxwidget
- 线程同步之读写锁
- Which is the best embedded visual programming software? (introduction, evaluation and selection of visual programming platform) [scratch, mind+, mixly]
- Implementation of seven classes of BlockingQueue interface
- (15) Blender source code analysis flash window display menu function
- What's wrong with connecting MySQL database with eclipse and then the words in the figure appear
猜你喜欢

Oracle technology sharing Oracle 19.14 upgrade 19.15

第 4 篇:绘制四边形

Getting started with flask

Install dbeaver and connect Clickhouse

Spark - 一文搞懂 parquet

Double buffer technology asynchronous log system

Quanergy welcomes Lori sundberg as chief human resources officer

Computer network high frequency interview questions

User control custom DependencyProperty

【QT】对话框dialog
随机推荐
Analysis of the principle of obxwidget
Implementation of seven classes of BlockingQueue interface
pip 批量完全卸载包
Matplotlib multi line chart, dot scatter chart
Nailing open platform - applet development practice (nailing applet server side)
面了个字节拿25k出来的测试,算是真正见识到了基础的天花板
2021 year end summary
English version of ternary loss
Question brushing record day01
How do wechat applets delay? Timing? Execute a piece of code after? (kengji)
35岁程序员炒Luna 千万资产3天归零,网友:和赌博一样
Analysis report on development status and future trend of CMOS image sensor industry in China 2022 ~ 2028
MySQL enable logbin in Qunhui docker
[Flink] a brief analysis of the writing process of Flink sort shuffle
软件调试测试的十大重要基本准则
The style of the mall can also change a lot. DIY can learn about it
Oracle technology sharing Oracle 19.14 upgrade 19.15
C generic
Verrouillage de lecture et d'écriture pour la synchronisation des fils
SQL related knowledge - DDL