{"id":16271102,"url":"https://github.com/morpheuslord/c2c-server","last_synced_at":"2025-04-08T15:28:45.085Z","repository":{"id":218561294,"uuid":"746755996","full_name":"morpheuslord/C2C-Server","owner":"morpheuslord","description":"This is a C2C server example nothing super complecated.","archived":false,"fork":false,"pushed_at":"2024-01-22T16:07:26.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T11:52:30.229Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/morpheuslord.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-22T16:03:07.000Z","updated_at":"2024-02-24T22:07:27.000Z","dependencies_parsed_at":"2024-01-22T20:36:49.530Z","dependency_job_id":null,"html_url":"https://github.com/morpheuslord/C2C-Server","commit_stats":null,"previous_names":["morpheuslord/c2c-server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpheuslord%2FC2C-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpheuslord%2FC2C-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpheuslord%2FC2C-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpheuslord%2FC2C-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morpheuslord","download_url":"https://codeload.github.com/morpheuslord/C2C-Server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247870360,"owners_count":21009834,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T18:12:28.314Z","updated_at":"2025-04-08T15:28:45.063Z","avatar_url":"https://github.com/morpheuslord.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Command and Control (C2C) Server\r\n\r\nThis 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.\r\n\r\n## Features\r\n\r\n- **Payload Generation:** Create payloads for Windows, Linux, macOS, or raw formats using Metasploit.\r\n- **HTTP Server:** Host the generated payloads using a simple HTTP server.\r\n- **Metasploit Integration:** Automatically generate Metasploit resource files (RC files) for handling incoming connections.\r\n\r\n## Requirements\r\n\r\n- Python 3.x\r\n- Metasploit Framework\r\n- Rich Library (`rich`): Install using `pip install rich`\r\n\r\n## Usage\r\n\r\n1. Clone the repository:\r\n\r\n   ```bash\r\n   git clone https://github.com/your-username/your-repository.git\r\n   cd your-repository\r\n   ```\r\n\r\n2. Install the required Python packages:\r\n\r\n   ```bash\r\n   pip install -r requirements.txt\r\n   ```\r\n\r\n3. Run the C2C server:\r\n\r\n   ```bash\r\n   python main.py\r\n   ```\r\n\r\n4. Follow the on-screen prompts to configure the C2C server, select target OS, set listener port, generate payloads, and more.\r\n\r\n## Options\r\n\r\nThe script provides the following options in an interactive menu:\r\n\r\n- **Target OS:** Choose the target operating system (Windows, Linux, macOS, Raw).\r\n- **Listener Port:** Set the listener port for Metasploit.\r\n- **Payload Options:** Generate payloads for different operating systems.\r\n- **Generate RC File:** Create a Metasploit resource file for handling connections.\r\n- **Show Presets:** Display current configuration settings.\r\n- **Start C2C Server:** Launch the Metasploit console with the generated RC file.\r\n- **Quit:** Exit the script.\r\n\r\n## Example\r\n\r\n```bash\r\npython main.py\r\n```\r\n\r\nFollow the on-screen instructions to configure the C2C server and generate payloads.\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License - see the [LICENSE](https://github.com/morpheuslord/C2C-Server/blob/main/LICENSE) file for details.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorpheuslord%2Fc2c-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorpheuslord%2Fc2c-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorpheuslord%2Fc2c-server/lists"}