CatalogGTFOBins

GTFO · Tool

setcap

2 techniquesLinuxGTFOBinsGPL-3.0

privilege-escalation

Privilege EscalationLinux

This can be used to assign capabilities to executable files.

setcap cap_setuid+ep /path/to/command
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
sudo
Native
privilege-escalation
MITRE
T1548

privilege-escalation

Privilege EscalationLinux

This can be used to assign capabilities to executable files.

setcap cap_setuid+ep /path/to/command
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
suid
Native
privilege-escalation
MITRE
T1548