CatalogGTFOBins

GTFO · Tool

chown

2 techniquesLinuxGTFOBinsGPL-3.0

privilege-escalation

Privilege EscalationLinux

This can be run with elevated privileges to change ownership and then read, write, or execute a file.

chown $(id -un):$(id -gn) /path/to/input-file
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 run with elevated privileges to change ownership and then read, write, or execute a file.

chown $(id -un):$(id -gn) /path/to/input-file
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