当前位置:网站首页>[geek challenge 2019] secret file & file contains common pseudo protocols and gestures
[geek challenge 2019] secret file & file contains common pseudo protocols and gestures
2022-07-28 21:43:00 【Try to be a big man M0_ sixty-eight million seventy-four thousa】
1. Go to the page to see the source code

Find a hint Archive_room.php file , see 
Click in to check 
Go back to see Archive_room.php Source code , Find out url yes action.php But after coming in, I reset the guide end.php. Capture packets and replay them. Check the corresponding packets and find secr3t.php
Check the source code 
2. File contains
Code audit , Here the file can contain and filter some specific characters , however php Not filtered . Include directly first flag.php have a look .
There are files , Classic posture view source code :php://filter/read=convert.base64-encode/resource=flag.php
base64 Decrypt 
find flag
The file contains common protocols ( posture )
One 、 agreement :
1.php://filter Read the file source code
php://filter The protocol can filter and filter the open data stream , Commonly used to read file source code
When using the file include function to include a file , The code in the file will be executed , If you want to read the source code of the file ,
have access to base64 Encode the contents of the document , The encoded file content will not be executed , It's a show
In the page , We use the content in the page base64 decode , You can get the source code of the file
2.php://input Arbitrary code execution
php://input Can access the requested raw data , The matching file contains a vulnerability that can post Request body
The contents in are executed as the contents of the file , So as to realize arbitrary code execution , It should be noted that , When
enctype=multipart/form-data when ,php:/input It will not work
3.data://text/plain Arbitrary code execution
Form of agreement : data: The resource type ; code , Content
data:// The protocol executes the resource type , Make the following content execute as file content , Thus causing any
Italian code execution
4.zip:// Cooperate with file upload to open the back door
ziip:// The protocol is used to read the files in the compressed package , Can cooperate with file upload to open the back door , obtain
webshell take shell.txt Compressed into zip, Then change the suffix to jpg Upload to server , Re pass
zip Pseudo protocol to access the files in the compressed package , To link the Trojan horse
Two 、 posture :
?page=php://filter/read=string.rot13/resource=index.php
?page=php://filter/convert.base64-encode/resource=index.php
?page=pHp://FilTer/convert.base64-encode/resource=index.php
?page=zip://shell.jpg%23payload.php
?page=data://text/plain;base64,[base64_encode_shell]
?page=expect://id
?page=expect://ls
?page=php://input | POST DATA:
边栏推荐
- 实现瀑布流效果
- 百度搜索为什么只抓取,却不展现页面?
- C#流程控制语句
- 不用Swagger,那我用啥?
- Huawei releases the first electric drive system driveone: charging for 10 minutes, endurance of 200km
- Record some small requirements in the form of cases
- Leetcode 142. circular linked list II [knowledge points: speed pointer, hash table]
- Pytorch学习记录(四):过拟合、卷积神经网络CNN
- 八、QOS队列调度与报文丢弃
- LeetCode·581.最短无序连续子数组·双指针
猜你喜欢

Log slimming operation: how to optimize from 5g to 1g! (glory Collection Edition)

中国农业工程学会农业水土工程专业委员会-第十二届-笔记

Leetcode linked list question - interview question 02.07. linked list intersection (learn linked list by one question and one article)

Maintenance of delta hot metal detector principle analysis of v5g-jc-r1 laser measurement sensor / detector
![[英雄星球七月集训LeetCode解题日报] 第28日 动态规划](/img/79/bc763bb6f12c525454abda18be4265.png)
[英雄星球七月集训LeetCode解题日报] 第28日 动态规划

Pytorch学习记录(四):过拟合、卷积神经网络CNN

纳米金偶联抗体/蛋白试剂盒(20nm,1mg/100μg/500 μg偶联量)的制备

顶级“Redis 笔记”, 缓存雪崩 + 击穿 + 穿透 + 集群 + 分布式锁,NB 了

8、 QoS queue scheduling and message discarding

日志瘦身神操作:从5G优化到1G到底是怎么做到的!(荣耀典藏版)
随机推荐
How to measure software architecture
C process control statement
Leetcode 19. delete the penultimate node of the linked list [knowledge points: speed pointer, recursion, stack]
MATLAB从入门到精通 第1章 MATLAB入门
ST法国三座工厂大罢工,芯片缺货情况或将更加严重!
Layout the 6G track in advance! Ziguang zhanrui released the white paper "6G unbounded AI"
【英雄哥七月集训】第 28天:动态规划
软考 --- 数据库(3)数据操作
PyQt5快速开发与实战 5.4 网页交互
Pytoch learning record (III): random gradient descent, neural network and full connection
小霸王被申请破产!公司成“老赖” ,法人被限制高消费
融合LSTM与逻辑回归的中文专利关键词抽取
Quii Cordova plugin telerik imagepicker plug-in multi image upload out of sequence
Achieve waterfall effect
Hold high the two flags of 5g and AI: Ziguang zhanrui Market Summit is popular in Shencheng
Library borrowing system "suggested collection"
Top level "redis notes", cache avalanche + breakdown + penetration + cluster + distributed lock, Nb
How to select and build the container cloud platform that hosts the key applications of the bank?
JVM 内存布局详解(荣耀典藏版)
Leetcode interview question 02.07. Linked list intersection [knowledge points: Double pointers, stack]