当前位置:网站首页>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 !
边栏推荐
- Real time data warehouse: meituan's implementation of real-time data warehouse construction based on Flink
- Interpretation of ISO 13400 (doip) standard
- How NAT configures address translation
- “Method Not Allowed“,405问题分析及解决
- SQL implementation merges multiple rows of records into one row
- DoIP测试开发实践
- ACM SIGIR 2022 | interpretation of selected papers of meituan technical team
- Detailed explanation of the usage of exists in MySQL
- Servlet运行原理_API详解_请求响应构造进阶之路(Servlet_2)
- "Method not allowed", 405 problem analysis and solution
猜你喜欢

熊市下PLATO如何通过Elephant Swap,获得溢价收益?

VMware VCSA 7.0 Install

动态规划问题(三)

Classification and determination method of Worthington stemxyme

#{}和${}的区别

Worthington - chemical properties and related studies of Worthington trypsin

跳表的原理

动态规划问题(八)

Okaleido ecological core equity Oka, all in fusion mining mode

Detailed principle explanation and verification results of digital clock based on FPGA
随机推荐
Intelligent trash can (VII) -- Introduction and use of sg90 steering gear (Pico implementation of raspberry pie)
"Method not allowed", 405 problem analysis and solution
Powercli VMware vCenter deploys conventional new VMS in batch through self built PXE server with one click
研发效能的道法术器
Application of Devops in Internet of things solutions
1-4 类的复习
Idea error running 'application' command line is too long solution
PMP Exam countdown, look at 3A pass bag!
【TA-霜狼_may-《百人计划》】美术2.2 模型基础
1-8 props的基础使用
CMake 基础学习
Detailed principle explanation and verification results of digital clock based on FPGA
[microservice] Nacos cluster building and loading file configuration
【C】替换空格,宏实现整数的二进制奇偶位交换
研发效能的道法术器
Opencv macro definition
curl (7) Failed connect to localhost8080; Connection refused
Develop effective Tao spell
Dual for loop optimization
Plato farm is expected to further expand its ecosystem through elephant swap