Skip to content

Instantly share code, notes, and snippets.

View mIcHyAmRaNe's full-sized avatar
🎮
League of Legends gamer 🎮

Michy Amrane mIcHyAmRaNe

🎮
League of Legends gamer 🎮
View GitHub Profile
@mIcHyAmRaNe
mIcHyAmRaNe / tor2.py
Created September 12, 2017 21:50
Python3: tor ask_yes_no
#!/usr/bin/env python3
#simple script showing how to let Python ask you if you want to use or not tor ^^
import requests
proxies = {
'http': 'socks5://127.0.0.1:9050', #make sure configuring the right port (9150 if using tor browser)
'https': 'socks5://127.0.0.1:9050'
}
def ask_yes_no(prompt):
@mIcHyAmRaNe
mIcHyAmRaNe / tor.py
Last active September 12, 2017 16:00
Python 3: tor usage request
#!/usr/bin/env python3
#simple script showing how to let Python ask you if you want to use or not tor ^^
import requests
from colorama import Fore, Back, Style
#NameError: name 'proxies' & 'tor' is not defined
tor=""
proxies=""