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

边栏推荐
- Deploying WordPress instance tutorial under coreos
- MySQL searches and sorts out common methods according to time
- Kubernetes 三打探针及探针方式
- 《剑指offer 03》数组中重复的数字
- STL教程8-map
- 金额计算用 BigDecimal 就万无一失了?看看这五个坑吧~~
- MCDF实验1
- 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
- Cadence background color setting
- Momentum of vulnhub
猜你喜欢

After watching the video, AI model learned to play my world: cutting trees, making boxes, making stone picks, everything is good

聊聊Flink框架中的状态管理机制

Qt OpenGL 纹理贴图

GCC compilation process and dynamic link library and static link library

vulnhub之GeminiInc

AI模型看看视频,就学会了玩《我的世界》:砍树、造箱子、制作石镐样样不差...

Vulnhub's presidential

金额计算用 BigDecimal 就万无一失了?看看这五个坑吧~~

vulnhub之GeminiInc v2

PHP基础
随机推荐
Web security summary
在CoreOS下部署WordPress实例教程
2022年中南大学夏令营面试经验
C language utf8toutf16 (UTF-8 characters are converted to hexadecimal encoding)
vulnhub之cereal
Ripper of vulnhub
MySQL uses the method of updating linked tables with update
libvirt 中体验容器
ArcGIS应用(二十一)Arcmap删除图层指定要素的方法
vulnhub之momentum
previous permutation lintcode51
Qt OpenGL 旋转、平移、缩放
OpenStack中的测试分类
Cacti监控Redis实现过程
STL tutorial 8-map
R语言使用gridExtra包的grid.arrange函数将ggplot2包的多个可视化图像横向组合起来,ncol参数自定义组合图列数、nrow参数自定义组合图行数
外插散点数据
Deploying WordPress instance tutorial under coreos
剑指offer专项32-96题做题笔记
Excel快速跨表复制粘贴