Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
3snake — Tool for extracting information from newly spawned processes | Kitploit
Tools/GitHubGitHub/blendin/3snake
Privilege EscalationMemory ForensicsPassword AttacksPersistence MechanismsData ExfiltrationPost-ExploitationRed Teaming
GitHubblendin/3snake

3snake

Tool for extracting information from newly spawned processes

View Repository
789113231 year agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

3snake - dump sshd and sudo credential related strings

Disclaimer

I Wrote This In College

About

Targeting rooted servers, reads memory from sshd and sudo system calls that handle password based authentication. Doesn't write any memory to the traced processes. Spawns a new process for every sshd and sudo command that is run.

Listens for the proc event using netlink sockets to get candidate processes to trace. When it receives an sshd or sudo process ptrace is attached and traces read and write system calls, extracting strings related to password based authentication.

Don't really like the solution of backdooring openssh or installing a kernel module on target servers so I made this.

3snake

Build

make
./3snake -h
./3snake

Usage

Run in current terminal ./3snake

Daemonize and dump output to file ./3snake -d -o "/tmp/output_file.txt"

Configuration

Located in config.h

  • ROOT_DIR - root directory when daemonized (relative file paths for -o option will end up here)
  • ENABLE_SSH - OpenSSH server password auth
  • ENABLE_SUDO - sudo password auth
  • ENABLE_SU (experimental) - su password auth
  • ENABLE_SSH_CLIENT (experimental) - ssh client password auth
  • ENABLE_PASSWD - passwd password changes

Limitations

Linux, ptrace enabled, /proc filesystem mounted

Todo

FeaturesX
OpenSSH server password authX
sudoX
suX
regex strings from processes~
ssh clientX
  • Make the process of adding tracers more fluid
  • Yubikey: Ask for second yubikey from end users, OpenSSH
  • Output mode that only shows usernames/passwords

Licenses

MIT and Wrote This When In College

Download Tool