data协议文件流

$text = $_GET["text"];

if(file_get_contents($text,'r')==="welcome to the zjctf"))

输入?text=data://text/plain,welcom to the zjctf

不可以直接输入?text=welcom to the zjctf

因为file_get_contents()读取的是文件流,所以要使用data://text/plain,xxx伪协议(使用 data:// 协议直接传入字符串)

posted @ 2026-06-18 13:00  Doll_Marker  阅读(6)  评论(0)    收藏  举报