How m4sc3r4n0/spyrat works
SpyRat is a two-part remote-access tool: an operator runs a listener, which accepts client connections and offers an interactive command session; the client reconnects and handles commands over that socket. The client also attempts Windows startup persistence and supports shell commands, file transfer, deletion, directory changes, and screenshots. The graph reflects behavior visible in the supplied source; some listener-side command branches appear incomplete or inconsistent, so uncertain links are omitted.
Main entry points: listener.py Listener · client.py Command Dispatch
Components 10
Operator Console
- Listener
listener.py
Client Agent
- Client Agent
client.py - Startup Persistence
client.py - Command Dispatch
client.py
Client Capabilities
- Shell Commands
client.py - File Transfer
client.py - File Management
client.py - Screenshots
client.py
Other components
- Operator
- Windows Registry
Connections 13
- Operator → Listener: enters commands
listener.py - Listener → Client Agent: accepts connection
listener.py - Client Agent → Listener: connects by TCP
client.py - Listener → Command Dispatch: sends commands
listener.py - Command Dispatch → Shell Commands: runs commands
client.py - Command Dispatch → File Transfer: handles transfer
client.py - Command Dispatch → File Management: handles file actions
client.py - Command Dispatch → Screenshots: captures image
client.py - Client Agent → Startup Persistence: attempts setup
client.py - Startup Persistence → Windows Registry: writes startup entry
client.py - Shell Commands → Listener: returns output
client.py - File Transfer → Listener: sends requested files
client.py - Listener → File Transfer: sends upload data
listener.py