adaadaaad
lolllll
from platform import system
from sys import exit
import subprocess, uuid, os
from os import name
import time
from time import sleep
import requests
def auth() -> None:
if system().lower() == 'windows':
hwid = subprocess.check_output('wmic csproduct get uuid').decode()
hwid = hwid.split('\n')[1].strip()
elif system().lower() == 'linux':
hwid = subprocess.check_output(['cat', '/var/lib/dbus/machine-id'])
hwid = str(uuid.uuid3(uuid.NAMESPACE_DNS, hwid.strip().decode()))
else:
hwid = str(uuid.getnode())
if os.path.isfile('key.txt'):
with open('key.txt') as f:
auth_key = f.read().strip()
else:
auth_key = input('Enter Cracked.to Auth Key: ')
with open('key.txt', 'w') as f:
f.write(auth_key)
data = {'a':'auth', 'k':auth_key,
'hwid':hwid}
r = requests.post('https://cracked.sh/auth.php', data=data)
if r.ok:
res = r.json()
if 'error' in res:
print(res['error'])
if os.path.exists('key.txt'):
os.remove('key.txt')
exit(1)
elif res['auth']:
print(f"Auth Granted. Welcome {res['username']}!")
else:
print(res)
exit(1)
else:
print(r.text, r.status_code)
exit(1)
auth()
token = input('Bot token->')
prefix = input('Bot prefix(!/?/. etc) ->')
customcommandoutput = input('Input a response for a command--->')
bot = 'import discord\nfrom discord.ext import commands\nbot = commands.Bot(command_prefix="{}", description="Pog bot made by cracked.to/lamlucius8")\n@bot.command()\nasync def ping(ctx):\n await ctx.send("pong!")\n@bot.command()\nasync def customcommand(ctx):\n await ctx.reply("{}")\nbot.run("{}")'.format(prefix, customcommandoutput, token)
f = open('temp.txt', 'w')
f.write(bot)
f.close()
old_file = os.path.join('temp.txt')
new_file = os.path.join('bot.py')
os.rename(old_file, new_file)
test = subprocess.Popen(['pyinstaller', '--onefile', 'bot.py'], stdout=(subprocess.PIPE))
output = test.communicate()[0]
os.remove('bot.py')
print('Bots exe will be in the dist folder')