BANSHEE
What it is — BANSHEE automates the search for Linux privilege escalation vectors. It runs directly on the target machine once initial access is gained: it walks through the most common vectors (sudo, SUID, capabilities, cron, kernel, containers...) and finishes with a severity-ranked summary showing the exact exploit for each finding. The second piece of my toolkit, meant to run right after REAPER.
| Type | CLI · Python 3.10+ |
| License | MIT |
| Platform | Linux (runs on the target) |
| Use | Authorised environments only (HTB, THM, VulnHub, your own labs) |
| Repo | github.com/DonTrebor1/BANSHEE |
How to use it
Upload the script to the target machine and run every phase automatically:
python3 banshee.py --auto
Preview the phase plan without running anything:
python3 banshee.py --plan
Resume a previous session:
python3 banshee.py --resume banshee_output/banshee_state.json
Phases
| # | Phase | What it detects |
|---|---|---|
| 1 | System | User, kernel, OS, env vars with credentials, users with a shell |
| 2 | sudo | NOPASSWD + 30+ GTFOBins binaries + LD_PRELOAD |
| 3 | SUID/SGID | 25+ known dangerous SUID binaries |
| 4 | Capabilities | cap_setuid, cap_sys_admin, cap_dac_read_search, etc. |
| 5 | Cron | Writable cron scripts + pspy-style detection |
| 6 | Files | /etc/passwd+shadow, SSH keys, configs with passwords, backups |
| 7 | Kernel | Dirty Pipe, Dirty COW, PwnKit, overlayfs + linux-exploit-suggester |
| 8 | Services | Local ports (MySQL, Redis, MongoDB, Elasticsearch...) |
| 9 | Containers | docker/lxd/disk groups + container environment detection |
| 10 | Summary | Every vector ranked by severity [CRITICAL → LOW] |
The design goal is simple: instead of running 5 different scripts (linpeas, linenum, a manual GTFOBins check...) and cross-referencing the output by hand, BANSHEE does that cross-referencing automatically and prioritises by severity, not by execution order.
Output
banshee_output/
├── banshee_state.json # Full state
├── sysinfo.txt # System information
├── sudo.txt # sudo permissions
├── suid.txt # SUID/SGID binaries
├── capabilities.txt # Linux capabilities
├── cron.txt # Cron jobs
├── files.txt # Sensitive files
├── kernel.txt # Kernel analysis
├── services.txt # Services and processes
└── containers.txt # Docker/LXD/groups
Flow with the rest of the toolkit
REAPER -> external recon (ports, subdomains, technologies)
|
Initial access gained
|
BANSHEE -> Linux privesc (sudo, SUID, cron, kernel, containers...)
|
If the system is Windows AD:
|
LAZARUS -> full AD attack chain
⚠️ Legal notice: exclusively for controlled, authorised practice environments. Using it against systems without explicit authorisation is illegal.