Skip to content

This is a lightweight Command and Control (C2) tool built with Rust, featuring a minimal set of core functionalities

Notifications You must be signed in to change notification settings

3lvin-Kc/RustC2-main

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ Disclaimer: This project is intended strictly for educational and research purposes only. Unauthorized use may violate local laws and regulations. Use responsibly.

🛠️ 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)


Commands available when a client is connected:

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!

About

This is a lightweight Command and Control (C2) tool built with Rust, featuring a minimal set of core functionalities

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages