1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-01-23 08:31:34 +01:00
GTFOBins.github.io/_data/contexts.yml
Andrea Cardaci c8c5aed0ba Add a remark for sudo about environment variables
This avoids further duplication for sudo examples.
2026-01-01 22:00:12 +01:00

24 lines
1.2 KiB
YAML

unprivileged:
label: Unprivileged
description: This function can be performed by any unprivileged user.
sudo:
label: Sudo
description: This function is performed by the privileged user if executed via `sudo` because the acquired privileges are not dropped.
extra:
environment: If there are environment variables involved, they must be passed via `sudo VAR=value ...` or exported then `sudo -E ...`.
suid:
label: SUID
description: This function is performed by the privileged user if the executable has the SUID bit set and the right ownership because the *effective* privileges are not dropped.
extra:
shell:
true: This executable runs commands using the system shell, e.g., via functions like `system`, so it only works for distributions where the shell does not drop SUID privileges.
false: This executable runs commands directly, e.g., via functions like `exec`, remember to omit the `-p` argument of every `/bin/sh` invocation for distributions where the default shell does not drop SUID privileges.
capabilities:
label: Capabilities
description: This function is performed bypassing the usual kernel permission checks if the executable has certain capabilities set.
extra:
list: 'The following capabilities are needed:'