Created
November 17, 2016 07:49
-
-
Save Saleh7/282ac5891b1d53f1c0d56f31ae5b129b to your computer and use it in GitHub Desktop.
Fake voting pollcode.com :( requests using Python over Tor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@safeerk007 post the full code