CatalogGTFOBins

GTFO · Tool

sg

2 techniquesLinuxGTFOBinsGPL-3.0

shell

ExecutionPrivilege EscalationLinux

Commands can be run if the current user's group is specified, therefore no additional permissions are needed.

sg root
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
sudo
Native
shell
MITRE
T1059

shell

ExecutionLinux

Commands can be run if the current user's group is specified, therefore no additional permissions are needed.

sg $(id -ng)
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
unprivileged
Native
shell
MITRE
T1059