not-sekiun/Consortium 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 GNU Affero General Public License v3.0 许可证,目前获得 333 个 Star、64 次 Fork。
仓库全名
not-sekiun/Consortium
README 摘要
Modern C2 framework built for extensibility Home · Getting Started · Server Usage · Client Usage Server API · Framework API · Framework Reference · Scripts Consortium is a programming language agnostic , and networking protocol agnostic command and control (C2) framework that is designed to be collaborative , highly extensible , and modular…
Consortium is a programming language agnostic, and
networking protocol agnostic command and control (C2) framework that is designed
to be collaborative, highly extensible, and modular. The framework
ships with its own listeners and agents while also allowing users to rapidly develop
their own highly customized listeners and agents.
[!CAUTION]
Consortium is actively being developed and is currently considered to be in the
alpha phase of development. As such it should be noted that:
Backwards incompatible/breaking changes may be made at any time.
The framework is currently not feature-complete.
Documentation may be lacking and incomplete in some areas.
Feel free to raise any problems, feature requests, or bug reports via the GitHub
issues section.
Features
Asynchronous multiplayer/multiserver support: Multiple clients can connect to the
same server to perform all C2 related operations, including the sharing of agent
sessions. Control RBAC permissions via user roles.
High extensibility and automation, externally and natively: Programmatic
automation is possible through the server’s REST API or websockets events API.
Alternatively, users can write plugins and event hooks that interact
directly
with the server’s internal services.
Language-agnostic modular listener-agent design: Consortium ships with its own
listeners and agents. Custom listeners and agents can be added to the framework.
Agents can be written in any language while listeners can be written in python to
natively interact with the server, or written in a different language to interact
with the server through its REST API.
Getting Started
Consortium can be installed manually on the host, or run in Docker. Pick one of the two
paths below. Both read their configuration from the same data/ directory.
The install scripts in scripts/ perform a manual install for you. They report which
prerequisites are present and which are missing, ask before installing the missing ones
with winget (Windows), apt (Debian based Linux), or Homebrew (macOS), and then
install Consortium’s dependencies.
git clone https://github.com/not-sekiun/Consortium.git
cd Consortium
Then run the script for your platform from the repository root.
Linux and macOS (as your normal user, not with sudo)
bash scripts/install.sh
Both take --check-only (-CheckOnly on Windows) to report without installing anything,
and --yes (-Yes) for an unattended run. Afterwards, start the server and client as
shown under Manual Installation.
Manual Installation
Consortium requires Python 3.14+ and uses the uv package manager to handle its
dependencies. Git is recommended for installing and updating the framework. Docker is
required by bundled agent generators that compile their payloads inside a container.
[!IMPORTANT]
Make sure your installed tools are visible on your system PATH, and that the Docker
engine is running before starting an agent generator that needs it.
[!NOTE]
Docker is only needed for agent generators that compile in a container. The server,
client, listeners, plugins, event hooks, and every other agent run without it.
Clone the repository and install dependencies.
git clone https://github.com/not-sekiun/Consortium.git
cd Consortium
uv sync --all-packages
The Consortium C2 framework runs on a client-server model. Start the server first
before starting any compatible client to connect to the server.
Start the Consortium server. By default, it binds to 0.0.0.0:9999.
uv run consortium.py server
Afterwards, start the Consortium client. By default, it connects to 127.0.0.1:9999
uv run consortium.py client
To update, pull the latest changes and install any new dependencies.
git pull
uv sync --all-packages
Docker Installation
Requires Docker (Docker Engine on
Linux, or Docker Desktop on Windows and macOS) and Git. Python and uv are not needed on
the host.
Clone the repository, then build the image and start the server. The API is published on
port 9999.
git clone https://github.com/not-sekiun/Consortium.git
cd Consortium
docker compose up -d --build
Once the server reports healthy under docker compose ps, connect with the client,
which runs from the same image.
docker compose run --rm client
[!NOTE]
docker compose up starts the server only. The client is declared under a Compose
profile because it needs an interactive terminal, which docker compose run provides.
The data/ directory is mounted from the host, so configuration, payloads, agents, and
logs are shared with a manual install and survive docker compose down. Listeners bind
their ports after the container has started, so publish the range you intend to use by
uncommenting the port range in docker-compose.yml.
To update, pull the latest changes and rebuild.
git pull
docker compose up -d --build
Documentation
Complete Framework Documentation and Self-Hosted Documentation
Warning 警告
The current documentation page is still heavily a WIP and is largely incomplete.
The Consortium server provides a WebSocket Events API for server-initiated push events.
Complete documentation is located at the
official Consortium documentation site
Alternatively, to host and view this documentation locally, refer back to
this section
Client Documentation
There are several ways to get help information and command documentation within the
client.
General help menu: To view all commands for a particular interpreter in the client
type help.
Command summary: To view the summary for a specific command, which includes all of
its arguments, type help <command>.
Command help: To get comprehensive help for a specific command, including any
built-in examples, type <command> --help or <command> -h.
Contributing
I am currently not accepting any code contributions to the Consortium framework, the
current code base is too unstable. However, I am accepting feature requests, bug
reports, and other issues through the GitHub issues section.
Credits
This project makes heavy use of the following libraries and frameworks.
评论