Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- try:
- import requests
- except:
- os.system("pip install requests")
- try:
- import base64
- except:
- os.system("pip install base64")
- try:
- import marshal
- except:
- os.system("pip install marshal")
- try:
- import zlib
- except:
- os.system("pip install zlib")
- try:
- import telebot
- from telebot import *
- from telebot import util
- from telebot import types
- except:
- os.system("pip install telebot")
- print('[1;32m ادخل توكن بوتك')
- tokin = '6712132097:AAEGrEzrA1RznWiAaqd3Kd15yc0f_-eG7Rs'
- bot = telebot.TeleBot(tokin)
- def encode_files(name, file_name):
- if name == "marshal":
- en = marshal.dumps(compile(open(file_name, "r").read(), '<mostafa>', 'exec'))
- return (f"#https://t.me/x778l
- import marshal
- exec(marshal.loads({en}))")
- elif name == "base64":
- en = base64.b64encode(open(file_name, "r").read().encode('UTF-8')).decode('ascii')
- return (f"#https://t.me/x778l
- #x778l
- import base64
- exec(base64.b64decode('{en}'))")
- elif name == "lambda":
- en = repr(zlib.compress(open(file_name, "r").read().encode('utf-8')))
- return (f"#https://t.me/x778l
- #@x778l
- exec((lambda _____, ______ : ______(eval((lambda ____,__,_ : ____.join([_(___) for ___ in __]))('',[95, 95, 105, 109, 112, 111, 114, 116, 95, 95, 40, 34, 122, 108, 105, 98, 34, 41, 46, 100, 101, 99, 111, 109, 112, 114, 101, 115, 115],chr))(_____),'<https://t.me/N_9_N_6','exec'))({en},compile))")
- elif name == "zlib":
- en = str(base64.b64encode(zlib.compress(marshal.dumps(compile(open(file_name, "r").read(), "ru", 'exec')))))
- return (f"#https://t.me/x778l
- #import zlib
- exec(marshal.loads(zlib.decompress(base64.b64decode('{en}'))))")
- @bot.message_handler(commands=['start'])
- def welcome(message):
- channel = types.InlineKeyboardButton(text=" قناتي ", url=f"https://t.me/x778l")
- start = types.InlineKeyboardButton(text=" اضغط هنا لتشفير", callback_data="Encryption")
- programmer = types.InlineKeyboardButton(text=" المطور ", url=f"https://t.me/O_C_O_Q153BOT")
- Keyboards = types.InlineKeyboardMarkup()
- Keyboards.row_width = 1
- Keyboards.add(start, programmer, channel)
- bot.send_message(message.chat.id, text=f"🌹| مرحبا {message.from_user.first_name}
- ✅ بوت تشفير ادوات بايثون
- 🔰| المطور DEKO", reply_to_message_id=(message.message_id), reply_markup=Keyboards)
- def Encryption(message):
- Button1 = types.InlineKeyboardButton(text="base64 🔒", callback_data='base64')
- Button2 = types.InlineKeyboardButton(text="lambda 🔒", callback_data='lambda')
- Button3 = types.InlineKeyboardButton(text="marshal 🔒", callback_data='marshal')
- Button4 = types.InlineKeyboardButton(text="zlib 🔒", callback_data='zlib')
- Keyy = types.InlineKeyboardMarkup()
- Keyy.row_width = 1
- Keyy.add(Button1, Button2, Button3, Button4)
- bot.send_message(message.chat.id, text=f"🔰| اختار نوع التشفير ", parse_mode="markdown", reply_markup=Keyy)
- def file_encode(message, name):
- bot.send_message(message.chat.id, text=f"📥| قم بارسال الملف لتشفيره {name} ")
- @bot.message_handler(content_types=['document'])
- def save(message):
- file_input = bot.download_file(bot.get_file(message.document.file_id).file_path)
- file_name = f"تـم تشفيـر.py"
- with open(file_name, 'wb') as f:
- f.write(file_input)
- en = encode_files(name, file_name)
- with open(file_name, 'w') as f:
- f.write(en)
- file_document = open(file_name, 'rb')
- bot.send_document(message.chat.id, file_document)
- os.system(f"rm -f {file_name}")
- @bot.callback_query_handler(func=lambda call: True)
- def callbacks_data(call):
- if call.data == "Encryption":
- Encryption(call.message)
- elif call.data == "base64":
- file_encode(call.message, "base64")
- elif call.data == "lambda":
- file_encode(call.message, "lambda")
- elif call.data == "marshal":
- file_encode(call.message, "marshal")
- elif call.data == "zlib":
- file_encode(call.message, "zlib")
- while True:
- try:
- print("[1;32m تـم التشغـيل بنـجاح")
- bot.polling(True)
- break
- except Exception as ex:
- print(f"Error polling : {ex}")
- telebot.logger.error(ex)
- continue
Add Comment
Please, Sign In to add comment