Downloading File using Powershell in windows from linux http server


Linux Machine
In Linux machine first download or move ncat.exe file to location  /var/www/html/download

service apache2 start

danger@kali:/var/www/html/download$ python -m SimpleHTTPServer 80

Windows Machine

open cmd terminal--->copy paste following command

C:\Users\V2Geeks>powershell -c "(new-object System.Net.WebClient).DownloadFile('http://192.168.205.177/download/ncat.exe','d:/upload/ncat.exe')"

Result: ncat.exe from linux will downloaded to windows d:/ upload folder
Reactions: