Skip to content

Instantly share code, notes, and snippets.

View PinoCookie's full-sized avatar

Pino PinoCookie

  • The Netherlands
View GitHub Profile
@PinoCookie
PinoCookie / TorPython.py
Created May 3, 2019 15:36
Code snippet on how to use tor with python
import requests
session = requests.session()
# Tor controller runs on localhost:9050
session.proxies = {
"http":"socks5h://localhost:9050",
"https":"socks5h://localhost:9050"
}
@PinoCookie
PinoCookie / anonupload.py
Last active May 3, 2019 10:53
Easy anonupload script for lazy people
#!/usr/bin/env python3
import requests
import json
import sys
file = {'file': open(sys.argv[0], 'rb')}
r = requests.post("https://anonfile.com/api/upload", files=file)
content = r.content.decode("utf-8")
json_file = json.loads(content)