当前位置:网站首页>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 !
边栏推荐
- Cmake basic learning
- Leetcode 763. partition labels divide alphabetic intervals (medium)
- Leetcode63. Different paths II
- EN 1873 assembly accessories for roofing - plastic single roof lamps - CE certification
- Powercli batch add esxi to vCenter
- MySQL installation and configuration tutorial (super detailed, nanny level)
- Real time data warehouse: meituan reviews Flink's real-time data warehouse application sharing
- How can Plato obtain premium income through elephant swap in a bear market?
- 【C】 Replace spaces and realize binary parity bit exchange of integers by macros
- Doip test development practice
猜你喜欢

MySQL installation and configuration tutorial (super detailed, nanny level)

Web系统常见安全漏洞介绍及解决方案-CSRF攻击

Sword finger offer 55 - I. depth of binary tree

Linux之yum安装MySQL

Principle of meter skipping

研发效能的道法术器

EN 1873 assembly accessories for roofing - plastic single roof lamps - CE certification

html+css+php+mysql实现注册+登录+修改密码(附完整代码)

Solution: direct local.Aar file dependencies are not supported when building an aar

Classification and determination method of Worthington stemxyme
随机推荐
【C】 Drink soda and find a single dog
Event extraction and documentation (2008-2017)
Concurrency in go
Control fillet stroke materialshapedrawable
Opencv macro definition
EN 1873 assembly accessories for roofing - plastic single roof lamps - CE certification
SAP temporary tablespace error handling
Servlet operation principle_ API details_ Advanced path of request response construction (servlet_2)
Oracle创建表空间和用户
NPM replace the latest Taobao image
【C】 Introduction and Simulation Implementation of ATOI and offsetof
Yolov5 learning notes (I) -- principle overview
Real time data warehouse: Didi's real-time data warehouse landing practice
1-5 类式组件
JS four formulas for judging data types
软件设计师的错题汇总
Type 1-5 components
CV instance segmentation model sketch (1)
EN 12101-8:2011 smoke dampers for smoke and heat control systems - CE certification
Idea error running 'application' command line is too long solution