Skip to content

Commit b8b5de5

Browse files
committed
1.4 release
1 parent 69c8a58 commit b8b5de5

4 files changed

Lines changed: 2392 additions & 440 deletions

File tree

TODO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
- [ ] make a man file in markdown for the cli tool
3333
- [ ] implement smbios version technique [here](https://github.com/Print3M/Anti-VM/blob/eb524ed89e783b36c149acc450b2350d4198b06b/detectors.cpp#L88)
3434
- [ ] implement a display size technique for linux with EDID
35-
- [ ] implement a technique that matches the CPU product name and match it with a database of core counts for that specific CPU product
35+
- [X] implement a technique that matches the CPU product name and match it with a database of core counts for that specific CPU product
3636
- [ ] add usage example in the .hpp file directly below the banner
3737

3838
# Distant plans

auxiliary/updater.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ def update(filename):
8888
" * - start of internal VM detection techniques => line __TECHNIQUES__",
8989
" * - struct for internal core components => line __CORE__",
9090
" * - start of public VM detection functions => line __PUBLIC__",
91-
" * - start of externally defined variables => line __EXTERNAL__",
92-
" */",
93-
""
91+
" * - start of externally defined variables => line __EXTERNAL__"
9492
]
9593

9694
# replace the macro strings with the file line numbers

src/vmaware.hpp

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,36 @@
1919
* - Full credits: https://github.com/kernelwernel/VMAware#credits-and-contributors-%EF%B8%8F
2020
* - License: GPL-3.0
2121
*
22+
*
2223
* ================================ SECTIONS ==================================
23-
* - enums for publicly accessible techniques => line 252
24-
* - struct for internal cpu operations => line 447
25-
* - struct for internal memoization => line 684
26-
* - struct for internal utility functions => line 757
27-
* - struct for internal core components => line 5713
28-
* - start of internal VM detection techniques => line 1423
29-
* - start of public VM detection functions => line 5786
30-
* - start of externally defined variables => line 6053
24+
* - enums for publicly accessible techniques => line 282
25+
* - struct for internal cpu operations => line 480
26+
* - struct for internal memoization => line 772
27+
* - struct for internal utility functions => line 834
28+
* - struct for internal core components => line 7073
29+
* - start of internal VM detection techniques => line 1510
30+
* - start of public VM detection functions => line 7187
31+
* - start of externally defined variables => line 7487
32+
*
33+
*
34+
* ================================ EXAMPLE ==================================
35+
#include "vmaware.hpp"
36+
#include <iostream>
37+
38+
int main() {
39+
if (VM::detect()) {
40+
std::cout << "Virtual machine detected!" << std::endl;
41+
std::cout << "VM name: " << VM::brand() << std::endl;
42+
} else {
43+
std::cout << "Running in baremetal" << std::endl;
44+
}
45+
46+
std::cout << "VM certainty: " << (int)VM::percentage() << "%" << std::endl;
47+
}
48+
3149
*/
3250

51+
3352
#if (defined(_MSC_VER) || defined(_WIN32) || defined(_WIN64) || defined(__MINGW32__))
3453
#define MSVC 1
3554
#define LINUX 0

0 commit comments

Comments
 (0)