AxSelector type
A selector is a client dialog for choosing Adaptix data. On the teamserver every form.create_selector_* call returns a stub and does not open a window.
SelectorFile
The selector_file element contains a file path input field and a button to invoke a file selection dialog. If the selector_file is placed in a container, the file contents will be base64 encoded when generating the JSON.
element create_selector_file() - Constructs a selector_file element with a path field and a button that opens a file dialog. Choosing a file reads it and stores the bytes as base64. Inside a container, toJson writes that base64 string.
SelectorAgents
The selector_agents is a dialog window with the Sessions table and a search field. The columns that the table should have can be specified when creating selector_agents.

dialog create_selector_agents(string[] headers) - Creates a selector_agents dialog. headers is an array of column keys. Omit it to use id, type, computer, username, process, pid, os, tags. Other columns: listener, external_ip, internal_ip, domain, tid.
Methods:
SelectorCredentials
The selector_credentials is a dialog window with the Credentials Manager table and a search field. The columns that the table should have can be specified when creating selector_credentials.

dialog create_selector_credentials(string[] headers) - Creates a selector_credentials dialog. headers is an array of column keys. Omit it to use username, password, realm, type, tag, storage, host. date and agent_id are also valid columns. exec always returns id as well.
Methods:
SelectorListeners
dialog create_selector_listeners(string[] headers) opens the listeners table. Omit headers to use name, type, protocol, bind_host, bind_port, status. Other columns: agent_addr, date.
setSize(int w, int h), close(), and exec() behave like the agent selector. exec returns an array, or an empty array if the dialog is dismissed.
SelectorTargets
dialog create_selector_targets(string[] headers) opens the targets table. Omit headers to use computer, domain, address, os, tag, alive. Other columns: id, os_desc, info, date.
The linked-agent list from ax.targets() is not included.
SelectorDownloads
dialog create_selector_downloads(string[] headers) opens the downloads table. Omit headers to use filename, agent_name, computer, total_size, state. Other columns: id, agent_id, user, recv_size, date.
SelectorPayloadStore
dialog create_selector_payload_store(string[] headers) opens the payload store. Omit headers to use name, type, artifact, size, creator, created. Other columns: id, description, arch, listeners, filename, md5, sha1, sha256, tag, uid, hidden.
Each of these dialogs has setSize(int w, int h), close(), and exec(). exec returns the selected rows, or an empty array.
Last updated


