Created
July 16, 2022 17:49
-
-
Save xtekky/c758f5dfdcde62379ede3339afb04220 to your computer and use it in GitHub Desktop.
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 httpx, threading, time, random | |
config = { | |
"tokens": open("./tokens.txt", "r+").read().splitlines(), | |
"threads": 50, | |
"invite": "", | |
} | |
class Joiner: | |
def __init__(self, invite) -> None: | |
self.proxies = open("./proxies.txt", "r+").read().splitlines() | |
self.invite = invite | |
def join(self, token, invite): | |
r = httpx.post( | |
f"https://discord.com/api/v9/invites/{invite}", | |
proxies="http://" + random.choice(self.proxies), | |
headers={ | |
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0", | |
"Accept": "*/*", | |
"Accept-Language": "fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3", | |
"Accept-Encoding": "gzip, deflate, br", | |
"Content-Type": "application/json", | |
"X-Context-Properties": "eyJsb2NhdGlvbiI6IkpvaW4gR3VpbGQiLCJsb2NhdGlvbl9ndWlsZF9pZCI6Ijk4OTkxOTY0NTY4MTE4ODk1NCIsImxvY2F0aW9uX2NoYW5uZWxfaWQiOiI5OTAzMTc0ODgxNzg4NjgyMjQiLCJsb2NhdGlvbl9jaGFubmVsX3R5cGUiOjB9", | |
"Authorization": token, | |
"X-Super-Properties": "eyJvcyI6IldpbmRvd3MiLCJicm93c2VyIjoiRmlyZWZveCIsImRldmljZSI6IiIsInN5c3RlbV9sb2NhbGUiOiJmciIsImJyb3dzZXJfdXNlcl9hZ2VudCI6Ik1vemlsbGEvNS4wIChXaW5kb3dzIE5UIDEwLjA7IFdpbjY0OyB4NjQ7IHJ2OjEwMi4wKSBHZWNrby8yMDEwMDEwMSBGaXJlZm94LzEwMi4wIiwiYnJvd3Nlcl92ZXJzaW9uIjoiMTAyLjAiLCJvc192ZXJzaW9uIjoiMTAiLCJyZWZlcnJlciI6IiIsInJlZmVycmluZ19kb21haW4iOiIiLCJyZWZlcnJlcl9jdXJyZW50IjoiIiwicmVmZXJyaW5nX2RvbWFpbl9jdXJyZW50IjoiIiwicmVsZWFzZV9jaGFubmVsIjoic3RhYmxlIiwiY2xpZW50X2J1aWxkX251bWJlciI6MTM2MjQwLCJjbGllbnRfZXZlbnRfc291cmNlIjpudWxsfQ==", | |
"X-Discord-Locale": "en-US", | |
"X-Debug-Options": "bugReporterEnabled", | |
"Origin": "https://discord.com", | |
"DNT": "1", | |
"Connection": "keep-alive", | |
"Referer": "https://discord.com", | |
"Cookie": "__dcfduid=21183630021f11edb7e89582009dfd5e; __sdcfduid=21183631021f11edb7e89582009dfd5ee4936758ec8c8a248427f80a1732a58e4e71502891b76ca0584dc6fafa653638; locale=en-US", | |
"Sec-Fetch-Dest": "empty", | |
"Sec-Fetch-Mode": "cors", | |
"Sec-Fetch-Site": "same-origin", | |
"TE": "trailers", | |
}, | |
json={}, | |
) | |
print(r) | |
if __name__ == "__main__": | |
for token in config["tokens"]: | |
while threading.active_count() >= config["threads"]: | |
time.sleep(1) | |
threading.Thread(target=Joiner(config["invite"]).join, args=[token]).start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment