-
Notifications
You must be signed in to change notification settings - Fork 2
/
scarecrow.py
138 lines (105 loc) · 5.96 KB
/
scarecrow.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# by billythegoat356
# https://github.com/billythegoat356/Scarecrow
from os import name, chdir
from os.path import isfile
from pystyle import Anime, Colorate, Colors, Center, System, Write
code = """# Protected with Scarecrow
# https://github.com/billythegoat356/Scarecrow
try:
from psutil import process_iter, NoSuchProcess, AccessDenied, ZombieProcess
class scare:
def fuck(names):
for proc in process_iter():
try:
for name in names:
if name.lower() in proc.name().lower():
proc.kill()
except (NoSuchProcess, AccessDenied, ZombieProcess):
pass
def crow():
forbidden = ['http', 'traffic', 'wireshark', 'fiddler', 'packet']
return scare.fuck(names=forbidden)
scare.crow()
except:
pass
# by billythegoat356
\n\n\n"""
if name == 'nt':
path = '/'.join(__file__.split('\\')[:-1])
chdir(path)
banner = """
///
/ +s+/
+o/ /s/
/oo/ / +o y
oo/ s+ y s/
+o/ s/ s/ oo
+o/ oo s+ oo ..... +o+
+o y s+ h .. +shdNMMM+
... ..... /+o//s +o h . hNMMMMMMMy
+sssyhhyy+ ... h /y h +o . mMMMMMMMMm
oMMMMMMMMMMd+.. s+ +o y h /mMMMMMMMMN /
oNMMMMMMMMMMm/.. os+y h h sMMMMMMMMMN . +myo
hMMMMMMMMMMMd . +yh/ y s+ dMMMMMMMMMh . sMo
.+MMMMMMMMMMMMh . so oho++osyyyys++o/ . hy
. smMMMMMMMMMMmo++o++oo +o+++/ + /osy
.. /++syhhs+ oo +oo/ +s/ oh
... +++o/ /++o+/ +d/
yh/ /s/ sy
/oy /+////// /oss/
yo omys
/mso/ M/
++omo Nh/
/yy /o d /++yssy/ /oNmo
m+o/o oN+ . /oMd +NNMMMMMNmdddNd+
ymysds ss// sMNNhdNMMMo.. o omMMMMMMMMMMMmo
moDMdd ohNMMMdy/ .oNMMMMMMMMMMsomMddNMMMMMMMMMMMmo
/NN/+dMMMMMMMMMMmhsyooyhMMMMMMMMMMMMMMMMMMMMMMMMMMMMMo
dMNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMm/
+shNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM/
omNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMy
NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM/
mMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN
+MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMm
/MMMMMmdhmMmMMMMMMMMMMMMMMMMMNMdMh/oyhNMN
MMNh+ . y oNMMMMMMMMMMMMms//+ / od
+ds/ sNNMMMMMMMMMy
//sNMMMMMNo
/dMMMMs
sMMN
hMs
m"""[1:]
ascii = '''
ad88888ba
d8" "8b
Y8,
`Y8aaaaa, ,adPPYba, ,adPPYYba, 8b,dPPYba, ,adPPYba, ,adPPYba, 8b,dPPYba, ,adPPYba, 8b db d8
`"""""8b, a8" "" "" `Y8 88P' "Y8 a8P_____88 a8" "" 88P' "Y8 a8" "8a `8b d88b d8'
`8b 8b ,adPPPPP88 88 8PP""""""" 8b 88 8b d8 `8b d8'`8b d8'
Y8a a8P "8a, ,aa 88, ,88 88 "8b, ,aa "8a, ,aa 88 "8a, ,a8" `8bd8' `8bd8'
"Y88888P" `"Ybbd8"' `"8bbdP"Y8 88 `"Ybbd8"' `"Ybbd8"' 88 `"YbbdP"' YP YP'''[1:]
def init():
System.Title("Scarecrow")
System.Size(180, 50)
Anime.Fade(text=Center.Center(banner), color=Colors.red_to_yellow, mode=Colorate.Vertical, enter=True)
def main():
System.Clear()
print("\n"*2)
print(Colorate.Diagonal(Colors.red_to_yellow, Center.XCenter(ascii)))
print("\n"*5)
file = Write.Input("Drag a Python file -> ", Colors.red_to_yellow, interval=0.005)
print()
if not isfile(file):
print(Colorate.Error("Error! This file does not exist!"))
return
with open(file, mode='r', encoding='utf-8') as f:
content = f.read()
content = code + content
with open("scarecrowed.py", mode='w', encoding='utf-8') as f:
f.write(content)
Write.Input("Done!", Colors.red_to_yellow, interval=0.005)
return exit()
if __name__ == '__main__':
init()
while True:
main()