Skip to content

Instantly share code, notes, and snippets.

@c3d
Created October 20, 2022 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save c3d/cb09a0dc46d456d01cdbc227602efaea to your computer and use it in GitHub Desktop.
Save c3d/cb09a0dc46d456d01cdbc227602efaea to your computer and use it in GitHub Desktop.
agent-tls-ctl example
${agent-tls-ctl} -l trace connect --no-auto-values --bundle-dir "${bundle_dir}" --server-address ”ipaddr://${guest_ip}:${agent_port}" -c "ExecProcess json://{\"container_id\": \"${container_id}\", \"exec_id\": \"${exec_id}\", \"process\":{ \"Terminal\": true, \"User\": { }, \"Args\": [ \"sh\", \"-c\", \"echo test\" ] , \"Env\": [ \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\" , \"HOSTNAME=some-host\" , \"TERM=xterm\" ] , \"Cwd\": \"/\" }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment