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

边栏推荐
- Vulnhub geminiinc
- POI excel cell wrap
- The R language uses the hist function in the native package (basic import package, graphics) to visualize the histogram plot
- Groovy test class and JUnit test
- phpcms 提示信息頁面跳轉showmessage
- vulnhub之narak
- DS90UB949
- STL tutorial 10 container commonalities and usage scenarios
- Excel快速跨表复制粘贴
- Experience container in libvirt
猜你喜欢

2022 northeast four provinces match VP record / supplementary questions

How should intermediate software designers prepare for the soft test

2022 东北四省赛 VP记录/补题

Web security summary

Vulnhub geminiinc

The world's most popular font editor FontCreator tool

机器学习 3.2 决策树模型 学习笔记(待补)

Excel quick cross table copy and paste

Numpy np.max和np.maximum实现relu函数

OpenGL 绘制彩色的三角形
随机推荐
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
Niuniu's team competition
Qt OpenGL相机的使用
STL教程10-容器共性和使用场景
Yintai department store ignites the city's "night economy"
Repo ~ common commands
phpcms 提示信息頁面跳轉showmessage
抓包整理外篇fiddler———— 会话栏与过滤器[二]
Qt OpenGL 旋转、平移、缩放
Numpy np. Max and np Maximum implements the relu function
R语言使用data.table包进行数据聚合统计计算滑动窗口统计值(Window Statistics)、计算滑动分组中位数(median)并合并生成的统计数据到原数据集中
MySQL uses the method of updating linked tables with update
typeScript
836. 合并集合(DAY 63)并查集
R语言ggplot2可视化:gganimate包创建动态折线图动画(gif)、使用transition_reveal函数在动画中沿给定维度逐步显示数据、在折线移动方向添加数据点
2022年中南大学夏令营面试经验
Test classification in openstack
vulnhub之raven2
DS90UB949
R语言使用gridExtra包的grid.arrange函数将lattice包的多个可视化图像横向组合起来,ncol参数自定义组合图列数、nrow参数自定义组合图行数