π PowerShell Web Uploads
Need to upload files from your target machine back to your own? Here's a simple way to do it using PowerShell and a lightweight Python upload server. π
Last updated
Need to upload files from your target machine back to your own? Here's a simple way to do it using PowerShell and a lightweight Python upload server. π
Last updated
PowerShell doesnβt include a built-in upload command β but with Invoke-WebRequest
or Invoke-RestMethod
and a custom web server, we can make uploads work!
Weβll use , an upgraded Python http.server
module that allows uploads through a simple web interface. π§
Install it:
Start the server:
π Uploads will now be accepted at: http://:8000/upload
Use PowerShell to fetch a script that lets us perform uploads via HTTP:
Now that the function is loaded, upload a file (like the hosts
file):
β Output: