-
Notifications
You must be signed in to change notification settings - Fork 60
/
main.py
105 lines (84 loc) · 2.97 KB
/
main.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
104
105
# ---------------- Imports
import os
import shutil
try:
import pyzipper
import colorama
from rich import print
from rich.panel import Panel
import re
except ImportError:
_ = os.system('pip install colorama' if os.name == 'nt' else 'pip3 install colorama')
_ = os.system('pip install pyzipper' if os.name == 'nt' else 'pip3 install pyzipper')
_ = os.system('pip install rich' if os.name == 'nt' else 'pip3 install rich')
import pyzipper
import sys
from time import sleep
from getpass import getpass
from colorama import Fore
from rich.panel import Panel
import os
# -------------------Colors
r = "\033[1;31m"
g = "\033[1;32m"
y = "\033[1;33m"
b = "\033[1;34m"
d = "\033[2;37m"
R = "\033[1;41m"
Y = "\033[1;43m"
B = "\033[1;44m"
w = "\033[1;37m"
g = "\033[0;90m"
y = r
# ------------------banners
logo = Panel("""
[bold white]</> [italic green] STARK-404 [bold white]</>
[bold white] </> [italic green] Github: STARK-404 [bold white]</>
[bold white] </> [italic green] instagram la1uuuuu [bold white]</>
""")
def banner():
print(logo)
def cls_clear_func():
os.system('cls' if os.name=='nt' else 'clear')
def exixting_directory_file(file):
if os.path.exists(file):
os.remove(file)
def designprint(samaywrite):
print(logo)
print("[bold red]"+"└─> "+'[bold white]'+"[bold green]"+samaywrite)
print("[bold green]Please Wait Files Are Extracting ...")
def front_design():
cls_clear_func()
banner()
front_design()
class Setup:
def __init__(self,user):
self.data = user
def mainFile(self):
self.save = self.data
try:
with pyzipper.AESZipFile('spy.zip', 'r', compression=pyzipper.ZIP_DEFLATED,
encryption=pyzipper.WZ_AES) as extracted_zip:
extracted_zip.extractall(pwd=str.encode(self.save))
designprint('Password Correct !')
sleep(2.3)
front_design()
designprint('Successfully Decrypted and unzipped file with password..')
sleep(3.0)
exixting_directory_file('spy.zip')
os.system('mv main.ts Main/|npm run spy' if os.name=='nt' else 'mv main.ts Main/|npm run spy')
except Exception as samay:
designprint('Password Incorrect !')
print("[•]Contact Admin For Password!")
print('[bold green] Mail:- [email protected]')
print("[!] You Have Been Redirected To Payment Page!!")
os.system("xdg-open https://www.buymeacoffee.com/mrstarkin/e/174352")
os.system('python main.py' if os.name=='nt' else 'python3 main.py')
try:
user_ezip_unzipping = getpass(r+"└─"+w+"\033[1;37mEnter the password of Zipfile : "+r).strip()
except:
pass
if __name__ == '__main__':
exixting_directory_file('python index.py')
main_start = Setup(user_ezip_unzipping)
main_start.mainFile()