obf yokmuş pyinstaller ile derlenmiş
from colorama import just_fix_windows_console, init, Fore, Back, Style
from time import sleep
import requests
import random
import fade
import os
import json
just_fix_windows_console()
init()
Banner = '\n ██████╗ █████╗ ████████╗\n ██╔══██╗██╔══██╗╚══██╔══╝\n ██║ ██║███████║ ██║ \n ██║ ██║██╔══██║ ██║ [Discord Ad Tool]\n ██████╔╝██║ ██║ ██║ [
Linkleri görebilmek için kayıt olmanız gerekmektedir
╚═════╝ ╚═╝ ╚═╝ ╚═╝ \n\n\n'
Modules = '\n [1] Bütün sohbetlere spam\n [2] Tek bir sunucu kanalına spam\n [3] Birden çok sunucu kanalına spam\n [4] İtemSatış\'a yönlendir\n\n'
def load_file(filename, error_message):
try:
with open(filename, 'r', encoding='utf-8') as f:
content = [line.strip() for line in f.readlines() if line.strip()]
if not content:
print(f'{Fore.RED}{error_message}{Style.RESET_ALL}')
exit()
return content
except FileNotFoundError:
print(f'{Fore.RED}{filename} dosyası bulunamadı!{Style.RESET_ALL}')
exit()
tokens = load_file('tokens.txt', 'tokens.txt dosyası boş!')
channel_ids = load_file('channels.txt', 'channels.txt dosyası boş!')
try:
with open('message.txt', 'r', encoding='utf-8') as f:
message_to_send = f.read().strip()
if not message_to_send:
print(f'{Fore.RED}message.txt dosyası boş!{Style.RESET_ALL}')
exit()
def mass_dm():
channel_ids_tokens = []
for token in tokens:
token_channels = {'Token': token}
headers = {'Authorization': token}
try:
response = requests.get('
Linkleri görebilmek için kayıt olmanız gerekmektedir
', headers=headers, timeout=10)
response.raise_for_status()
grabbed_channels = response.json()
grabbed_channel_ids = []
for channel in grabbed_channels:
try:
grabbed_channel_ids.append(channel['id'])
else: # inserted
token_channels['grabbed_channel_ids'] = grabbed_channel_ids
channel_ids_tokens.append(token_channels)
else: # inserted
for item in channel_ids_tokens:
headers = {'Authorization': item['Token']}
for channel_id in item['grabbed_channel_ids']:
try:
payload = {'content': message_to_send}
message_request = requests.post(f'
Linkleri görebilmek için kayıt olmanız gerekmektedir
{channel_id}/messages', headers=headers, json=payload, timeout=10)
if message_request.status_code == 200:
print(f'{Fore.CYAN}[✓] Mesaj {channel_id} idli kullanıcıya gönderildi!{Style.RESET_ALL}')
sleep(1)
except KeyError:
print(f'{Fore.YELLOW}Geçersiz kanal verisi atlandı{Style.RESET_ALL}')
continue
except requests.exceptions.RequestException as e:
print(f'{Fore.RED}Token hatası: {str(e)}{Style.RESET_ALL}')
continue
except json.JSONDecodeError:
print(f'{Fore.RED}Geçersiz JSON yanıtı alındı{Style.RESET_ALL}')
continue
except requests.exceptions.RequestException as e:
print(f'{Fore.RED}[X] Ağ hatası: {str(e)}{Style.RESET_ALL}')
def spam_single_channel():
os.system('cls' if os.name == 'nt' else 'clear')
pass
channel_id = input(fade.brazil(Banner) + '[Kanal IDsi]: ').strip()
if channel_id:
pass # postinserted
break
for token in tokens:
headers = {'Authorization': token}
payload = {'content': message_to_send}
try:
message_request = requests.post(f'
Linkleri görebilmek için kayıt olmanız gerekmektedir
{channel_id}/messages', headers=headers, json=payload, timeout=10)
if message_request.status_code == 200:
print(f'{Fore.CYAN}[✓] Mesaj {channel_id} idli kanala gönderildi!{Style.RESET_ALL}')
sleep(1)
except requests.exceptions.RequestException as e:
print(f'{Fore.RED}[X] Ağ hatası: {str(e)}{Style.RESET_ALL}')
def spam_multiple_channel():
os.system('cls' if os.name == 'nt' else 'clear')
pass
for channel_id in channel_ids:
except requests.exceptions.RequestException as e:
print(f'{Fore.RED}[X] Ağ hatası: {str(e)}{Style.RESET_ALL}')
def get_module_choice():
pass
try:
pass # postinserted
except ValueError:
print(f'{Fore.RED}Geçersiz giriş! Sadece numara girin.{Style.RESET_ALL}')
sleep(1)
if __name__ == '__main__':
try:
pass
module_choice = get_module_choice()
if module_choice == 1:
mass_dm()
input(f'\n{Fore.CYAN}Devam etmek için Enter\'a basın...{Style.RESET_ALL}')
except FileNotFoundError:
print(f'{Fore.RED}message.txt bulunamadı!{Style.RESET_ALL}')
exit()
except KeyboardInterrupt:
print(f'\n{Fore.RED}Program kapatılıyor...{Style.RESET_ALL}')
exit()