Skip to content

feat: add AdaptixCLI - CLI tool for server interaction#343

Open
wxfbot03-lang wants to merge 1 commit into
Adaptix-Framework:dev-v1.3from
wxfbot03-lang:feat/cli-tool
Open

feat: add AdaptixCLI - CLI tool for server interaction#343
wxfbot03-lang wants to merge 1 commit into
Adaptix-Framework:dev-v1.3from
wxfbot03-lang:feat/cli-tool

Conversation

@wxfbot03-lang

Copy link
Copy Markdown

Summary

Adds a Go-based CLI tool (AdaptixCLI/) for interacting with the AdaptixC2 server.

Features

  • agent list — show all agents, with --online filter and --json output
  • agent info <id> — detailed agent information
  • agent exec <id> <command> — single command execution with real-time output
  • agent terminal <id> — raw-mode remote shell (fully interactive, Ctrl+C/D/Z passthrough)
  • listener list/start/stop — listener management
  • download list/get — file download management

Design

  • Standalone Go module (not in go.workspace), uses stdlib + gorilla/websocket + goccy/go-yaml + golang.org/x/term
  • Config stored in ~/.adaptix/adaptix-cil.yaml
  • Build via make cli or make install-cli
  • Connects via REST + WebSocket (JWT auth -> OTP -> sync protocol)
  • Terminal mode uses secondary WebSocket channel for real-time I/O

- agent list/info/remove/exec subcommands
- agent terminal: raw-mode remote shell with full signal passthrough
- listener list/start/stop, download list/get
- config file stored in ~/.adaptix/adaptix-cil.yaml
- make cli / make install-cli build targets
@CleverNamesTaken

Copy link
Copy Markdown

I started playing with this a bit because I really want a CLI.

I noticed a few things:

  1. CLI is often misspelled as CIL
  2. The cli is non-interactive. A REPL-like shell would be really awesome.

@RalfHacker is not likely going to action this PR per #329, but I'd be happy to collaborate with you to fix this up a bit whenever v2.0 comes out.

@RalfHacker RalfHacker added the enhancement New feature or request label Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants