当前位置:网站首页>Vulnhub pyexp
Vulnhub pyexp
2022-07-03 11:52:00 【Plum_ Flowers_ seven】
banner Information :Banner Information , Welcome , stay banner Information can be obtained from software developers , Software name 、 edition 、 Service type, etc
Catalog
3、 ... and 、 Service version discovery
2. Database information disclosure
6、 ... and 、python Of fernet Decrypt
8、 ... and 、 information gathering
One 、 The host found

Two 、 Port scanning

3、 ... and 、 Service version discovery
It is found that there are only two ports . They are open ssh and mysql.

Four 、hydra Brute force
No, web application , Only from ssh Or is it mysql Break through the border . From the collection of information ,ssh and mysql All support remote login .
1.mysql Exhausting
The burst password is :prettywoman

2.ssh Exhausting
It didn't explode , It can be seen that the password is complex or the dictionary is not good .
5、 ... and 、mysql attack
1. Attack server system
(1)\!
If it is the default configuration , In order to open mysql Execute commands within the sovereignty of the user process
The attempt failed , We carry out orders , Back to our own bash.

(2) Execute functions with commands
select do_system('id')
Show that there is no , Failure

(3) Try reading system files
select load_file('/etc/passwd')
Know a message , Can pass shell Only root and lucy

2. Database information disclosure
Now that they have logged in , Of course, it depends on the database information , stay data Under database , We can see a fernet(python encryption algorithm ), There is a string of encrypted information in it .


6、 ... and 、python Of fernet Decrypt
1.python The official manual

2.key and value analysis
We're on this key and value The format of , Combined with the values obtained in the database , To decrypt .

3. Decrypt
Successfully solved lucy Password 
7、 ... and 、 Sign in lucy

8、 ... and 、 information gathering
1.sudo To configure 
2.exp.py
It is used to execute commands py file

Nine 、 Raise the right
import pty;pty.spawn('/bin/bash')

边栏推荐
- 剑指offer专项32-96题做题笔记
- 2022年中南大学夏令营面试经验
- Duplicate numbers in the array of sword finger offer 03
- Excel快速跨表复制粘贴
- AI模型看看视频,就学会了玩《我的世界》:砍树、造箱子、制作石镐样样不差...
- Go language to realize static server
- Kibana~Kibana的安装和配置
- Understand go language context in one article
- Kubernetes 三打探针及探针方式
- 导师对帮助研究生顺利完成学业提出了20条劝告:第一,不要有度假休息的打算.....
猜你喜欢

Vulnhub narak

Unity3D学习笔记5——创建子Mesh

STL教程9-容器元素深拷贝和浅拷贝问题

解决msvcp120d.dll和msvcr120d.dll缺失

Niuniu's team competition

Slam mapping and autonomous navigation simulation based on turnlebot3

Understand go language context in one article

OpenGL 绘制彩色的三角形

How to get started embedded future development direction of embedded

Momentum of vulnhub
随机推荐
This article explains the complex relationship between MCU, arm, MCU, DSP, FPGA and embedded system
Visual Studio 2022下载及配置OpenCV4.5.5
Groovy test class and JUnit test
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
uniapp scroll view 解决高度自适应、弹框滚动穿透等问题。
How to make others fear you
OpenGL 索引缓存对象EBO和线宽模式
AI模型看看视频,就学会了玩《我的世界》:砍树、造箱子、制作石镐样样不差...
OpenStack中的测试分类
vulnhub之narak
The uniapp scroll view solves the problems of high adaptability and bullet frame rolling penetration.
Cadence background color setting
一些常用术语
vulnhub之Nagini
vulnhub之Ripper
Go语言实现静态服务器
R language uses grid of gridextra package The array function combines multiple visual images of the lattice package horizontally, and the ncol parameter defines the number of columns of the combined g
安装electron失败的解决办法
vulnhub之tomato(西红柿)
P3250 [hnoi2016] Network + [necpc2022] f.tree path tree section + segment tree maintenance heap