Skip to content

Commit

Permalink
Script update 0.3
Browse files Browse the repository at this point in the history
Added friend invite script
  • Loading branch information
mov-ebx committed Dec 11, 2022
1 parent b8b6e51 commit 40e9703
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2
0.3
3 changes: 2 additions & 1 deletion data/scripts.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"audit-bomb.py":"0.1",
"account-nuke.py":"0.2"
"account-nuke.py":"0.2",
"friend-invite.py":"0.3"
}
2 changes: 1 addition & 1 deletion src/launcher/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def download_scripts():
try:
command = command.split(' ')[1]
script = scripts[len(scripts)-i+int(command)]
print(f'\nSelected {script}\n')
print(f'\nSelected {script}')
params = {"token":token}
iparams = __import__('scripts.'+script[:-3], fromlist=[None]).params
for param in iparams:
Expand Down
18 changes: 18 additions & 0 deletions src/scripts/friend-invite.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

import requests

desc = "Generates a Discord.GG invite but for friend requests."
params = {
"token" : "your Discord authentication token",
}

def run(token):
headers = { "accept" : "*/*", "accept-encoding" : "gzip, deflate", "accept-language" : "en-US", "authorization" : token, "dnt" : "1", "referer" : "https://discord.com/channels/@me", "sec-ch-ua-mobile" : "?0", "sec-ch-ua-platform" : "\"Windows\"", "sec-fetch-dest" : "empty", "sec-fetch-mode" : "cors", "sec-fetch-site" : "same-origin", "user-agent" : "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36", "x-debug-options" : "bugReporterEnabled", "x-discord-locale" : "en-US" }
invite = requests.post("https://discord.com/api/v9/users/@me/invites", headers=headers, json={}).json()
print(f"Friend invite generated!\nLink: https://discord.gg/{invite['code']}\nThis invite has a maximum of 5 uses.")

if __name__ == "__main__":
config = {}
for param in params:
config[param] = input("Enter "+params[param]+": ")
run(**config)

0 comments on commit 40e9703

Please sign in to comment.