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:// 协议直接传入字符串)
本文来自博客园,作者:Doll_Marker,转载请注明原文链接:https://www.cnblogs.com/dollaikun/p/20627502

浙公网安备 33010602011771号