PHP pseudo-protocol
First of all, we need to understand the file inclusion functions we may encounter in CTF:
1、include
2、require
3、include_once
4、require_once
5、highlight_file
6、show_source
7. readfile
8. file_get_contents
9. fopen
10. 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
<?php include($_GET['file']) ?>
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Dreamweaver CS6
Visual web development tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

WebStorm Mac version
Useful JavaScript development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment
