"The only secure system is the one that's powered off."
AutoPWN Environment (APE) is a lightweight Linux-based security testing workspace designed to operate entirely in RAM. It provides a temporary environment for running tools, performing assessments, and automatically cleaning up artifacts when the session ends.
curl -sSL https://raw.githubusercontent.com/Lutfifakee-Project/autopwn-env/main/ape.sh | bashecho "alias ape='source <(curl -sSL https://raw.githubusercontent.com/Lutfifakee-Project/autopwn-env/main/ape.sh)'" >> ~/.bashrc
source ~/.bashrc
ape| Feature | Description |
|---|---|
| ๐ RAM-Only Workspace | Everything runs inside /dev/shm/ with no persistent storage |
| ๐งน Auto Cleanup | Session artifacts are automatically removed on exit |
| ๐ก๏ธ Security Software Detection | Detects common endpoint monitoring and security products |
| ๐ฆ Binary Downloader | Download commonly used utilities on demand |
| ๐ LinPEAS Integration | Convenience wrapper for privilege escalation auditing |
| ๐ pspy Integration | Real-time process monitoring |
| ๐ PTY Auto-Upgrade | Automatically upgrades basic shells to interactive TTYs |
| ๐จ Custom Prompt | Dragon-themed shell prompt |
| ๐ฎ๐ฉ Made in Indonesia | Developed by an Indonesian security enthusiast |
| Command | Description |
|---|---|
linpeas |
Run LinPEAS (auto-download) |
pspy |
Run pspy process monitor (auto-download) |
getbin <name> |
Download supported binaries |
fastscan <target> |
Quick port scan (requires Nmap) |
webscan <target> |
Basic web service enumeration |
nclisten <port> |
Start a Netcat listener |
bypass403 <url> |
Test alternative HTTP header combinations |
help / xhelp |
Display help menu |
exit |
Clean up and terminate session |
./ape.shgetbin nmap
getbin ffuffastscan 192.168.1.1
webscan example.comlinpeaspspynclisten 4444exitAPE can identify the presence of several commonly deployed security solutions:
- CrowdStrike Falcon
- Splunk Forwarder
- SentinelOne
- Carbon Black
- Trend Micro
- McAfee
- Symantec
- Sophos
All operations occur within a temporary RAM-based directory:
/dev/shm/.ape_<username>_<PID>
- โ No files written to persistent storage
- โ Automatic cleanup on exit
- โ No Bash history retention
- โ Temporary files removed automatically
- โ Reduced forensic footprint
- Bash 4.0+
- Linux Operating System
- Kali Linux
- Ubuntu
- Debian
- CentOS
- WSL2
curl- Internet connection (for downloading utilities)
./ape.sh
getbin nmap
fastscan 192.168.1.0/24
exit./ape.sh
getbin ffuf
ffuf -w wordlist.txt -u https://target.com/FUZZ
bypass403 https://target.com/admin
exit./ape.sh
nclisten 4444./ape.sh
linpeas
exit| Binary | Command | Purpose |
|---|---|---|
| Nmap | getbin nmap |
Network scanner |
| FFUF | getbin ffuf |
Web content discovery |
| SQLMap | getbin sqlmap |
SQL injection testing |
| Netcat | getbin nc |
Network utility |
| Socat | getbin socat |
Advanced networking |
| Chisel | getbin chisel |
Tunneling and port forwarding |
Upon exiting, APE automatically performs cleanup actions:
- โ Deletes workspace directory
- โ Removes downloaded binaries
- โ Clears shell history
- โ Unsets sensitive environment variables
- โ Removes temporary files