当前位置:网站首页>vulnhub之pyexp
vulnhub之pyexp
2022-07-03 11:05:00 【梅_花_七】
banner信息:Banner信息,欢迎语,在banner信息中可以得到软件开发商,软件名称、版本、服务类型等信息
目录
一、主机发现

二、端口扫描

三、服务版本发现
发现只有两个端口。分别是开放了ssh和mysql。

四、hydra暴力破解
没有web应用,只能从ssh或者是mysql突破边界。从信息的收集来看,ssh和mysql都是支持远程登录的。
1.mysql穷举
爆破出来密码是:prettywoman

2.ssh穷举
没有爆破出来,可见密码复杂或者是字典不行。
五、mysql攻击
1.攻击服务器系统
(1)\!
如果是默认配置的话,以开启mysql用户进程的属主权限来执行命令
尝试失败,我们进行命令执行,返回了我们自己的bash。

(2)利用命令执行函数
select do_system('id')
显示不存在,失败

(3)尝试读取系统文件
select load_file('/etc/passwd')
知道一个信息,能通过shell登录的只有root和lucy

2.数据库信息泄露
既然都登陆进来了,当然要看数据库信息,在data数据库下,我们可以看到一个fernet(python加密算法),里面存着一串加密信息。


六、python的fernet解密
1.python官方手册

2.key和value分析
我们对这个key和value的格式进行了分析,结合数据库中获取的值,来进行解密。

3.解密
成功解出lucy的密码
七、登录lucy

八、信息收集
1.sudo配置
2.exp.py
就是用来执行命令的一个py文件

九、提权
import pty;pty.spawn('/bin/bash')

边栏推荐
- Multi dimensional monitoring: the data base of intelligent monitoring
- Uniapp implementation Click to load more
- Extrapolated scatter data
- Cadence background color setting
- Kibana~Kibana的安装和配置
- Arctangent entropy: the latest SCI paper in July 2022
- The world's most popular font editor FontCreator tool
- Slam mapping and autonomous navigation simulation based on turnlebot3
- GCC compilation process and dynamic link library and static link library
- 程序员的创业陷阱:接私活
猜你喜欢

AOSP ~ NTP ( 网络时间协议 )

Use typora to draw flow chart, sequence diagram, sequence diagram, Gantt chart, etc. for detailed explanation

Kibana~Kibana的安装和配置

836. Merge sets (day 63) and search sets

ASP.NET-酒店管理系统

STL tutorial 10 container commonalities and usage scenarios

2022 northeast four provinces match VP record / supplementary questions

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

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

Mmc5603nj geomagnetic sensor (Compass example)
随机推荐
STL教程10-容器共性和使用场景
Hongmeng fourth training
This article explains the complex relationship between MCU, arm, MCU, DSP, FPGA and embedded system
聊聊Flink框架中的状态管理机制
(数据库提权——Redis)Redis未授权访问漏洞总结
DS90UB949
AI模型看看视频,就学会了玩《我的世界》:砍树、造箱子、制作石镐样样不差...
.\vmware-vdiskmanager.exe -k “c:\\xxxxx.vmdk”
The tutor put forward 20 pieces of advice to help graduate students successfully complete their studies: first, don't plan to take a vacation
Kibana - installation and configuration of kibana
抓包整理外篇fiddler———— 会话栏与过滤器[二]
Program process management tool -go Supervisor
优化接口性能
Numpy np. Max and np Maximum implements the relu function
CSRF
Notes on 32-96 questions of sword finger offer
FL Studio 20 unlimited trial fruit arranger Download
vulnhub之cereal
Mmc5603nj geomagnetic sensor (Compass example)
PHP基础