This project provides Python Examples for interacting with the Cobalt Strike REST API. The examples are built on top of the Code generated by the OpenAPI Generator.
Note
This tool is still in early development stage and subject to breaking changes.
- The Cobalt Strike API Server should be running.
- Cobalt Strike should be installed and configured.
- Cobalt Strike should be properly licensed
curl -L https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.17.0/openapi-generator-cli-7.17.0.jar -o openapi-generator-cli.jarcurl -k -o api-docs.json https://172.22.192.130:50443/v3/api-docsjava -jar openapi-generator-cli.jar generate -i .\api-docs.json -g python -o .\CS_python_SDK --skip-validate-specpython -m venv cs_env
cs_env\Scripts\activate
pip install ./CS_python_SDK
pip install -r requirements.txtCheck this Jupyter Notebook for the actual examples.
For issues and questions:
- Review Cobalt Strike documentation for API requirements
Warning
This tool provides direct access to Cobalt Strike capabilities, which include powerful adversary simulation capabilities. Use responsibly and only in environments where you have explicit permission to perform security testing.
