PHP伪协议

PHP伪协议

首先我们需要先了解一下我们在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(比较常见)

PHP伪协议事实上就是支持的协议与封装协议(12种)

a.file:// — 访问本地文件系统

b.http:// — 访问 HTTP(s) 网址

c.ftp:// — 访问 FTP(s) URLs

d.php:// — 访问各个输入/输出流(I/O streams)

e.zlib:// — 压缩流

f.data:// — 数据(RFC 2397)

g.glob:// — 查找匹配的文件路径模式

h.phar:// — PHP 归档

i.ssh2:// — Secure Shell 2

j.rar:// — RAR

k.ogg:// — 音频流

l.expect:// — 处理交互式的流

猜你喜欢

转载自www.cnblogs.com/So7cool/p/9795712.html
今日推荐