
Tool for extracting information from newly spawned processes
I Wrote This In College
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.

make
./3snake -h
./3snake
Run in current terminal
./3snake
Daemonize and dump output to file
./3snake -d -o "/tmp/output_file.txt"
Located in config.h
passwd password changesLinux, ptrace enabled, /proc filesystem mounted
| Features | X |
|---|---|
| OpenSSH server password auth | X |
| sudo | X |
| su | X |
| regex strings from processes | ~ |
| ssh client | X |
MIT and Wrote This When In College