-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbash.py
87 lines (71 loc) · 3.4 KB
/
bash.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
# Author : Aank is ME
# -*- coding: utf-8 -*-
import os
import sys
import fileinput
N = '\033[0m'
D = '\033[90m'
W = '\033[1;37m'
B = '\033[1;34m'
R = '\033[1;31m'
G = '\033[1;32m'
Y = '\033[1;33m'
C = '\033[1;36m'
b='\033[1m'
r='\E[31m'
g='\E[32m'
c='\E[36m'
ask = G + '[' + W + '?' + G + '] '
success = G + '[' + W + '√' + G + '] '
error = R + '[' + W + '!' + R + ']'
banner = """
██╗ ██╗███╗ ██╗ ██████╗ ██████╗ █████╗ ██╗ ██╗ ██████╗ ███████╗████████╗██╗███╗ ██╗ ██████╗
██║ ██║████╗ ██║██╔════╝ ██╔════╝ ██╔══██╗██║ ██║██╔═══██╗██╔════╝╚══██╔══╝██║████╗ ██║██╔════╝
██║ ██║██╔██╗ ██║██║ ███╗██║ ███╗███████║███████║██║ ██║███████╗ ██║ ██║██╔██╗ ██║██║ ███╗
██║ ██║██║╚██╗██║██║ ██║██║ ██║██╔══██║██╔══██║██║ ██║╚════██║ ██║ ██║██║╚██╗██║██║ ██║
███████╗██║██║ ╚████║╚██████╔╝╚██████╔╝██║ ██║██║ ██║╚██████╔╝███████║ ██║ ██║██║ ╚████║╚██████╔╝
╚══════╝╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝
$r Support YT Channel-> Aank is ME © 2022 $c https://aank.me/Youtube
""".format(D,W,D,W,D,W,Y,W,D,W,D,W,D,W,D,W,D,Y,D,W,D,Y,D,G,W,G,D,G,W,G,Y,D,Y,D,Y,D,Y,D,Y)
banner2 = """
{}[{}1{}]{} Encript {}[{}2{}]{} Decrypt
""".format(G,W,G,W,G,W,G,W)
print (banner)
print (banner2)
def decrypt():
try:
sc = input(ask + W + "Script " + G + "> " + W)
f = open(sc,'r')
filedata = f.read()
f.close()
newdata = filedata.replace("eval","echo")
out = input(ask + W + "Output" + G + " > " + W)
f = open(out,'w')
f.write(newdata)
f.close()
os.system("touch tes.sh")
os.system("bash " + out + " > tes.sh")
os.remove(out)
os.system("mv -f tes.sh " + out)
print (success + "Done..")
except KeyboardInterrupt:
print (error + " Stopped!")
except IOError:
print (error + " File Not Found!")
def encript():
try:
script = input(ask + W + "Script " + G + "> " + W)
output = input(ask + W + "Output " + G + "> " + W)
os.system("bash-obfuscate " + script + " -o " + output )
print (success + "Done..")
except KeyboardInterrupt:
print (error + " Stopped!")
except IOError:
print (error + " File Not Found!")
a2nkget = input(W + "Choose" + G + " > ")
if a2nkget == "1" or a2nkget == "01":
encript()
elif a2nkget == "2" or a2nkget == "02":
decrypt()
else:
print (error + " Wrong input")