CatalogGTFOBins

GTFO · Tool

cmp

3 techniquesLinuxGTFOBinsGPL-3.0

file-read

File ReadPrivilege EscalationLinux

Dump the bytes of the input file that are different from the NUL byte in a tabular format.

cmp /path/to/input-file /dev/zero -b -l
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
sudo
Native
file-read
MITRE
T1005

file-read

File ReadPrivilege EscalationLinux

Dump the bytes of the input file that are different from the NUL byte in a tabular format.

cmp /path/to/input-file /dev/zero -b -l
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
suid
Native
file-read
MITRE
T1005

file-read

File ReadLinux

Dump the bytes of the input file that are different from the NUL byte in a tabular format.

cmp /path/to/input-file /dev/zero -b -l
Evidence
Upstream reference
Environment
Local host
Compatibility
Linux reference. macOS compatibility has not been checked for this command and execution context.
Context
unprivileged
Native
file-read
MITRE
T1005