Skip to content

Command Line Arguments

MatrixTM26 edited this page Jun 19, 2026 · 3 revisions

Command Line Arguments

Full reference for all CLI flags supported by the TOMCAT-C2 server JAR.

Usage

java -jar target/tomcat-c2-2.0.0-jar-with-dependencies.jar [OPTIONS]

Full Flag Reference

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

Common Combinations

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 -T

Start in CLI mode with multi-protocol session support:

java -jar target/tomcat-c2-2.0.0-jar-with-dependencies.jar -C -M

Generate 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 -am

Bind 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

See Also

Clone this wiki locally