Get information about all agents calling back to this Adaptix teamserver.
Copy AGENT [ id ] ax . agents () ;
Copy // AGENT STRUCT
string agent [ " id " ]
string agent [ " type " ]
string agent [ " listener " ]
string agent [ " external_ip " ]
string agent [ " internal_ip " ]
string agent [ " domain " ]
string agent [ " computer " ]
string agent [ " username " ]
string agent [ " impersonated " ]
string agent [ " process " ]
string agent [ " arch " ]
int agent [ " pid " ]
int agent [ " tid " ]
int agent [ " gmt " ]
int agent [ " acp " ]
int agent [ " oemcp " ]
bool agent [ " elevated " ]
string agent [ " tags " ]
bool agent [ " async " ]
int agent [ " sleep " ]
string agent [ " os_full " ] chevron-right Examplehashtag Returns a list of credentials.
chevron-right Examplehashtag Returns a list of downloads.
chevron-right Examplehashtag Returns a list of screenshots.
chevron-right Examplehashtag Returns a list of targets.
chevron-right Examplehashtag Returns a list of tunnels.
chevron-right Examplehashtag
The following is a list of AxScript's functions:
See here
Get information from a agent session's metadata.
chevron-right Examplehashtag Hide agents from Sessions Table.
Remove agents from server.
agent_set_color
Set color for agent's item in Session Table
background - item background color in hex RGB
foreground - item text color in hex RGB
reser - if true, reset the color to default
chevron-right Examplehashtag
agent_set_impersonate
Set impersonate for agent's item in Session Table
impersonate - impersonated user
elevated - is impersonated user elevated
chevron-right Examplehashtag
Set mark for agent's item in Session Table
mark - agent's mark ("Terminated", "Inactive", "Disconnect", empty "" for active).
chevron-right Examplehashtag
Set tag for agent's item in Session Table
chevron-right Examplehashtag
agent_update_data
Update/set agent data
json_property - CRED property (see here )
chevron-right Examplehashtag
Returns the architecture of agent session (e.g., x86 or x64)
chevron-right Examplehashtag Pack arguments in a way that's suitable for BOF APIs to unpack. To transmit binary data to the server, the function will encode it in base64.
types - a set of comma separated string types for BOF's arguments
args - array of BOF's arguments
Type
Description
Unpack With (C)
zero-terminated+encoded string
zero-terminated wide-char string
(wchar_t *)BeaconDataExtract
chevron-right Examplehashtag copy_to_clipboard
Copy text to client's clipboard.
chevron-right Examplehashtag
console_message
Print an output message and text to the agent console.
type - message type ("info", "success", or "error")
chevron-right Examplehashtag convert_to_code
Convert base64 binary data to code format.
languaage - programming language ("c", "csharp", "python", "golang", "vbs", "nim", "rust", "powershell")
base64data - base64 data for converting
varName - var's name in code
chevron-right Examplehashtag See here
credentials_add
Save the specified credentials in Credentials Manager
username - creds username
realm - creds domain/realm
type - creds type (possible "password", "hash", "rc4", "aes128", "aes256", "token")
storage - creds container (possible "browser", "dpapi", "database", "sam", "lsass", "ntds", "manual")
host - the host where the credentials were stored
chevron-right Examplehashtag
credentials_add_list
Save a list of creds in the Credentials Manager
chevron-right Examplehashtag
See here
create_commands_group
See here
Return decoded base64 data from algorithm ("hex", "base64", "base32", "zip" or "xor") in base64.
algorithm - "hex", "base64", "base32", "zip" or "xor".
base64data - data in base64
key - encrypt key (for xor)
chevron-right Examplehashtag Return decoded base64 data from algorithm ("hex", "base64", "base32", "zip" or "xor") in base64.
algorithm - "hex", "base64", "base32", "zip" or "xor".
filepath - file with data in base64
key - encrypt key (for xor)
chevron-right Examplehashtag
Return encoded data ("hex", "base64", "base32", "zip" or "xor") in base64.
algorithm - "hex", "base64", "base32", "zip" or "xor".
key - encrypt key (for xor)
chevron-right Examplehashtag Return encoded data ("hex", "base64", "base32", "zip" or "xor") in base64.
algorithm - "hex", "base64", "base32", "zip" or "xor".
filepath - file with data in base64
key - encrypt key (for xor)
chevron-right Examplehashtag
See here
execute_browser
See here
execute_command
See here
Returns the filename
chevron-right Examplehashtag Returns the base directory name
chevron-right Examplehashtag Checks if a file exists
chevron-right Examplehashtag Checks if a file exists
chevron-right Examplehashtag Reads a file and returns base64 encoded contents
chevron-right Examplehashtag Return the file size
chevron-right Examplehashtag file_write_text
Writes text data to a file and returns true if the write is successful.
chevron-right Examplehashtag
file_write_binary
Writes base64 data to a file and returns true if the write is successful.
chevron-right Examplehashtag
Convert UNIX Epoch Time to date/time string value.
format - datetime format (e.g. "dd/MM/yyyy hh:mm:ss")
unixtime - UNIX Epoch Time value
chevron-right Examplehashtag Converts bytes into a convenient format
chevron-right Examplehashtag Returns a list of available commands for the agent.
chevron-right Examplehashtag Returns the name of the current project.
Returns a hash string in hex format.
algorithm - hash "sha1" or "md5";
length - length of the returned string
chevron-right Examplehashtag Returns a list of network interfaces of the teamserver
chevron-right Examplehashtag Returns a list of agent ids
chevron-right Examplehashtag Check if a session is on an x64 system or not
chevron-right Examplehashtag Returns true if the agent is active
id - agent ID
chevron-right Examplehashtag Check if a session has admin rights
chevron-right Examplehashtag log / log_error
Print text to AxScript Console.
chevron-right Examplehashtag open_agent_console
Open the console to interact with a agent
open_access_tunnel
Open the tunnel creation dialog window
socks4 - is agent support socks4
socks5 - is agent support socks5
lportfwd - is agent support local port forwarding
rportfwd - is agent support reverse port forwarding
chevron-right Examplehashtag open_browser_files
Open the File Browser for a agent
open_browser_process
Open the Process Browser for a agent
open_remote_terminal
Open the Interactive Terminal for a agent
open_remote_shell
Open the I/O remote shell for a agent
Show a confirm dialog.
caption - title of the dialog
chevron-right Examplehashtag prompt_open_file
Show a file open dialog.
caption - title of the dialog
filter - filter for selecting files
chevron-right Examplehashtag prompt_open_dir
Show a directory open dialog.
caption - title of the dialog
chevron-right Examplehashtag prompt_save_file
Show a file save dialog.
filename - default filename
caption - title of the dialog
filter - filter for selecting files
chevron-right Examplehashtag Generates a random string of length len from a set of characters set.
set - set of characters (alphanumeric, alphabetic, numeric or hex)
chevron-right Examplehashtag Generates a random int value.
chevron-right Examplehashtag register_commands_group
See here
Import AxScript script into current script's env.
path - path to script file
Load a new script to AxScript Manager
path - path to script file
Unload a script from the AxScript Manager
path - path to script file
Returns the directory where the script is located.
Shows a message to the user in a dialog box. Use this function to relay information.
title - title of the dialog
chevron-right Examplehashtag Save the specified target in Targets Manager
os - OS type (possible "windows", "linux", "macos")
osDesc - detailed information about OS
alive - true if the host is alive
chevron-right Examplehashtag
targets_add_list
Save a list of targets in the Targets Manager
chevron-right Examplehashtag
UNIX Epoch Time value
validate_command
Checks the validity of the entered command and returns full information
chevron-right Examplehashtag