https://github.com/morpheuslord/c2c-server
This is a C2C server example nothing super complecated.
https://github.com/morpheuslord/c2c-server
Last synced: about 1 year ago
JSON representation
This is a C2C server example nothing super complecated.
- Host: GitHub
- URL: https://github.com/morpheuslord/c2c-server
- Owner: morpheuslord
- License: mit
- Created: 2024-01-22T16:03:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-22T16:07:26.000Z (over 2 years ago)
- Last Synced: 2025-02-14T11:52:30.229Z (over 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Command and Control (C2C) Server
This Python script provides a basic command and control (C2C) server for managing payloads. It allows you to generate payloads for different operating systems, start an HTTP server, and interact with Metasploit.
## Features
- **Payload Generation:** Create payloads for Windows, Linux, macOS, or raw formats using Metasploit.
- **HTTP Server:** Host the generated payloads using a simple HTTP server.
- **Metasploit Integration:** Automatically generate Metasploit resource files (RC files) for handling incoming connections.
## Requirements
- Python 3.x
- Metasploit Framework
- Rich Library (`rich`): Install using `pip install rich`
## Usage
1. Clone the repository:
```bash
git clone https://github.com/your-username/your-repository.git
cd your-repository
```
2. Install the required Python packages:
```bash
pip install -r requirements.txt
```
3. Run the C2C server:
```bash
python main.py
```
4. Follow the on-screen prompts to configure the C2C server, select target OS, set listener port, generate payloads, and more.
## Options
The script provides the following options in an interactive menu:
- **Target OS:** Choose the target operating system (Windows, Linux, macOS, Raw).
- **Listener Port:** Set the listener port for Metasploit.
- **Payload Options:** Generate payloads for different operating systems.
- **Generate RC File:** Create a Metasploit resource file for handling connections.
- **Show Presets:** Display current configuration settings.
- **Start C2C Server:** Launch the Metasploit console with the generated RC file.
- **Quit:** Exit the script.
## Example
```bash
python main.py
```
Follow the on-screen instructions to configure the C2C server and generate payloads.
## License
This project is licensed under the MIT License - see the [LICENSE](https://github.com/morpheuslord/C2C-Server/blob/main/LICENSE) file for details.