Skip to content

Commit

Permalink
Merge pull request #72 from kernelwernel/dev
Browse files Browse the repository at this point in the history
1.3 release
  • Loading branch information
kernelwernel authored Apr 5, 2024
2 parents bd1225f + 0fbf112 commit 85bd00a
Show file tree
Hide file tree
Showing 7 changed files with 1,073 additions and 303 deletions.
22 changes: 20 additions & 2 deletions auxiliary/arg_checks.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
#
# ██╗ ██╗███╗ ███╗ █████╗ ██╗ ██╗ █████╗ ██████╗ ███████╗
# ██║ ██║████╗ ████║██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝
# ██║ ██║██╔████╔██║███████║██║ █╗ ██║███████║██████╔╝█████╗
# ╚██╗ ██╔╝██║╚██╔╝██║██╔══██║██║███╗██║██╔══██║██╔══██╗██╔══╝
# ╚████╔╝ ██║ ╚═╝ ██║██║ ██║╚███╔███╔╝██║ ██║██║ ██║███████╗
# ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝
#
# C++ VM detection library
#
# =============================================================
#
# this is just an internal script for CI/CD. The main goal is to
# check whether all of the techniques are actually updated since
# keeping track of the docs, the cli, and the table isn't easy,
# so I'm automating the checks in case I forget to update any.
#
# ===============================================================
#
# - Made by: @kernelwernel (https://github.com/kernelwernel)
# - Repository: https://github.com/kernelwernel/VMAware
# - License: GPL 3.0

import sys
import re
Expand All @@ -15,7 +33,7 @@ def fetch():
header_content.reverse()

# breakpoint
keyword = "const std::map<VM::u64, VM::technique> VM::table = {"
keyword = "const std::map<VM::u8, VM::core::technique> VM::core::table = {"

# fetch index of breakpoint
index_of_keyword = next((i for i, line in enumerate(header_content) if keyword in line), None)
Expand All @@ -36,7 +54,7 @@ def filter(raw_content):
s.isspace() or
"//" in s or
";" in s or
"VM::technique" in s
"VM::core::technique" in s
)]

# strip all whitespace
Expand Down
5 changes: 3 additions & 2 deletions auxiliary/cpu_fuzzer.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@
* ╚████╔╝ ██║ ╚═╝ ██║██║ ██║╚███╔███╔╝██║ ██║██║ ██║███████╗
* ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝
*
* A C++ VM detection library
* C++ VM detection library
*
* ===============================================================
*
* This program serves as an internal tool for fuzzing cpuid values
* and comparing them between baremetal outputs and VM outputs.
*
* ===============================================================
*
* - Made by: @kernelwernel (https://github.com/kernelwernel)
* - Repository: https://github.com/kernelwernel/VMAware
* - License: GPL 3.0
*/


Expand Down
22 changes: 21 additions & 1 deletion auxiliary/updater.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
#
# ██╗ ██╗███╗ ███╗ █████╗ ██╗ ██╗ █████╗ ██████╗ ███████╗
# ██║ ██║████╗ ████║██╔══██╗██║ ██║██╔══██╗██╔══██╗██╔════╝
# ██║ ██║██╔████╔██║███████║██║ █╗ ██║███████║██████╔╝█████╗
# ╚██╗ ██╔╝██║╚██╔╝██║██╔══██║██║███╗██║██╔══██║██╔══██╗██╔══╝
# ╚████╔╝ ██║ ╚═╝ ██║██║ ██║╚███╔███╔╝██║ ██║██║ ██║███████╗
# ╚═══╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝
#
# C++ VM detection library
#
# ===============================================================
#
# This is an internal script to update the VMAware
# header file's banner automatically and much more reliably.
# For example, it'll update the line numbers for the sections
# the header, and other basic information.
# header, and other basic information.
#
# ===============================================================
#
# - Made by: @kernelwernel (https://github.com/kernelwernel)
# - Repository: https://github.com/kernelwernel/VMAware
# - License: GPL 3.0



def update(filename):
with open(filename, 'r') as vmaware_read:
Expand Down
Loading

0 comments on commit 85bd00a

Please sign in to comment.