Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Index ¶ func GetIntegrityLevel() (integrity int, err error) func GetUser() (username, group string, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetIntegrityLevel ¶ func GetIntegrityLevel() (integrity int, err error) GetIntegrityLevel determines if the agent is running in an elevated context such as root Returns 4 for root and 3 for members of the sudo group func GetUser ¶ added in v1.6.0 func GetUser() (username, group string, err error) GetUser enumerates the username and their primary group for the account running the agent process It is OK if this function returns empty strings because we want the agent to run regardless Types ¶ This section is empty. Source Files ¶ View all Source files os.go Directories ¶ Show internal Expand all Path Synopsis windows api/advapi32 api/kernel32 api/ntdll api/user32 pkg/evasion pkg/pipes pkg/processes pkg/tokens Click to show internal directories. Click to hide internal directories.