# Hades-C2 | Hades Basic Command And Control Server

**URL:** <https://onehack.st/t/hades-c2-hades-basic-command-and-control-server/264914>\
**Category:** Tools & Scripts\
**Tags:** tools, hacking\
**Created:** [November 19, 2023, 8:36pm UTC](https://onehack.st/t/hades-c2-hades-basic-command-and-control-server/264914 "2023-11-19T20:36:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WhiteHat](https://onehack.st/user_avatar/onehack.st/whitehat/32/162514_2.png) [@WhiteHat](https://onehack.st/u/WhiteHat)\
**Post date:** [November 19, 2023, 8:36pm UTC](https://onehack.st/t/hades-c2-hades-basic-command-and-control-server/264914/1 "2023-11-19T20:36:11Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/8/0/8049ec6a307b46ceaab8f240292e319c6d7f1e24.png)

### Hades Command & Control

Hades is a basic Command & Control server built using Python. It is currently extremely bare bones, but I plan to add more features soon. Features are a work in progress currently.

⚠ Expect bugs ⚠

[![Downloads](https://camo.githubusercontent.com/2fc40d9753a159545a9ff39339d53c0b510472ea6900781ce62b62d3d6f2d845/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f4c6176656e6465722d6578652f48616465732d43322f746f74616c)](https://camo.githubusercontent.com/2fc40d9753a159545a9ff39339d53c0b510472ea6900781ce62b62d3d6f2d845/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f4c6176656e6465722d6578652f48616465732d43322f746f74616c) [![Contributors](https://camo.githubusercontent.com/6e20d9a76bf6b393b07cbbc2eb4bc68b516f1a563252285a1d6561238e39b44f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f4c6176656e6465722d6578652f48616465732d43323f636f6c6f723d6461726b2d677265656e)](https://camo.githubusercontent.com/6e20d9a76bf6b393b07cbbc2eb4bc68b516f1a563252285a1d6561238e39b44f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f4c6176656e6465722d6578652f48616465732d43323f636f6c6f723d6461726b2d677265656e) [![Stargazers](https://camo.githubusercontent.com/7edeee66383f9af40ba2e450f2af10fba3c23b2b304d56a7d8330e510dd3cecc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f4c6176656e6465722d6578652f48616465732d43323f7374796c653d736f6369616c)](https://camo.githubusercontent.com/7edeee66383f9af40ba2e450f2af10fba3c23b2b304d56a7d8330e510dd3cecc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f4c6176656e6465722d6578652f48616465732d43323f7374796c653d736f6369616c) [![Issues](https://camo.githubusercontent.com/a6b3bcf95f847a0ed39e30dd5799bfa4d29001cf0119eb336313f411177af591/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f4c6176656e6465722d6578652f48616465732d4332)](https://camo.githubusercontent.com/a6b3bcf95f847a0ed39e30dd5799bfa4d29001cf0119eb336313f411177af591/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f4c6176656e6465722d6578652f48616465732d4332) [![License](https://camo.githubusercontent.com/137cad7054c3347a099734b5cad570e3db864b15c4915fe7c659076e011cb439/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4c6176656e6465722d6578652f48616465732d4332)](https://camo.githubusercontent.com/137cad7054c3347a099734b5cad570e3db864b15c4915fe7c659076e011cb439/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4c6176656e6465722d6578652f48616465732d4332)

## Table Of Contents

- [About the Project](https://github.com/Lavender-exe/Hades-C2#about-the-project)
- [Getting Started](https://github.com/Lavender-exe/Hades-C2#getting-started)
  - [Prerequisites](https://github.com/Lavender-exe/Hades-C2#prerequisites)
  - [Installation](https://github.com/Lavender-exe/Hades-C2#installation)

- [Roadmap](https://github.com/Lavender-exe/Hades-C2#roadmap)
- [Contributing](https://github.com/Lavender-exe/Hades-C2#contributing)
- [License](https://github.com/Lavender-exe/Hades-C2#license)
- [Authors](https://github.com/Lavender-exe/Hades-C2#authors)
- [Acknowledgements](https://github.com/Lavender-exe/Hades-C2#acknowledgements)

## About The Project

[![Screen Shot](https://camo.githubusercontent.com/2fe33ebd02530ebd86cb622992aed9005667053a0c346ba574d4faac06fa4601/68747470733a2f2f6d656469612e646973636f72646170702e6e65742f6174746163686d656e74732f3530343630393139333036303436363639342f313039393034313135323330363532383236362f696d6167652e706e673f77696474683d373438266865696768743d363231)](https://camo.githubusercontent.com/2fe33ebd02530ebd86cb622992aed9005667053a0c346ba574d4faac06fa4601/68747470733a2f2f6d656469612e646973636f72646170702e6e65742f6174746163686d656e74732f3530343630393139333036303436363639342f313039393034313135323330363532383236362f696d6167652e706e673f77696474683d373438266865696768743d363231)

This is a project made (mostly) for me to learn Malware Development, Sockets, and C2 infrastructure setups. Currently, the server can be used for CTFs but it is still a buggy mess with a lot of things that need ironed out.

I am working on a Web UI using Flask currently so new features are being put on hold until then, if you face any issues then please be sure to create an issues request.

### Features

- Windows Implant
  - Python Implant
  - Executable Implant
  - Powershell Cradle

- Linux Implant
- Basic Command & Control functionality
  - CMD Commands
  - BASH Commands

- Basic Persistence
  - Linux Cronjob
  - Windows Registry Autorun

## Getting Started

### Help

Listener Commands --------------------------------------------------------------------------------------- listeners -g --generate → Generate Listener Session Commands --------------------------------------------------------------------------------------- sessions -l --list → List Sessions sessions -i --interact → Interact with Session sessions -k --kill → Kill Active Session Payload Commands --------------------------------------------------------------------------------------- winplant.py → Windows Python Implant exeplant.py → Windows Executable Implant linplant.py → Linux Implant pshell\_shell → Powershell Implant Client Commands --------------------------------------------------------------------------------------- persist / pt → Persist Payload (After Interacting with Session) background / bg → Background Session exit → Kill Client Connection Misc Commands --------------------------------------------------------------------------------------- help / h → Show Help Menu clear / cls → Clear Screen

### Prerequisites

- Python3 Pip
- Colorama

### Installation

git clone [https://github.com/lavender-exe/Hades-C2.git](https://github.com/lavender-exe/Hades-C2.git) cd Hades-C2 # Windows python install.py # Linux python3 install.py python3 hades-c2.py

#### Server:

1. Run the server using `python hades-c2.py`
2. Run `listeners -g / --generate` to generate a listener
3. Select the IP and Port for the listener

#### Implant:

1. Create an implant using `winplant.py`, `linplant.py` or `exeplant.py`
2. Run the implant on the target machine

## Roadmap

See the [open issues](https://github.com/Lavender-exe/Hades-C2/issues) for a list of proposed features (and known issues).

## Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.

- If you have suggestions for adding or removing projects, feel free to [open an issue](https://github.com/Lavender-exe/Hades-C2/issues/new) to discuss it, or directly create a pull request after you edit the _README.md_ file with necessary changes.
- Please make sure you check your spelling and grammar.
- Create individual PR for each suggestion.
- Please also read through the [Code Of Conduct](https://github.com/Lavender-exe/Hades-C2/blob/main/CODE_OF_CONDUCT.md) before posting your first idea as well.

### Creating A Pull Request

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

## Future Plans

- Better Implant Functions
- Add more persistence methods
- Add more command functionality
- Use Nim/C++ to create cross-platform malware
- Add more Quality of Life features
- Flask Web Interface

## License

Distributed under the MIT License. See [LICENSE](https://github.com/Lavender-exe/Hades-C2/blob/main/LICENSE.md) for more information.

## Authors

- **Lavender** - _Nerd_ - [Lavender](https://github.com/Lavender-exe/) - _Created Project_

## Acknowledgements

- [Joe Helle](https://twitter.com/joehelle?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Eauthor)

## GitHub:

[https://github.com/Lavender-exe/Hades-C2](https://github.com/Lavender-exe/Hades-C2)
