asdfkj1 / redis-ssrf

redis ssrf gopher generater && redis ssrf to rce by master-slave-sync

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

redis-ssrf

  1. ssrf to write files. eg: webshell and ssh key
  2. ssrf to rce 4.x - 5.x

Requirements

ssrf-redis.py : python2.x 3.x

rogue-server.py : python2.x (lazy

Usage

implememt for demo.

plz read generate_payload function and change payload.

for rce usage:

  1. change lhost, lport and command, then
    > python ssrf-redis.py
    > gopher://xxxxx

  2. triger ssrf

  3. meanwhile on vps
    > python rogue-server.py
    > Accepted connection from 192.168.x.x

(Need to compile a module named exp.so at first or download other's and store it with rogue-server.py)

Reference

Inspired by https://github.com/n0b0dyCN/redis-rogue-server

Also, modified from https://xz.aliyun.com/t/5665

About

redis ssrf gopher generater && redis ssrf to rce by master-slave-sync

License:Apache License 2.0


Languages

Language:Python 100.0%