Skip to content

Instantly share code, notes, and snippets.

@Saleh7
Created November 17, 2016 07:49
Show Gist options
  • Save Saleh7/282ac5891b1d53f1c0d56f31ae5b129b to your computer and use it in GitHub Desktop.
Save Saleh7/282ac5891b1d53f1c0d56f31ae5b129b to your computer and use it in GitHub Desktop.
Fake voting pollcode.com :( requests using Python over Tor
import time, os, requests
num = input( "\x1b[1;31;50m How many poll:\x1b[0m" )
if(int(num)):
def pollcode():
Proxy = {
'http' : "socks5://127.0.0.1:9050",
'https' :"socks5://127.0.0.1:9050"
}
Post = {'answer': '3'} # change answer
url = 'http://poll.pollcode.com/45138481' # change url poll
res = requests.post(url, proxies=Proxy, data=Post, timeout=100, verify=False)
ip = requests.get('http://icanhazip.com',proxies=Proxy)
print('\x1b[6;30;42m' + 'Success!' + '\x1b[0m ' + ip.text)
os.system("killall -HUP tor")
time.sleep(0.3)
for i in range(0, num):
pollcode()
@laroi
Copy link

laroi commented Aug 10, 2018

@safeerk007 post the full code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment