SSH-Snake
GPL-3.0๐ฅ Offensive Ops ยท Shell
SSH-Snake is a self-propagating tool that automatically discovers SSH private keys on a compromised system, determines which hosts they connect to, and uses them to hop to the next system. It operates filelessly by passing itself through SSH sessions, leaving minimal forensic artifacts. SSH-Snake recursively maps the network of systems reachable via SSH trust relationships, building a graph of infrastructure connectivity. It discovers keys in common locations, agent forwarding sockets, bash history, known_hosts files, and SSH configs. Useful for demonstrating the blast radius of a single compromised host.
Installation
$ git clone https://github.com/MegaManSec/SSH-Snake.gitUse Cases
- Mapping SSH trust relationships across infrastructure
- Demonstrating lateral movement via SSH key reuse
- Assessing blast radius of a compromised Linux host
- Discovering unauthorized SSH key trust chains
Tags
Details
- Category
- ๐ฅ Offensive Ops
- Language
- Shell
- Repository
- MegaManSec/SSH-Snake
- License
- GPL-3.0
- Platforms
- ๐งlinux๐macos
Links
Community Reviews
Alternatives & Comparisons
Ligolo-ng
GoAdvanced tunneling/pivoting tool. Creates a TUN interface for transparent proxying through compromised hosts.
Compare SSH-Snake vs Ligolo-ngChisel
GoFast TCP/UDP tunnel over HTTP secured via SSH. Single binary, works behind firewalls and NAT.
Compare SSH-Snake vs ChiselMore in Offensive Ops
Mythic
GoCollaborative, multi-platform C2 framework. Docker-based with web UI, multiple agent types, and plugin architecture.
Havoc
C/C++Modern C2 framework. Qt-based GUI, BOF support, custom agents, and a Cobalt Strike-inspired workflow.
Rubeus
C#C# toolset for raw Kerberos interaction and abuse. AS-REP roasting, Kerberoasting, ticket manipulation, delegation attacks.
Certipy
PythonActive Directory Certificate Services (AD CS) abuse tool. Find and exploit certificate template misconfigurations.
Coercer
PythonAutomatically find and exploit Windows authentication coercion vulnerabilities. PetitPotam, PrinterBug, and more.
SharpHound
C#Official BloodHound data collector. Enumerates Active Directory objects, sessions, ACLs, and trusts for graph analysis.