当前位置:网站首页>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
边栏推荐
- 面了个字节拿25k出来的测试,算是真正见识到了基础的天花板
- Judge the same value of two sets 𞓜 different values
- Getting started with flask
- Binary search method
- Detailed explanation of widget construction process of fluent
- MySQL est livré avec l'outil de test de performance MySQL lap pour effectuer des tests de résistance
- [MySQL] MySQL export database
- Custom parameter QR code picture combined with background picture to generate new picture node environment
- Implementation of seven classes of BlockingQueue interface
- Nailing open platform - applet development practice (nailing applet client)
猜你喜欢
[Qunhui] no port access (reverse proxy + intranet penetration)
[QT] dialog box
2021 year end summary
Part 4: drawing quadrilateral
Ubuntu installs PostgreSQL and uses omnidb to view
Read / write lock for thread synchronization
[Qunhui] Internet access + custom port
What's wrong with connecting MySQL database with eclipse and then the words in the figure appear
How to use EEPROM in 51 Single Chip Microcomputer?
一幅脑图总结一下需求分析(工作上实际遇到的情况的补充)
随机推荐
go语言泛型在IDE中语法报错
matplotlib多条折线图,点散图
[Qunhui] import certificate
Double buffer technology asynchronous log system
Webrtc series - 7-ice supplement of network transmission preference and priority
SQL related knowledge - DQL
Ubuntu installs PostgreSQL and uses omnidb to view
Detailed explanation of widget construction process of fluent
Ten important basic principles of software debugging and testing
How do wechat applets delay? Timing? Execute a piece of code after? (kengji)
pip 批量完全卸载包
C generic
Development prospect and investment strategic planning report of global and Chinese PVC hose industry from 2022 to 2028
Construction of art NFT trading platform | NFT mall
软件调试测试的十大重要基本准则
Analysis report on development status and future trend of CMOS image sensor industry in China 2022 ~ 2028
[learn FPGA programming from scratch -45]: vision chapter - integrated circuits help high-quality development in the digital era -2- market forecast
China air compressor manufacturing market demand analysis and investment prospect research report 2022-2028
【掘金运营套路揭露】真心被掘金的套路....
Flask入门