Skip to content

Commit 85bd00a

Browse files
authored
Merge pull request #72 from kernelwernel/dev
1.3 release
2 parents bd1225f + 0fbf112 commit 85bd00a

File tree

7 files changed

+1073
-303
lines changed

7 files changed

+1073
-303
lines changed

auxiliary/arg_checks.py

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
1+
#
2+
# ██╗ ██╗███╗ ███╗ █████╗ ██╗ ██╗ █████╗ ██████╗ ███████╗
3+
# ██║ ██║████╗ ████║██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝
4+
# ██║ ██║██╔████╔██║███████║██║ █╗ ██║███████║██████╔╝█████╗
5+
# ╚██╗ ██╔╝██║╚██╔╝██║██╔══██║██║███╗██║██╔══██║██╔══██╗██╔══╝
6+
# ╚████╔╝ ██║ ╚═╝ ██║██║ ██║╚███╔███╔╝██║ ██║██║ ██║███████╗
7+
# ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝
8+
#
9+
# C++ VM detection library
10+
#
11+
# =============================================================
12+
#
113
# this is just an internal script for CI/CD. The main goal is to
214
# check whether all of the techniques are actually updated since
315
# keeping track of the docs, the cli, and the table isn't easy,
416
# so I'm automating the checks in case I forget to update any.
17+
#
18+
# ===============================================================
19+
#
20+
# - Made by: @kernelwernel (https://github.com/kernelwernel)
21+
# - Repository: https://github.com/kernelwernel/VMAware
22+
# - License: GPL 3.0
523

624
import sys
725
import re
@@ -15,7 +33,7 @@ def fetch():
1533
header_content.reverse()
1634

1735
# breakpoint
18-
keyword = "const std::map<VM::u64, VM::technique> VM::table = {"
36+
keyword = "const std::map<VM::u8, VM::core::technique> VM::core::table = {"
1937

2038
# fetch index of breakpoint
2139
index_of_keyword = next((i for i, line in enumerate(header_content) if keyword in line), None)
@@ -36,7 +54,7 @@ def filter(raw_content):
3654
s.isspace() or
3755
"//" in s or
3856
";" in s or
39-
"VM::technique" in s
57+
"VM::core::technique" in s
4058
)]
4159

4260
# strip all whitespace

auxiliary/cpu_fuzzer.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@
66
* ╚████╔╝ ██║ ╚═╝ ██║██║ ██║╚███╔███╔╝██║ ██║██║ ██║███████╗
77
* ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝
88
*
9-
* A C++ VM detection library
9+
* C++ VM detection library
1010
*
1111
* ===============================================================
12-
12+
*
1313
* This program serves as an internal tool for fuzzing cpuid values
1414
* and comparing them between baremetal outputs and VM outputs.
1515
*
1616
* ===============================================================
1717
*
1818
* - Made by: @kernelwernel (https://github.com/kernelwernel)
1919
* - Repository: https://github.com/kernelwernel/VMAware
20+
* - License: GPL 3.0
2021
*/
2122

2223

auxiliary/updater.py

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,27 @@
1+
#
2+
# ██╗ ██╗███╗ ███╗ █████╗ ██╗ ██╗ █████╗ ██████╗ ███████╗
3+
# ██║ ██║████╗ ████║██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝
4+
# ██║ ██║██╔████╔██║███████║██║ █╗ ██║███████║██████╔╝█████╗
5+
# ╚██╗ ██╔╝██║╚██╔╝██║██╔══██║██║███╗██║██╔══██║██╔══██╗██╔══╝
6+
# ╚████╔╝ ██║ ╚═╝ ██║██║ ██║╚███╔███╔╝██║ ██║██║ ██║███████╗
7+
# ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝
8+
#
9+
# C++ VM detection library
10+
#
11+
# ===============================================================
12+
#
113
# This is an internal script to update the VMAware
214
# header file's banner automatically and much more reliably.
315
# For example, it'll update the line numbers for the sections
4-
# the header, and other basic information.
16+
# header, and other basic information.
17+
#
18+
# ===============================================================
19+
#
20+
# - Made by: @kernelwernel (https://github.com/kernelwernel)
21+
# - Repository: https://github.com/kernelwernel/VMAware
22+
# - License: GPL 3.0
23+
24+
525

626
def update(filename):
727
with open(filename, 'r') as vmaware_read:

0 commit comments

Comments
 (0)