-
Notifications
You must be signed in to change notification settings - Fork 5
/
bat.py
62 lines (60 loc) · 1.95 KB
/
bat.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
import subprocess
from pathlib import Path
import random,string, os
import platform
import termcolor
try:
from pystyle import *
except:
os.system("pip install pystyle")
from pystyle import *
try:
from tqdm import tqdm
except:
os.system("pip install tqdm")
from tqdm import tqdm
colorama.deinit()
banner = Center.XCenter("""
____ _____ _ _ ___ _ _____ ____ _____
| __ ) __ |_ _|__| | | | / _ \| |__ | ___| _ ___ / ___|__ |_ _|__
| _ \ / _ || |/ __| |_| |_____| | | | _ \| |_ | | | / __| | / _ || |/ _ \`
| |_) | (_| || | (__| _ |_____| |_| | |_) | _|| |_| \__ \ |__| (_| || | __/
|____/ \__,_||_|\___|_| |_| \___/|_ __/|_| \__,_|___/\____\__,_||_|\___|
\n\n
""")
def os():
iden = platform.system()
if(iden == "Windows"):
print("\033c")
print(Colorate.Vertical(Colors.green_to_yellow, banner, 2))
obfuscate2()
else:
print("\033c")
print(Colorate.Vertical(Colors.green_to_yellow, banner, 2))
obfuscate2()
def obfuscate2():
S = 5
ran = ''.join(random.choices(string.ascii_uppercase + string.digits, k=S))
file = input(termcolor.colored("\nEnter Path Of BAT File:- ", 'green'))
out_hex = []
out_hex.extend(["FF", "FE", "26", "63", "6C", "73", "0D", "0A", "FF", "FE", "0A", "0D"])
with open(f'{file}','rb') as f:
penis = f.read()
out_hex.extend(['{:02X}'.format(b) for b in penis])
with open(f'{ran}.bat', 'wb') as f:
for i in out_hex:
f.write(bytes.fromhex(i))
path_to_file = f'{ran}.bat'
path = Path(path_to_file)
if path.is_file():
print(termcolor.colored('\n[ ✔ ] File Obfuscated Success...', 'cyan'))
else:
print(termcolor.colored('\n[ X ] Error Occured! Plz Run again',
'red'))
def catc():
try:
os()
except KeyboardInterrupt:
print("You Pressed The Exit Button!")
quit()
catc()