当前位置:网站首页>Attack and defense world web master advanced area php2
Attack and defense world web master advanced area php2
2022-07-29 00:17:00 【Ant200】
1. Enter the page , Tip let's try this website , See the title php2, Think of affirmation and php of
2. understand .phps For relevant knowledge, refer to the boss's Blog
3. When we master .phps Related knowledge , Scan with imperial sword , Be careful to add a dictionary , Or you won't be able to scan , Direct access index.phps

4. Code audit
Make sure before that urldecode urlencode The difference between
urlencode() The function principle is to first convert Chinese characters into hexadecimal , Then add an identifier before each character %. urldecode() Function and urlencode() The principle of function is opposite , Used to decode encoded URL character string , Its principle is to convert hexadecimal strings into Chinese characters , Refer to this big man Blog
Found here in progress url decode , If the decoded variable id be equal to admin Will give flag
5. The browser itself will do so url decode , This is equivalent to two url decode , Just need to make id The value after is equal to admin Do it twice url code , For convenience, we can put a Code twice ,
Yes a The letters are carried out twice url code
for the first time url code :a ==> %61 //a Of ascii Code is 97, and 97 The hexadecimal of is 61, Add one more %, The resulting %61
The second time url code :%61 ==> %25%36%31 // Respectively for %,6,1 Conduct url code ,% Of ascii Code is 37,37 Of hex The value is 25, Add one more %, In the end is %25,6 Of ascii Code is 54,54 Of hex The value is 36, Add a %, In the end is %36,1 Empathy
Use online tools to a Conduct url When coding , Still get a, At this time, you need to know the coding rules
%25%36%31 == %2561 why?
Answer:
%2561 Decode once to get %61, because url Encoding is % Add two digits , So first %25 Conduct url Decode to get % In itself , and 61 It's a number without decoding , You get %61 The second decoding results in a
%25%36%31 Decoding for the first time %25==>% %36==>6 %31==>1 So decode once to get %61 Decode for the second time to get a, Here we learn from this big man's Blog , You can refer to .
6. Finally visit the address index.php/?id=%2561dmin
%2561=a
obtain flag
A chicken with vegetables , If you have any questions, please correct them !
边栏推荐
- 【小程序项目开发 -- 京东商城】uni-app 商品分类页面(上)
- Idea2021.2 installation and configuration (continuous update)
- JS高级 之 ES6~ES13 新特性
- Leetcode 763. partition labels divide alphabetic intervals (medium)
- Virtual lab basic experiment tutorial -8. Fourier transform (1)
- feign调用不通问题,JSON parse error Illegal character ((CTRL-CHAR, code 31)) only regular white space (r
- Real time data warehouse: meituan's implementation of real-time data warehouse construction based on Flink
- What does WGet mean
- Real time data warehouse: Didi's real-time data warehouse landing practice
- Develop effective Tao spell
猜你喜欢
![[applet project development -- JD mall] uni app commodity classification page (first)](/img/6c/5b92fc1f18d58e0fdf6f1896188fcd.png)
[applet project development -- JD mall] uni app commodity classification page (first)

CV target detection model sketch (2)

【TA-霜狼_may-《百人计划》】美术2.2 模型基础

After SAP Oracle replicates a new instance, the remote connection of the database reports an error ora-01031

How NAT configures address translation

Sword finger offer 64. find 1+2+... +n, logical operator short circuit effect

ISO 13400(DoIP)标准解读

Virtual lab basic experiment tutorial -8. Fourier transform (1)

VMware VCSA 7.0 Install

动态规划问题(七)
随机推荐
MySql中的like和in走不走索引
Build SSM project with JSP as view parser
Visual full link log tracking
IDEA报错Error running ‘Application‘ Command line is too long解决方案
After SAP Oracle replicates a new instance, the remote connection of the database reports an error ora-01031
JS four formulas for judging data types
laptop外接显示器
SQL实现将多行记录合并成一行
ISO 13400(DoIP)标准解读
Add build dependency error
Idea error running 'application' command line is too long solution
feign调用不通问题,JSON parse error Illegal character ((CTRL-CHAR, code 31)) only regular white space (r
PMP Exam countdown, look at 3A pass bag!
Review of categories 1-4
1-8 props的基础使用
Detailed principle explanation and verification results of digital clock based on FPGA
SQL implementation merges multiple rows of records into one row
mysql索引失效的常见9种原因详解
CANoe应用案例之DoIP通信
Centos7 install mysql8