🛠️ Rust-Based C2 (Command and Control) This is a lightweight Command and Control (C2) tool built in Rust, designed with basic yet functional features for learning and experimentation.
📚 Available Commands (C2 Prompt)
= required [args] = optional
help Show this help menu shell Execute a local shell command revshell [ip] [port] Generate a reverse shell in a specific language Examples: bash, nc, curl, php, powershell, python
connection <raw|client> Switch between raw socket or client mode (Toggles with no args; defaults to client)
list List all active connections cmd Send a shell command to a connected host psh Send a PowerShell command to a host spawn Start an interactive shell session import-psh Import a PowerShell script to a host run-psh Run a function from an imported PowerShell script inject Execute an EXE or DLL in memory
upload Upload a file to the target machine download Download a file from the target machine portscan Perform a port scan on a remote host kill Terminate a beacon on the host exit Close all sessions and exit (Ctrl+D)
''''''''''''''''''''''''''''''''''''
Build Instructions To compile the C2 tool:
cargo build --release
The compiled binaries will be available in the target/release/ directory.
💬 Notes The tool is designed for ease of use and learning purposes.
Contributions and PRs are very welcome!