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

边栏推荐
- OpenStack中的测试分类
- Numpy np. Max and np Maximum implements the relu function
- vulnhub之Ripper
- STL教程8-map
- PHP server interacts with redis with a large number of close_ Wait analysis
- 2022年湖南工学院ACM集训第二次周测题解
- Repo ~ common commands
- Nestjs配置服务,配置Cookie和Session
- Phpcms prompt message page Jump showmessage
- C language utf8toutf16 (UTF-8 characters are converted to hexadecimal encoding)
猜你喜欢
随机推荐
Spl06-007 air pressure sensor (example of barometer)
MCDF实验1
STL Tutorial 9 deep copy and shallow copy of container elements
Nestjs configuration service, configuring cookies and sessions
Sheet1$. Output [excel source output] Error in column [xxx]. The returned column status is: "the text is truncated, or one or more characters have no matches in the target code page.".
Raven2 of vulnhub
repo ~ 常用命令
聊聊Flink框架中的状态管理机制
Keepalived中Master和Backup角色选举策略
《剑指offer 03》数组中重复的数字
"Jianzhi offer 04" two-dimensional array search
MySQL uses the method of updating linked tables with update
R语言ggplot2可视化:gganimate包创建动态折线图动画(gif)、使用transition_reveal函数在动画中沿给定维度逐步显示数据、在折线移动方向添加数据点
vulnhub之GeminiInc v2
MySQL union和union all区别
R language uses data The table package performs data aggregation statistics, calculates window statistics, calculates the median of sliding groups, and merges the generated statistical data into the o
vulnhub之GeminiInc
836. 合并集合(DAY 63)并查集
R语言使用原生包(基础导入包、graphics)中的hist函数可视化直方图(histogram plot)
DS90UB949








