-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfig.yaml
216 lines (170 loc) · 6.26 KB
/
config.yaml
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
shellcode_template:
includePath: "Include/Shellcode.h"
substitutions:
shellcode: "${ SHELLCODE }"
shellcode_size: "${ SHELLCODE_SIZE }"
includeOutputName: "Shellcode.h"
loader_template:
- token: "inline"
key_required: false # This loader does not use encrypted shellcode, so no key is required
method: "VirtualAlloc, memcpy, ((void(*)())exec)();" # This can be whatever, just a description of the method
files: # These are relative paths to the files that will be included in the loader from the template folder
- sourcePath: "Source/Inline.c"
outputPath: "Main.c"
- sourcePath: "makefile"
outputPath: "makefile"
- token: "inline_xor"
key_required: true # This loader uses encrypted shellcode, so a key is required
enc_type: "xor" # Since this loader uses encrypted shellcode, we need to specify the encryption type
method: "VirtualAlloc, xorShellcode, memcpy, ((void(*)())exec)();"
files:
- sourcePath: "Source/Inline_Xor.c"
outputPath: "Main.c"
substitutions:
key: "${KEY}"
# xorShellcode(shellcode, shellcode_size, "${KEY}");
# Strictly pass in with ` -args "key=aaaa" `
- sourcePath: "Source/Xor.c" # And, the rest of the source files don't need any substitutions
outputPath: "Xor.c"
- sourcePath: "Include/Xor.h"
outputPath: "Xor.h"
- sourcePath: "makefile"
outputPath: "makefile"
- token: "createremotethread"
key_required: false
method: "OpenProcess, VirtualAllocEx (PAGE_EXECUTE_READWRITE), WriteProcessMemory, CreateRemoteThread, WaitForSingleObject, CloseHandle"
files:
- sourcePath: "Source/CreateRemoteThread.c"
outputPath: "Main.c"
- sourcePath: "makefile"
outputPath: "makefile"
- token: "createremotethreadrx"
key_required: false
method: "OpenProcess, VirtualAllocEx (PAGE_READWRITE), WriteProcessMemory, VirtualProtect (PAGE_EXECUTE_READ), CreateRemoteThread, WaitForSingleObject, CloseHandle"
files:
- sourcePath: "Source/CreateRemoteThreadRX.c"
outputPath: "Main.c"
- sourcePath: "makefile"
outputPath: "makefile"
- token: "createthread"
key_required: false
method: "VirtualAlloc, memcpy, CreateThread, WaitForSingleObject"
files:
- sourcePath: "Source/CreateThread.c"
outputPath: "Main.c"
- sourcePath: "makefile"
outputPath: "makefile"
- token: "createthread_xor"
key_required: true
enc_type: "xor"
method: "VirtualAlloc, xorShellcode, memcpy, CreateThread, WaitForSingleObject"
files:
- sourcePath: "Source/CreateThread_Xor.c"
outputPath: "Main.c"
substitutions:
key: "${KEY}"
- sourcePath: "Source/Xor.c"
outputPath: "Xor.c"
- sourcePath: "Include/Xor.h"
outputPath: "Xor.h"
- sourcePath: "makefile"
outputPath: "makefile"
- token: "createthread_xor_sleep"
key_required: true
enc_type: "xor"
method: "VirtualAlloc, Sleep, xorShellcode, memcpy, CreateThread, WaitForSingleObject"
files:
- sourcePath: "Source/CreateThread_Xor_Sleep.c"
outputPath: "Main.c"
substitutions:
key: "${KEY}"
sleep: "${ SLEEP }"
- sourcePath: "Source/Xor.c"
outputPath: "Xor.c"
- sourcePath: "Include/Xor.h"
outputPath: "Xor.h"
- sourcePath: "makefile"
outputPath: "makefile"
- token: "createthread_iat"
key_required: false
method: "Dyanmic WinAPI resolution then VirtualAlloc, memcpy, CreateThread, WaitForSingleObject"
files:
- sourcePath: "Source/CreateThread_IAT.c"
outputPath: "Main.c"
- sourcePath: "Source/Hash.c"
outputPath: "Hash.c"
- sourcePath: "Source/Iat.c"
outputPath: "Iat.c"
- sourcePath: "Include/Hash.h"
outputPath: "Hash.h"
- sourcePath: "Include/Iat.h"
outputPath: "Iat.h"
- sourcePath: "makefile"
outputPath: "makefile"
- token: "createthread_iat_xor"
key_required: true
enc_type: "xor"
method: "Dyanmic WinAPI resolution then VirtualAlloc, xorShellcode, memcpy, CreateThread, WaitForSingleObject"
files:
- sourcePath: "Source/CreateThread_IAT_Xor.c"
outputPath: "Main.c"
substitutions:
key: "${KEY}"
- sourcePath: "Source/Hash.c"
outputPath: "Hash.c"
- sourcePath: "Source/Iat.c"
outputPath: "Iat.c"
- sourcePath: "Source/Xor.c"
outputPath: "Xor.c"
- sourcePath: "Include/Hash.h"
outputPath: "Hash.h"
- sourcePath: "Include/Iat.h"
outputPath: "Iat.h"
- sourcePath: "Include/Xor.h"
outputPath: "Xor.h"
- sourcePath: "makefile"
outputPath: "makefile"
- token: "queueuserapc"
key_required: false
method: "OpenProcess, VirtualAllocEx, WriteProcessMemory, OpenThread, QueueUserAPC"
files:
- sourcePath: "Source/QueueUserAPC.c"
outputPath: "Main.c"
substitutions:
pname: ${ PNAME }
- sourcePath: "makefile"
outputPath: "makefile"
- token: "earlybirdapc"
key_required: false
method: "CreateProcessA, VirtualAllocEx, WriteProcessMemory, QueueUserAPC, ResumeThread, WaitForSingleObject"
files:
- sourcePath: "Source/EarlyBirdAPC.c"
outputPath: "Main.c"
substitutions:
pname: ${ PNAME }
- sourcePath: "makefile"
outputPath: "makefile"
- token: "earlybirdapc_buffed"
key_required: true
enc_type: "xor"
method: "Sandbox Evasion -> WinAPI Resolution -> XOR Shellcode -> Early Bird APC Injection -> Resume Thread"
files:
- sourcePath: "Source/EarlyBirdAPC_Buffed.c"
outputPath: "Main.c"
substitutions:
key: ${ KEY }
pname: ${ PNAME }
- sourcePath: "Source/Hash.c"
outputPath: "Hash.c"
- sourcePath: "Source/Xor.c"
outputPath: "Xor.c"
- sourcePath: "Source/Iat.c"
outputPath: "Iat.c"
- sourcePath: "Include/Hash.h"
outputPath: "Hash.h"
- sourcePath: "Include/Xor.h"
outputPath: "Xor.h"
- sourcePath: "Include/Iat.h"
outputPath: "Iat.h"
- sourcePath: "makefile"
outputPath: "makefile"