Back to rankings

tarunkant/Gopherus

Python

This tool generates gopher link for exploiting SSRF and gaining RCE in various servers

rcessrfmysqlrediszabbixmemcachegophergithub-rcefastcgismtppostgresql
Star Growth
Stars
3.4k
Forks
403
Weekly Growth
Issues
5
1k2k3k
Aug 2018Mar 2021Nov 2023Jul 2026
ArtifactsPyPIpip install gopherus
README

Gopherus

If you know a place which is SSRF vulnerable then, this tool will help you to generate Gopher payload for exploiting SSRF (Server Side Request Forgery) and gaining RCE (Remote Code Execution). And also it will help you to get the Reverse shell on the victim server. And for more information you can get a blog on the same Blog on Gopherus

About

This tool can generate payload for following:

  1. MySQL (Port-3306)
  2. PostgreSQL(Port-5432)
  3. FastCGI (Port-9000)
  4. Memcached (Port-11211)
    • If stored data is getting De-serialized by:
      • Python
      • Ruby
      • PHP
  5. Redis (Port-6379)
  6. Zabbix (Port-10050)
  7. SMTP (Port-25)

Installation

chmod +x install.sh
sudo ./install.sh

Usage

Command Description
gopherus --help Help
gopherus --exploit Arguments can be :
--exploit mysql
--exploit postgresql
--exploit fastcgi
--exploit redis
--exploit zabbix
--exploit pymemcache
--exploit rbmemcache
--exploit phpmemcache
--exploit dmpmemcache
--exploit smtp

Examples

  • MySQL: If the user is not protected with password you can dump his database and also you can put malicious files in his system.
gopherus --exploit mysql

      It only asks username of the MySQL user and it will provide you gopher link.

  • PostgreSQL: If the user is not protected with password you can dump his database and also you can put malicious files in his system.
gopherus --exploit postgresql

      It only asks username of the Postgres user and database name then it will provide you gopher link.

  • FastCGI: If port 9000 is open with no security then you can get RCE.
gopherus --exploit fastcgi

      It only asks for a file which must be present in the victim system(preferable .php file), BTW we have default one.

  • Redis: If redis port is open then we can overwrite the file in the system which is too dangerous.
    So here is two things you can get:
    a. Reverse Shell
    b. PHP Shell
gopherus --exploit redis
  • Zabbix: If port 10050 is open and EnableRemoteCommands = 1 then you can run shell commands on the victim system.
gopherus --exploit zabbix
  • Memcached: It is used for mainly storing serialized data, but when it comes to De-serialize these data then known vulnerability such as PHP De-serialization issue, Python-Pickle De-serialization issue, Ruby-Marshal De-serialization issue comes into picture which can lead to RCE.
    So for each of them I created different scripts and also one script for dumping Memcached content:
gopherus --exploit pymemcache
gopherus --exploit rbmemcache
gopherus --exploit phpmemcache
gopherus --exploit dmpmemcache
  • SMTP: If port 25 is open and we can access it then, we can send message to anyone as victim user, So this tool will generate gopher payload for sending mail.
gopherus --exploit smtp

Screenshots

image image image image image

Author

Tarunkant Gupta (SpyD3r)

Reference

Related repositories
Mr-xn/Penetration_Testing_POC

渗透测试有关的POC、EXP、脚本、提权、小工具等---About penetration-testing python-script poc getshell csrf xss cms php-getshell domainmod-xss csrf-webshell cobub-razor cve rce sql sql-poc poc-exp bypass oa-getshell cve-cms

HTMLApache License 2.0penetration-testingpoc
mrxn.net
7.4k2k
reddelexc/hackerone-reports

Top disclosed reports from HackerOne

PythonPyPIwriteupshackerone
6.4k1.1k
k8gege/K8tools

K8工具合集(内网渗透/提权工具/远程溢出/漏洞利用/扫描工具/密码破解/免杀工具/Exploit/APT/0day/Shellcode/Payload/priviledge/BypassUAC/OverFlow/WebShell/PenTest) Web GetShell Exploit(Struts2/Zimbra/Weblogic/Tomcat/Apache/Jboss/DotNetNuke/zabbix)

PowerShellMIT Licenseexploit0day
k8gege.org
6.2k2.1k
LandGrey/SpringBootVulExploit

SpringBoot 相关漏洞学习资料,利用方法和技巧合集,黑盒安全评估 check list

JavaMavenspringbootspringboot-actuator-rce
6.1k1.3k
zhzyker/vulmap

Vulmap 是一款 web 漏洞扫描和验证工具, 可对 webapps 进行漏洞扫描, 并且具备漏洞验证功能

PythonPyPIGNU General Public License v3.0exploitcve
github.com/zhzyker/vulmap
3.5k572
JoyChou93/java-sec-code

Java web common vulnerabilities and security code which is base on springboot and spring security

JavaMavenjavacode
2.7k769
tr0uble-mAker/POC-bomber

利用大量高威胁poc/exp快速获取目标权限,用于渗透和红队快速打点

PythonPyPIGNU General Public License v3.0pocvulnerability-scanner
2.4k387
gquere/pwn_jenkins

Notes about attacking Jenkins servers

PythonPyPIjenkinspentest
2.1k326
insightglacier/Dictionary-Of-Pentesting

Dictionary collection project such as Pentesing, Fuzzing, Bruteforce and BugBounty. 渗透测试、SRC漏洞挖掘、爆破、Fuzzing等字典收集项目。

Shellpentestingfuzzing
2.1k373
JKornev/hidden

🇺🇦 Windows driver with usermode interface which can hide processes, file-system and registry objects, protect processes and etc

Cwindowssecurity
2k503
p0dalirius/Awesome-RCE-techniques

Awesome list of step by step techniques to achieve Remote Code Execution on various apps!

Dockerfilerceframework
podalirius.net
1.9k217
brightio/penelope

Penelope Shell Handler

PythonPyPIGNU General Public License v3.0ptytty
1.9k219