How omerkkemal/phontomgate works
PhantomGate is a cross-platform agent that the README describes as polling a SpecterPanel C2 for instructions, dispatching work, and returning results. The sampled code shows both a Kivy app that starts the agent in a background thread and a loop that handles remote instructions. Major capabilities such as command execution, code injection, botnet simulation, and system information are documented, but much of their implementation is omitted from the excerpts; those branches are therefore shown at a high level. The README calls the GUI Flet, while the sampled main.py uses Kivy.
Main entry points: PhantomGate.py Instruction loop · main.py Kivy app · setting.py Agent settings
Components 15
Entry and UI
- Kivy app
main.py - Headless entry
PhantomGate.py
Agent Runtime
- Instruction loop
PhantomGate.py - Encrypted API
PhantomGate.py - Target registration
PhantomGate.py - Command dispatch
PhantomGate.py
Agent Capabilities
- Remote shell
PhantomGate.py - Code injection
PhantomGate.py - Botnet simulation
PhantomGate.py - System information
PhantomGate.py
Configuration and State
- Agent settings
setting.py - Target database
PhantomGate.py - People UI database
main.py
Other components
- Operator
- SpecterPanel C2
Connections 16
- Operator → Kivy app: starts
README.md - Operator → Headless entry: starts
README.md - Kivy app → Instruction loop: starts thread
main.py - Kivy app → Target database: initializes records
main.py - Kivy app → People UI database: reads and writes
main.py - Headless entry → Instruction loop: runs
PhantomGate.py - Instruction loop → Target database: reads target state
PhantomGate.py - Instruction loop → Target registration: registers target
README.md - Instruction loop → Encrypted API: polls instructions
README.md - Encrypted API → SpecterPanel C2: exchanges encrypted data
README.md - Instruction loop → Command dispatch: dispatches instructions
README.md - Command dispatch → Remote shell: runs commands
README.md - Command dispatch → Code injection: handles payloads
README.md - Command dispatch → Botnet simulation: handles tasks
README.md - Command dispatch → System information: collects information
README.md - Encrypted API → Agent settings: uses configuration
PhantomGate.py