File upload - double extensions文件上傳——雙擴展
Gallery v0.02
Your goal is to hack this photo galery by uploading PHP code.
/challenge/web-serveur/ch20/tmp/phpSfAkKz 訪問無果
返回
查看源碼
刪除
PV1OejHY4MxfsC2mHpRz9
File upload - MIME type
常見的MIME類型 超文本標記語言文本 .html text/html xml文檔 .xml text/xml XHTML文檔 .xhtml application/xhtml+xml 普通文本 .txt text/plain RTF文本 .rtf application/rtf PDF文檔 .pdf application/pdf Microsoft Word文件 .word application/msword PNG圖像 .png image/png GIF圖形 .gif image/gif JPEG圖形 .jpeg,.jpg image/jpeg au聲音文件 .au audio/basic MIDI音樂文件 mid,.midi audio/midi,audio/x-midi RealAudio音樂文件 .ra, .ram audio/x-pn-realaudio MPEG文件 .mpg,.mpeg video/mpeg AVI文件 .avi video/x-msvideo GZIP文件 .gz application/x-gzip TAR文件 .tar application/x-tar 任意的二進制數據 application/octet-stream
Content-Disposition: form-data; name="file"; filename="2.php"
Content-Type: image/gif
查看源碼
抓包
password : UN2YusYPnmwfHFHI5zj3
HTTP cookies
Bob create a script to gather user’s email...
PS : Bob really love cookies
ctrl+u