Skip to content

Instantly share code, notes, and snippets.

@pgp
Created February 10, 2022 10:15
Show Gist options
  • Save pgp/6536d47047d65f1427d54687f75ecb4f to your computer and use it in GitHub Desktop.
Save pgp/6536d47047d65f1427d54687f75ecb4f to your computer and use it in GitHub Desktop.
import requests
files = {'file': ('3.bin', open('/dev/shm/3.bin', 'rb'))}
r = requests.post("https://x0.at/", files=files)
download_link = r.text.strip()
print(download_link)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment