-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathspamm.py
68 lines (52 loc) · 1.1 KB
/
spamm.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
import Mentifxxr
from threading import Thread
pin = input("Input Pin\n> ")
y = Mentifxxr.getInfo(pin)
Mentifxxr.printInfo(y)
t = Mentifxxr.getActiveQuestionType(y)
q = Mentifxxr.getActiveQuestionid(y)
word = input("select word:\n> ")
i = int(input("times\n> "))
ids = []
idtred = []
def newid():
global ids
ids.append(Mentifxxr.getNewID())
for x in range(i):
t1 = Thread(target=newid)
idtred.append(t1)
for x in range(i):
idtred[x].start()
x += 1
print(" Charging up:", x, "/", i, end="\r")
print()
for x in range(i):
idtred[x].join()
x += 1
print(" Finishing:", x, "/", i, end="\r")
# print(len(idtred), ids)
x = 0
def send(q, t, z, y, word):
Mentifxxr.awnser(q, t, z, y, word)
tred = []
for z in ids:
x += 1
t2 = Thread(
target=send,
args=(
q,
t,
z,
y,
word,
),
)
tred.append(t2)
print(" Packaging:", x, "/", i, end="\r")
print()
x = 0
input("\rPress enter to send")
for x in range(i):
tred[x].start()
x += 1
print(" Sending:", x, "/", i, end="\r")