Starting

AdaptixServer

The necessary parameters for starting the AdaptixServer can be passed via command line parameters or via a configuration file.

The configuration file is specified in the -profile parameter and must contain a profile in JSON format.

{
  "Teamserver": {
    "port": 4321,
    "endpoint": "/endpoint",
    "password": "pass",
    "cert": "server.rsa.crt",
    "key": "server.rsa.key",
    "extenders": [
      "extenders/listener_beacon_http/config.json",
      "extenders/listener_beacon_smb/config.json",
      "extenders/listener_beacon_tcp/config.json",
      "extenders/agent_beacon/config.json",
      "extenders/listener_gopher_tcp/config.json",
      "extenders/agent_gopher/config.json"
    ],
    "access_token_live_hours": 12,
    "refresh_token_live_hours": 168
  },

  "ServerResponse": {
    "status": 404,
    "headers": {
      "Content-Type": "text/html; charset=UTF-8",
      "Server": "AdaptixC2",
      "Adaptix Version": "v0.6"
    },
    "page": "404page.html"
  },
  
  "EventCallback": {
    "Telegram": {
      "token": "",
      "chats_id": []
    },
    "new_agent_message": "New agent: %type% (%id%)\n\n%user% @ %computer% (%internalip%)\nelevated: %elevated%\nfrom: %externalip%\ndomain: %domain%"
  }
}

Teamserver:

  • port - port for client connection

  • endpoint - URN for connecting clients

  • password - authenticator for clients

  • cert and key - SSL Certificate and Key for web server

  • extender - array of strings-paths to go-plugins

  • access_token_live_hours & refresh_token_live_hours - The validity period of the JWT token that the client receives after authorization.

ServerResponse:

  • status - web server response code in case of an illegitimate request

  • headers - web server HTTP Headers

  • page - the path to the file whose contents will be returned in the web server's response

EventCallback settings are described in this section.

To run adaptixserver you need an SSL certificate. You can generate your own using the ssl_gen script.

openssl req -x509 -nodes -newkey rsa:2048 -keyout server.rsa.key -out server.rsa.crt -days 3650

After starting AdaptihServer, a data directory will be created next to the server executable file. The server database file and all other files will be created in the data directory.

./adaptixserver -profile profile.json

AdaptixClient

After the AdaptixClient is launched, a directory named .adaptix will be created in the user's home directory. The AdaptixClient database file will be saved in the .adaptix directory. In the authorization form, you must specify the profile data, user nickname (any nick), and the name of the local project.

After synchronizing data with the server, the main AdaptixClient window will be available.

Last updated