This is a basic c2 / agent I built when I wanted to dig deeper into how c2 servers work. So far, only the base is finished but I'll keep adding new capabilities to the agents while trying to implement some obfuscation techniques.
Blog post: https://0xrick.github.io/misc/c2/
Just install the requirements:
pip3 install -r requirements.txt
Then start the server:
python3 c2.py