VulnHub渗透测试实战靶场 - FUNBOX: CTF

题目描述

Groundhog Day: Boot2Root !

Initial footstep is a bit flowed, but really not difficult.

After getting access to Funbox: CTF, its nessesarry to find, read and understand the (2 and easy to find) hints.

Be smart and combine...

Hints: Nikto scans "case sensitive" and you need a minimum of 15 mins to get user !

If you need hints, call me on twitter: @0815R2d2

Have fun...

This works better with VirtualBox rather than VMware

This works better with VirtualBox rather than VMware

环境下载

FUNBOX: CTF靶机搭建

  1. 将下载好的靶机环境,导入 VritualBox,设置为 Host-Only 模式
  2. 将 VMware 中桥接模式网卡设置为 VritualBox 的 Host-only
  • 目标靶机的 IP 地址为:192.168.56.114
  • 攻击机的 IP 地址为:192.168.56.102

渗透测试

信息搜集

用 Nmap 扫描一下目标靶机的端口信息:sudo nmap -sS -A -Pn 192.168.56.114,发现开放了 22、80、110、143 四个端口

用 dirb 扫描一下 80 端口 web 目录:dirb http://192.168.56.114

漏洞挖掘

  • 根据 hint 的内容,尝试访问 http://192.168.56.114/ROBOTS.TXT,发现内容
Disallow: upload/
Disallow: igmseklhgmrjmtherij2145236
  • 尝试拼接后访问 http://192.168.56.114/igmseklhgmrjmtherij2145236/upload.php,发现是一个文件上传的页面,尝试上传 PHP-Shell 的反弹木马

getshell

  • 由于没有给出上传之后的路径,猜测在前面 ROBOTS.TXT 提示的 upload/ 目录下,开启 nc 监听访问上传的文件,成功接收到反弹的 shell

提权

  • 在本地将 exploit 编译好,利用文件上传漏洞将编译好的 exploit 上传上去
  • 将 exploit 转移到 tmp 目录下,加上可执行权限
  • 运行 exploit,成功拿到 root 权限
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值