-
Notifications
You must be signed in to change notification settings - Fork 153
/
BypassFramework.py
153 lines (135 loc) · 6.42 KB
/
BypassFramework.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#!/usr/bin/python
from core.functions import *
import readline
from module.memory.CreateFiber import *
from module.UUID.UUID_bypass import *
from module.memory.QueueUserAPC import *
from module.Separation.imageShell import *
from module.darkexe.darkexe import *
from termcolor import colored
python_version = sys.version_info[0]
flag = 0
if python_version != 3:
print(colored("[-] Unable to run ", "red"))
print(colored("[-] Please run FourEye with python 3", "red"))
sys.exit()
banner()
while True:
readline.set_completer(completer)
readline.parse_and_bind("tab: complete")
try:
command = input("\033[4mFourEye\033[0m"+colored(" >>", "green"))
if command == "exit":
break
if command == "list":
list()
if command == "help":
help()
if command.split(" ")[0] == "exe":
shellcode_add = input("\033[4mPlease input Your exe:\033[0m" + colored(" >>", "green"))
darkarmour = Darkexe()
darkarmour.run(args=shellcode_add)
if command.split(" ")[0] == "shellcode":
readline.set_completer(shellcode_completer)
readline.parse_and_bind("tab: complete")
while True:
try:
exe_command = input("\033[4mFourEye(shellcode)\033[0m"+colored(" >>", "green"))
if exe_command == "back":
break
if exe_command == "list":
bypass_list()
if exe_command == "exit":
sys.exit()
if exe_command.split(" ")[0] == "1":
while True:
try:
bypass1_command = input("\033[4mFourEye(shellcode_bypass1)\033[0m" + colored(" >>", "green"))
if bypass1_command == "rot13":
Fiber_rot_13()
if bypass1_command == "xor":
Fiber_xor_13()
if bypass1_command == "x86":
flag = 1
if bypass1_command == "x64":
flag = 2
if bypass1_command == "execute":
if flag == 1:
x86cpp_execute()
elif flag == 2:
x64cpp_execute()
if bypass1_command == "exit":
sys.exit()
if bypass1_command == "back":
break
except EOFError:
print(" ")
if exe_command.split(" ")[0] == "2":
while True:
try:
bypass2_command = input("\033[4mFourEye(shellcode_bypass2)\033[0m" + colored(" >>", "green"))
if bypass2_command == "rot13":
Queue_rot_13()
if bypass2_command == "xor":
Queue_xor_13()
if bypass2_command == "x86":
flag = 1
if bypass2_command == "x64":
flag = 2
if bypass2_command == "execute":
if flag == 1:
x86c_execute()
elif flag == 2:
x64c_execute()
if bypass2_command == "exit":
sys.exit()
if bypass2_command == "back":
break
except EOFError:
print(" ")
if exe_command.split(" ")[0] == "3":
while True:
try:
bypass3_command = input("\033[4mFourEye(shellcode_bypass3)\033[0m" + colored(" >>", "green"))
if bypass3_command == "png":
imageSehllcode()
if bypass3_command == "x86":
flag = 1
if bypass3_command == "x64":
flag = 2
if bypass3_command == "execute":
if flag == 1:
x86cpp_execute()
elif flag == 2:
x64cpp_execute()
if bypass3_command == "exit":
sys.exit()
if bypass3_command == "back":
break
except EOFError:
print(" ")
if exe_command.strip(" ")[0] == "4":
while True:
try:
bypass4_command = input("\033[4mFourEye(shellcode_bypass4)\033[0m" + colored(" >>", "green"))
if bypass4_command == "UUID":
UUIDSehllcode()
if bypass4_command == "x86":
flag = 1
if bypass4_command == "x64":
flag = 2
if bypass4_command == "execute":
if flag == 1:
x86_uuid_execute()
elif flag == 2:
x64_uuid_execute()
if bypass4_command == "exit":
sys.exit()
if bypass4_command == "back":
break
except EOFError:
print(" ")
except EOFError:
print(" ")
except EOFError:
print(" ")