What is the PHP pseudo-protocol?

王林
Release: 2023-02-24 12:06:01
Original
10552 people have browsed it

What is the PHP pseudo-protocol?

PHP pseudo-protocol

First of all, we need to understand the file inclusion functions we may encounter in CTF:

1、include2、require3、include_once4、require_once5、highlight_file6、show_source7.readfile

8.file_get_contents9.fopen10.file(Compare Common)

PHP pseudo-protocol is actually the supported protocol and encapsulation protocol (12 types)

a. file:// — access the local file system

b. http:// — Access HTTP(s) URLs

c. ftp:// — Access FTP(s) URLs

d. php:// — Access various Input/output streams (I/O streams)

e. zlib:// — Compressed stream

f. data:// — Data (RFC 2397)

g . glob:// — Find matching file path pattern

h. phar:// — PHP archive

i. ssh2:// — Secure Shell 2

j . rar:// — RAR

k. ogg:// — audio stream

l. expect:// — handle interactive streams

Whether truncation is required

1. No need to truncate

Copy after login

2. Need to truncate(can be used for testing in php version

The above is the detailed content of What is the PHP pseudo-protocol?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!