-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathPollscammer.py
74 lines (62 loc) · 2.74 KB
/
Pollscammer.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/usr/bin/env python3
import subprocess
import re
import os
import time
def prRed(skk): print("\033[91m {}\033[00m" .format(skk))
def prYellow(skk): print("\033[93m {}\033[00m" .format(skk))
def prGreen(prt): print("\033[92m {}\033[00m" .format(prt))
def intro():
prYellow(" _____ _ __ __ ___ _ ____ ______ ______ _____ __")
prYellow("|_ _|/ \ | \/ |_ _| | / ___|| _ \ \ / / __ ) / _ \ \ / /")
prYellow(" | | / _ \ | |\/| || || | \___ \| |_) \ V /| _ \| | | \ V / ")
prYellow(" | |/ ___ \| | | || || |___ ___) | __/ | | | |_) | |_| || | ")
prYellow(" |_/_/ \_\_| |_|___|_____|____/|_| |_| |____/ \___/ |_| ")
time.sleep(3)
intro()
os.system("clear")
def banner():
prRed(" ____ _ _")
prRed("| _ \ ___ | | |___ ___ __ _ _ __ ___ _ __ ___ ___ _ __ ")
prRed("| |_) / _ \| | / __|/ __/ _` | '_ ` _ \| '_ ` _ \ / _ \ '__|")
prRed("| __/ (_) | | \__ \ (_| (_| | | | | | | | | | | | __/ | ")
prRed("|_| \___/|_|_|___/\___\__,_|_| |_| |_|_| |_| |_|\___|_| ")
prRed(" BY TAMILSPYBOY")
print(" ")
print(" ")
def user_input_clear():
banner()
user_input = str(input("\n\nEnter the curl URL >> "))
subprocess.call("clear", shell=True)
banner()
count = int(input("\n\nNumber of vote to increase >> "))
subprocess.call("clear", shell=True)
return user_input, count
def code_statement(user_input_first, count):
i = 1
c = 1
b = 0
banner()
while i < count:
i = i + 1
subprocess.call("service tor start", shell=True)
subprocess.call("service tor reload", shell=True)
user_input = subprocess.check_output("torsocks " + user_input_first, shell=True, stderr=subprocess.DEVNULL)
checker = re.search(rb"\w\w\w\w\w\w\w\w\w\w\w\w\w\w\w\w\w\w\w\w\w\w\w\w", user_input)
checker_group = checker.group(0)
choice_id = checker_group.decode("utf-8")
status = '{"status"' + ":200," + '"data"' + ":{" + '"vote"' + ":true," + '"choiceIds"' + ":["'"' + choice_id + '"' + "]}}"
decode_user_input = user_input.decode("utf-8")
if decode_user_input == status:
prGreen("The Number of Vote increased >> " + str(c))
c = c + 1
elif decode_user_input != status:
b = b + 1
failed = "The Number of vote Failed >> " + str(b)
prRed(failed)
try:
user_input, count = user_input_clear()
code_statement(user_input, count)
except KeyboardInterrupt:
prYellow("\nThanks For Using.Subscribe to TAMIL SPYBOY")
subprocess.call("service tor stop", shell=True)