How nathanlopez/stitch works
Stitch is a cross-platform remote administration framework. The operator starts the host console, establishes or accepts a target session, selects a platform-specific shell, and issues remote commands whose results return through the session. A separate branch generates platform-specific payloads and installer packages. The README documents broad host-management, file-transfer, monitoring, and system-information capabilities; the graph groups these rather than enumerating every command. Some subsystem links reflect README descriptions because their implementation was not sampled.
Main entry points: payload_code.py Remote Command Execution · stitch_cmd.py Connection Handling · stitch_gen.py Payload Generator · main.py Program Entry
Components 18
Host Console
- Program Entry
main.py - Command Console
Application/stitch_cmd.py
Remote Session
- Connection Handling
Application/stitch_cmd.py - Encrypted Transport
Application/stitch_lib.py - Windows Shell
Application/stitch_winshell.py - Linux Shell
Application/stitch_lnxshell.py - macOS Shell
Application/stitch_osxshell.py
Payload Creation
- Payload Generator
Application/stitch_gen.py - Payload Templates
Application/Stitch_Vars/payload_code.py - Installer Definitions
Application/Stitch_Vars - Installer Packaging
Application/Stitch_Vars/nsis.py
Target Capabilities
- Remote Command Execution
Application/Stitch_Vars/payload_code.py - File Operations
PyLib/download.py - System Information
PyLib/sysinfo.py - Monitoring Features
PyLib/kl_start.py - Platform Support
Configuration/mss
Other components
- Operator
- Target Host
Connections 20
- Operator → Program Entry: starts
- Program Entry → Command Console: runs
- Operator → Command Console: enters commands
- Command Console → Connection Handling: connects or listens
- Target Host → Connection Handling: opens session
- Connection Handling → Encrypted Transport: exchanges data
- Connection Handling → Windows Shell: dispatches by OS
- Connection Handling → Linux Shell: dispatches by OS
- Connection Handling → macOS Shell: dispatches by OS
- Windows Shell → Remote Command Execution: issues commands
- Linux Shell → Remote Command Execution: issues commands
- macOS Shell → Remote Command Execution: issues commands
- Remote Command Execution → File Operations: invokes
- Remote Command Execution → System Information: invokes
- Remote Command Execution → Monitoring Features: invokes
- Remote Command Execution → Platform Support: uses platform features
- Operator → Payload Generator: requests payload
- Payload Generator → Payload Templates: uses templates
- Payload Generator → Installer Packaging: creates packages
- Installer Packaging → Installer Definitions: uses definitions