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
624import sys
725import 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
0 commit comments