███▄ █ █ ██ ██▓ ██▓ ██████ ▓█████ ▄████▄
██ ▀█ █ ██ ▓██▒▓██▒ ▓██▒ ▒██ ▒ ▓█ ▀ ▒██▀ ▀█
▓██ ▀█ ██▒▓██ ▒██░▒██░ ▒██░ ░ ▓██▄ ▒███ ▒▓█ ▄
▓██▒ ▐▌██▒▓▓█ ░██░▒██░ ▒██░ ▒ ██▒▒▓█ ▄ ▒▓▓▄ ▄██▒
▒██░ ▓██░▒▒█████▓ ░██████▒░██████▒▒██████▒▒░▒████▒▒ ▓███▀ ░
░ ▒░ ▒ ▒ ░▒▓▒ ▒ ▒ ░ ▒░▓ ░░ ▒░▓ ░▒ ▒▓▒ ▒ ░░░ ▒░ ░░ ░▒ ▒ ░
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█░░░░░░░░░░░░░░░░░░ P R O C S P Y ░░░░░░░░░░░░░░░░░░░░░░░░█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
bad-antics
Minimal footprint process monitor and analyzer written in Forth. The concatenative nature of Forth allows for an extremely small binary that can be easily embedded or deployed in constrained environments.
- Process Enumeration - List all running processes
- Memory Mapping - View process memory regions
- File Descriptor Tracking - Monitor open files and sockets
- Environment Extraction - Dump process environment variables
- Thread Analysis - Examine process threads
- Injector Support - Process injection helpers
- Minimal Footprint - Entire tool under 10KB
- gforth (GNU Forth) >= 0.7.3
- Linux (uses /proc filesystem)
- Root for full functionality
# Run directly
gforth procspy.fs
# Create standalone executable
gforth -e "include procspy.fs" -e "bye"\ Start interactive mode
gforth procspy.fs
\ List processes
list-procs
\ Analyze specific PID
1337 proc-info
\ Memory map
1337 proc-maps
\ File descriptors
1337 proc-fds
\ Environment
1337 proc-env
\ Find process by name
s" nginx" find-proc
\ Monitor process
1337 watch-proc| Command | Stack | Description |
|---|---|---|
list-procs |
( -- ) | List all processes |
proc-info |
( pid -- ) | Show process information |
proc-maps |
( pid -- ) | Show memory mappings |
proc-fds |
( pid -- ) | Show file descriptors |
proc-env |
( pid -- ) | Show environment |
find-proc |
( c-addr u -- ) | Find process by name |
watch-proc |
( pid -- ) | Continuous monitoring |
proc-inject |
( pid -- ) | Prepare injection |
┌────────────────────────────────────────────┐
│ ProcSpy Core │
├─────────────┬─────────────┬────────────────┤
│ /proc │ syscalls │ ptrace │
│ reader │ wrapper │ interface │
├─────────────┴─────────────┴────────────────┤
│ Stack-Based Engine │
└────────────────────────────────────────────┘
NullSec Proprietary - For authorized security research only