π Web Upload with HTTPS π
Securely upload files from a compromised Linux machine using a tool called uploadserver
β a Python module that comes with a built-in file upload page! ππ
π Step 1: Install uploadserver
uploadserver
Weβll use Pythonβs pip tool to install uploadserver
locally on our box (Pwnbox in this case):
π¦ You should see something like:
β Boom! It's installed!
π Step 2: Create a Self-Signed Certificate π§Ύπ
We need a certificate for HTTPS. Here's how to create a quick self-signed one:
π‘ This generates a certificate and key, both saved in server.pem
.
ποΈ Step 3: Create a Folder for Your Web Server
Letβs keep things tidy by making a directory to serve the files from:
π Step 4: Launch the Web Server with HTTPS
Now, run uploadserver
using your certificate on port 443 (HTTPS):
π You should see:
π€ Step 5: Upload Files from the Target Machine π»β‘οΈπ
From the compromised Linux machine, letβs upload two sensitive files:
β οΈ Why --insecure
?
Because weβre using a self-signed cert that isn't trusted by default. But itβs okay here β we trust it π.
Last updated