-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocumentation.html
477 lines (407 loc) · 12.8 KB
/
documentation.html
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VxLang Project Documentation</title>
<link href="https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;600&display=swap" rel="stylesheet">
<link rel="icon" href="https://vxlang.github.io/image/web-icon.ico">
<style>
body {
font-family: 'Segoe UI', Tahoma, sans-serif;
background-color: #1e1e1e;
color: #f0f0f0;
margin: 0;
padding: 0;
line-height: 1.6;
}
header {
background-color: #252526;
color: #ffffff;
padding: 20px 40px;
text-align: left;
font-size: 24px;
font-weight: 600;
border-bottom: 1px solid #3c3c3c;
}
nav {
background-color: #2d2d2d;
border-bottom: 1px solid #3c3c3c;
padding: 10px 40px;
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-title {
color: #ffffff;
font-weight: 600;
font-size: 18px;
}
.nav-links {
display: flex;
gap: 20px;
}
.nav-links a {
color: #61dafb;
text-decoration: none;
font-weight: 600;
}
.nav-links a:hover {
text-decoration: underline;
}
.container {
display: flex;
max-width: 1200px;
margin: 20px auto;
padding: 0 40px;
}
.sidebar {
width: 200px;
background-color: #252526;
border-right: 1px solid #3c3c3c;
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
border-radius: 10px;
position: sticky;
top: 20px; /* 사이드바가 화면 상단에 고정되도록 수정 */
height: fit-content;
}
.sidebar a {
display: block;
color: #f0f0f0;
text-decoration: none;
padding: 10px 0;
font-size: 15px;
border-bottom: 1px solid #3c3c3c;
/* font-weight: 600; 글씨를 굵게 처리했습니다 */
}
.sidebar a:hover {
text-decoration: underline;
}
.sidebar h1 {
color: #61dafb;
}
.main-content {
flex: 1;
background-color: #2d2d2d;
padding: 20px 40px;
margin-left: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
border-radius: 5px;
}
.main-content h1 {
color: #61dafb;
font-size: 28px;
margin-bottom: 20px;
font-weight: 600;
}
.main-content h2 {
color: #61dafb;
font-size: 22px;
margin-bottom: 15px;
font-weight: 600;
}
.main-content p {
margin-bottom: 15px;
font-size: 16px;
color: #f0f0f0;
}
.main-content a {
color: #61dafb;
text-decoration: none;
font-weight: 600;
}
.main-content a:hover {
text-decoration: underline;
}
<!-- -->
.code-block {
background-color: #2d2d2d;
border: 1px solid #3c3c3c;
border-radius: 5px;
padding: 15px;
font-size: 16px;
color: #d4d4d4;
margin: 0px auto;
overflow-x: auto;
}
.code-block .keyword {
color: #569cd6;
}
.code-block .type {
color: #4ec9b0;
}
.code-block .parameter {
color: #9cdcfe;
}
.code-block .define {
color: #9966cc;
}
.code-block .annotation {
color: #009999;
}
<!-- -->
footer {
background-color: #252526;
color: #ffffff;
text-align: center;
padding: 10px;
margin-top: 20px;
border-top: 1px solid #3c3c3c;
font-size: 14px;
}
</style>
<!-- -->
<script>
document.addEventListener("DOMContentLoaded", function() {
const sidebar = document.querySelector('.sidebar');
const headings = document.querySelectorAll('.main-content h1, .main-content h2');
headings.forEach(heading => {
const link = document.createElement('a');
link.textContent = heading.textContent;
link.href = `#${heading.id}`;
link.style.marginLeft = heading.tagName === 'H2' ? '10px' : '0';
sidebar.appendChild(link);
});
});
</script>
<!-- Google tag (gtag.js) -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3576297577641849"
crossorigin="anonymous"></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M65XF6FRKV"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-M65XF6FRKV');
</script>
</head>
<body>
<header>
<!-- VxLang Project
-- Virtual-Machine x Intermediate-Language Project -->
</header>
<nav>
<div class="nav-title">VxLang Project Documentation</div>
<div class="nav-links">
<a href="https://vxlang.github.io">Overview</a>
<a href="https://vxlang.github.io/news/news.html">News</a>
<a href="https://vxlang.github.io/documentation.html">Documentation</a>
<a href="https://vxlang.github.io/download.html">Download</a>
<a href="https://vxlang.github.io/about.html">About</a>
</div>
</nav>
<div class="container">
<aside class="sidebar">
<h1>Contents</h1>
</aside>
<section class="main-content">
<h1 id="index">Index</h2>
<p>
<ul>
<li><a href="https://vxlang.github.io/documentation.html#project-json">VxLang Project JSON</a></li>
<li><a href="https://vxlang.github.io/documentation-1.html#how-to-protect-user-code">How to Protect User Code</a></li>
<li><a href="https://vxlang.github.io/documentation.html#gen_json">How to Develop VxLang Extension Modules</a></li>
</ul>
</p>
<!-- -->
<h1 id="project-json">VxLang Project JSON</h1>
<p></p>
<h2 id="gen_json">Generating a Project JSON</h2>
<p>
<b>Target Version: 1.6.1.1</b><br>
This page provides instructions on how to use VxLang. <br>
</p>
<p>
VxLang supports JSON files to adjust protection options at the binary level. To obtain the latest version of the JSON file, use the CMD options. Below is an example command:
</p>
<div class="code-block">
<div>
:\> <span class="keyword">vxlang.exe</span> <span class="parameter"><b>${PE-Binary}</b></span>
</div>
</div>
<p>
This will create a <b>temp.json</b> file.
</p>
<div class="code-block">
<div>
{
"input": "test.exe",
"output": "",
"backup": false,
"use-data-section": false,
"base-section-name": "",
"map-file-path": "",
"virtualizer": {
"entry-point": false,
"virtualization-by-map": []
},
"obfuscator": {
"entry-point": false,
"obfuscation-by-map": [],
"flattening-by-map": []
},
"protector": {
"compress": true,
"symbol-data": false,
"mutate-import-table": true,
"vxlang-link-event": false,
"anti-tamper": {
"enable": true,
"hide-unused-memory": true,
"pause-protection": true,
"message": ""
},
"extension": [],
"raw-data" : [],
"reflection": {
"enable": false,
"ldr-update": true
}
}
}
</div>
</div>
<p>
The generated JSON can be used as shown below.
</p>
<div class="code-block">
<div>
:\> <span class="keyword">vxlang.exe</span> <span class="parameter"><b>temp.json</b></span>
</div>
</div>
<h2 id="json_desc">JSON Description</h2>
<div class="code-block">
<div>
<span class="type"><b>input</b></span>
:
The input file.
</div>
<div>
<span class="type"><b>output</b></span>
:
The output file.
</div>
<div>
<span class="type"><b>backup</b></span>
:
Decide whether to back up the original file.
</div>
<div>
<span class="type"><b>use-data-section</b></span>
:
This flag recycles the data section instead of creating a VxLang section.
</div>
<div>
<span class="type"><b>base-section-name</b></span>
:
Sets the default section name for VxLang data or code. <b>If empty, generate a random name.</b>
</div>
<div>
<span class="type"><b>map-file-path</b></span>
:
Use a MAP file to map binary information.
</div>
</div>
<p><b>virtualizer:</b></p>
<div class="code-block">
<div>
<span class="type"><b>entry-point</b></span>
:
Virtualizes the program entry point.
</div>
<div>
<span class="type"><b>virtualization-by-map</b></span>
:
Based on the function name written in the MAP file, virtualizes the entire function.
</div>
</div>
<p><b>obfuscator:</b></p>
<div class="code-block">
<div>
<span class="type"><b>entry-point</b></span>
:
Flattening the program entry point.
</div>
<div>
<span class="type"><b>obfuscation-by-map</b></span>
:
Based on the function name written in the MAP file, obfuscation the entire function.
</div>
<div>
<span class="type"><b>flattening-by-map</b></span>
:
Based on the function name written in the MAP file, flattening the entire function.
</div>
</div>
<p><b>protector:</b></p>
<div class="code-block">
<div>
<span class="type"><b>compress</b></span>
:
Compress the binary. If this flag is not set, only the VxLang core is added.
</div>
<div>
<span class="type"><b>symbol-data</b></span>
:
Decide if you want to keep the debug symbols.
</div>
<div>
<span class="type"><b>mutate-import-table</b></span>
:
Obfuscate the import table.
</div>
<div>
<span class="type"><b>vxlang-link-event</b></span>
:
SDK to route obfuscated or virtualized blocks through the VxLang core. This is freely controllable via VxLang extension modules.
</div>
<div>
<span class="type"><b>anti-tamper:enable</b></span>
:
Enable the anti-tamper feature included with VxLang.
</div>
<div>
<span class="type"><b>anti-tamper:hide-unused-memory</b></span>
:
Delete memory that is not referenced by the protected memory.
</div>
<div>
<span class="type"><b>anti-tamper:pause-protection</b></span>
:
Detect thread pauses.
</div>
<div>
<span class="type"><b>anti-tamper:message</b></span>
:
The message that is output when detected by the anti-tamper. If it is empty, the program will exit.
</div>
<div>
<span class="type"><b>extension</b></span>
:
VxLang extension modules developed by users.
</div>
<div>
<span class="type"><b>raw-data</b></span>
:
Enclose (compress) RAW data, such as other binaries (DLL/SYS), in the target binary. This can be freely controlled by the extension module.
</div>
<div>
<span class="type"><b>reflection:enable</b></span>
:
Reflex load the target binary.
</div>
<div>
<span class="type"><b>reflection:ldr-update</b></span>
:
Determines whether to update the target binaries in the PEB!LDR.
</div>
</div>
</section>
</div>
<footer>
VxLang Project at 0x999h
</footer>
</body>
</html>