当前位置:网站首页>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 !
边栏推荐
- [TA frost wolf _may- "hundred people plan"] art 2.2 model basis
- ACM SIGIR 2022 | interpretation of selected papers of meituan technical team
- Exchange 2013 SSL certificate installation document
- Leetcode 763. partition labels divide alphabetic intervals (medium)
- 以JSP为视图解析器搭建SSM项目
- GhostNets on Heterogeneous Devices via Cheap Operations
- 1-5 类式组件
- How can Plato obtain premium income through elephant swap in a bear market?
- Compilation principle research study topic 2 -- recursive descent syntax analysis design principle and Implementation
- 1-4 类的复习
猜你喜欢

Control fillet stroke materialshapedrawable

Detailed explanation of 9 common reasons for MySQL index failure

Connection pool - return connection details (Part 2)

Application of Devops in Internet of things solutions
![[CNN] Why is the convolution kernel size of CNN usually odd](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[CNN] Why is the convolution kernel size of CNN usually odd

跳表的原理

"Method not allowed", 405 problem analysis and solution

EN 1935 building hardware. Single axis hinge - CE certification

Idea error running 'application' command line is too long solution

The difference between {} and ${}
随机推荐
Please briefly describe the respective characteristics of list, set and map type sets (briefly describe three different inheritance methods)
Intelligent trash can (VII) -- Introduction and use of sg90 steering gear (Pico implementation of raspberry pie)
【C】 Reverse string (two recursive ideas)
Event extraction and documentation (2008-2017)
mysql中exists的用法详解
Solution: direct local.Aar file dependencies are not supported when building an aar
Android studio连接MySQL并完成简单的登录注册功能
Oracle create tablespaces and users
[microservice] Nacos cluster building and loading file configuration
SQL实现将多行记录合并成一行
1-6 state and binding events
html+css+php+mysql实现注册+登录+修改密码(附完整代码)
Detailed explanation of the usage of exists in MySQL
JS advanced ES6 ~ es13 new features
Detailed principle explanation and verification results of digital clock based on FPGA
GhostNets on Heterogeneous Devices via Cheap Operations
CMake 基础学习
VS2005 accesses the setting method "recommended collection" of vss2005 through sourceoffsite
How NAT configures address translation
SQL implementation merges multiple rows of records into one row