-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.py
47 lines (43 loc) · 1.21 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
import os
import time
import colorama
from colorama import Fore
logo = """
______ ______ _
| ___ \ | ___ \ | |
| |_/ /__ _ _ _| |_/ /___ __| |
| // _` | | | | // _ \ / _` |
| |\ \ (_| | |_| | |\ \ (_) | (_| |
\_| \_\__,_|\__, \_| \_\___/ \__,_|
__/ |
|___/
"""
def menu():
print(Fore.BLUE + logo)
print('[1] Decompile Pyinstaller / Pyarmor Executable File')
print('[2] Decompile .pyc file')
var = int(input('\n>> '))
if var == 1:
T = input(f'{Fore.GREEN}\n[~] Enter the directory of the .exe (e.g: /Desktop/app.exe/): ')
if os.path.exists(T):
print('')
os.system(f"python3 modules/pyinstxtractor.py {T}")
#print('')
else:
print(f'{Fore.RED}\n[!] Directory does not exist')
time.sleep(2)
menu()
elif var == 2:
T = input(f'{Fore.GREEN}\n[~] Enter the directory of the .pyc (e.g: /Desktop/compile.pyc/): ')
if os.path.exists(T):
print('')
os.system(f"uncompyle6 {T}")
else:
print(f'{Fore.RED}\n[!] Directory does not exist')
time.sleep(2)
menu()
else:
print(f'{Fore.RED}\n[!] Wrong Option.')
time.sleep(2)
menu()
menu()