0x01 靶场设计

靶场设计:https://mp.weixin.qq.com/s/uxwbnVOxkR8OBkkY9WW6aQ
星期五实验室内网渗透靶场学习 - 图1

0x02 getshell

nmap -v -Pn -T3 -sV -sS 192.168.5.108 使用nmap对目标ip进行端口扫描
image.png
开放80端口,访问为通达oa
image.png
先利用通达oa综合利用工具康康,通达11.3,好,一键getshell
image.png
system权限:
image.png
存在内网网段:
image.png
win7工作组,没有加入域环境
image.png

0x03 主机发现

生成一个cs🐎,利用webshell上传运行
image.png
上线成功!
image.png
调整心跳
image.png
抓取hash
image.png
密码解密为admin
image.png
上传fscan扫描内网网段,这里内网主机应该是禁止ping,主机存活并没有扫到任何存活
image.png
shell arp -a 查看arp缓存表:
https://yantaoyu.gitbooks.io/ios/content/arphuan-cun-biao.html(关于arp缓存表)
image.png
存在c段主机
然后使用fscan -np 跳过主机发现阶段,直接扫描端口
80,6379端口开放:(6379懂得都懂)
image.png

0x04搭建内网隧道

这里使用frp进行隧道搭建
本机通过Proxifie 设置全局代理
image.png
本机设置全局代理访问内网ip 说明隧道搭建成功
image.png

0x05内网横向

Redis 未授权访问直接连接:
image.png
80端口存在web服务使用写webshell方式,
redis 写webshell需要知道绝对路径
这里先扫一波目录发现php探针和phpinfo,获得绝对路径
image.png
image.png
redis 写webshell
image.png
连接成功:
image.png
信息收集到该主机不出网,存在两块网卡
image.png
存在域,
image.png
image.png
转发上线,上线不了
msf正向🐎也寄
每次打内网靶场都这样,玩个勾巴
proxychains4 msfconsole

https://mp.weixin.qq.com/s?__biz=MzU1NTQ5MDEwNw==&mid=2247484448&idx=1&sn=efff60a73e31a2885f2f8e63e2bb4942&chksm=fbd2ca74cca543629bbbd6c67c6c6dfe4221ede5e7e6f4f9d0c876ad61bacee771eaac452e64&mpshare=1&scene=23&srcid=0408gWm3jOnthwrK22VvRK7V&sharer_sharetime=1649401368655&sharer_shareid=b8a0486397853f513336363426717261#rd