Hacking Tools

REC2 : Rusty External Command And Control Tool

REC2, short for Rusty External Command and Control, is a sophisticated Command and Control (C2) framework developed in the Rust programming language.

Designed for advanced operational use, REC2 enables remote management of implants (clients) across macOS, Linux, and Windows platforms.

This tool leverages external APIs like VirusTotal and Mastodon to transmit encrypted communications, ensuring stealth and anonymity during operations.

Key Features

  1. Cross-Platform Support: REC2 supports Windows, Linux, and macOS systems, making it highly versatile.
  2. Encrypted Communication: It uses AES encryption for secure data exchange between the server and implants.
  3. External API Integration: By utilizing APIs like VirusTotal or Mastodon as intermediaries, REC2 minimizes traceability, adding a layer of anonymization.
  4. Stealth Operations: Implants monitor pending jobs, decrypt tasks, execute them on the target system, and securely transmit results back via external APIs.
  5. Modular Design: The tool can be compiled using Makefile or Dockerfile for various environments.

To use REC2 effectively:

  • Modify implant configuration files (main.rs) with appropriate API tokens and URLs from VirusTotal or Mastodon.
  • Compile implants using commands such as make virustotal_windows or make mastodon_linux.
  • Build the server binary with make c2server_release and execute commands to manage implants remotely.

For example:

bash./server_release VirusTotal --url <URL> --token <TOKEN> --key <AES_KEY>

This command initiates communication with implants via VirusTotal.

REC2 offers flexible compilation methods:

  • Using Makefile: Supports various architectures (e.g., x64, ARM) across Windows, Linux, and macOS.
  • Using Dockerfile: Ensures all dependencies are met for seamless builds within containerized environments.

REC2 continues to evolve with planned features like asynchronous job status checks, enhanced session management commands, and potential integration with additional social networks like SoundCloud.

REC2 is strictly for educational purposes. Unauthorized use of this tool is illegal. Users are responsible for complying with all applicable laws.

For more information and access to the repository, visit GitHub under the username D1rkMtr.

Varshini

Varshini is a Cyber Security expert in Threat Analysis, Vulnerability Assessment, and Research. Passionate about staying ahead of emerging Threats and Technologies.

Recent Posts

SeamlessPass: Using Kerberos Tickets to Access Microsoft 365

SeamlessPass is a specialized tool designed to leverage on-premises Active Directory Kerberos tickets to obtain…

19 hours ago

PPLBlade: Advanced Memory Dumping and Obfuscation Tool

PPLBlade is a powerful Protected Process Dumper designed to capture memory from target processes, hide…

22 hours ago

HikPwn : Simple Scanner For Hikvision Devices With Basic Vulnerability Scanning

HikPwn: Comprehensive Guide to Scanning Hikvision Devices for Vulnerabilities If you’re searching for an efficient…

2 days ago

Comments in Bash Scripts

What Are Bash Comments? Comments in Bash scripts, are notes in your code that the…

7 days ago

Shebang (#!) in Bash Script

When you write a Bash script in Linux, you want it to run correctly every…

1 week ago

Bash String Concatenation – Bash Scripting

Introduction If you’re new to Bash scripting, one of the first skills you’ll need is…

1 week ago