-
-
Notifications
You must be signed in to change notification settings - Fork 1
Command Line Arguments
MatrixTM26 edited this page Jun 19, 2026
·
3 revisions
Full reference for all CLI flags supported by the TOMCAT-C2 server JAR.
java -jar target/tomcat-c2-2.0.0-jar-with-dependencies.jar [OPTIONS]| Option | Description |
|---|---|
-S, --host <addr> |
C2 server bind address (default: 0.0.0.0) |
-p, --port <port> |
Web panel port (default: 5000) |
-T, --mtls |
Enable Mutual TLS authentication |
-M, --meterpreter |
Enable multi-protocol mode |
-C, --cli-mode |
Start in CLI interface mode |
-G, --gui-mode |
Start in JavaFX GUI mode |
--init-certs |
Initialize CA and server certificates |
-a, --gen-agent <id> |
Generate a single agent certificate |
-m, --gen-multi-agent |
Generate multiple agent certificates |
-l, --list-agents |
List all generated agents |
Start the Web Panel with mTLS enforced, on a custom port:
java -jar target/tomcat-c2-2.0.0-jar-with-dependencies.jar -p 8443 -TStart in CLI mode with multi-protocol session support:
java -jar target/tomcat-c2-2.0.0-jar-with-dependencies.jar -C -MGenerate 10 agent certificates for a team engagement:
java -jar target/tomcat-c2-2.0.0-jar-with-dependencies.jar -m -c 10 -u redteam -ah 10.10.10.5 -ap 443 -amBind to a specific interface and list existing agents:
java -jar target/tomcat-c2-2.0.0-jar-with-dependencies.jar -S 10.10.10.5 -l