-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathjoin.py
53 lines (38 loc) · 1.65 KB
/
join.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
import requests
import time
import random
def getHeaders(authorization) :
one = randstr(43)
two = randstr(32)
return {
'Accept': '*/*',
'Accept-Encoding': 'gzip, deflate, br',
'Accept-Language': 'en-US',
'Cookie': f'__cfuid={randstr(43)}; __dcfduid={randstr(32)}; locale=en-US',
'DNT': '1',
'origin': 'https://discord.com',
'TE': 'Trailers',
'X-Super-Properties': 'eyJvcyI6IldpbmRvd3MiLCJicm93c2VyIjoiRGlzY29yZCBDbGllbnQiLCJyZWxlYXNlX2NoYW5uZWwiOiJzdGFibGUiLCJjbGllbnRfdmVyc2lvbiI6IjEuMC45MDAxIiwib3NfdmVyc2lvbiI6IjEwLjAuMTkwNDIiLCJvc19hcmNoIjoieDY0Iiwic3lzdGVtX2xvY2FsZSI6ImVuLVVTIiwiY2xpZW50X2J1aWxkX251bWJlciI6ODMwNDAsImNsaWVudF9ldmVudF9zb3VyY2UiOm51bGx9',
'authorization': authorization,
'user-agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0'
}
def randstr(lenn) :
alpha = "abcdefghijklmnopqrstuvwxyz0123456789"
text = ''
for i in range(0,lenn):
text += alpha[random.randint(0,len(alpha)-1)]
return text
link = input('Discord Invite Link: ')
apilink = "https://discordapp.com/api/v6/invite/" + str(link)
with open('tokens.txt','r') as handle:
tokens = handle.readlines()
for tokenn in tokens:
token = tokenn.rstrip()
headers = getHeaders(token)
r = requests.post(apilink, headers=headers)
if r.status_code == "403" or r.status_code == 403:
print(token + " - Is locked!")
else:
print(r.status_code)
time.sleep(0.185)
print ("joined!")