/api/exec/:token

Execute arbitrary command on a session without connecting to the session

Method

POST

Parameters

  • id — session id
  • command — <string> command to run
  • output — <bool> (optional) wait for command to finish and then return the output

Result

If output is not set, the method will return immediately giving no information on if the command was successful or not.

JSON object. if output is set

  • stdout — output from standard out
  • stderr — output from standard error