Skip to content

Commit efaec3c

Browse files
author
Requiem
committed
2 parents 02616fb + ba003a0 commit efaec3c

5 files changed

Lines changed: 107 additions & 100 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,5 @@ list.txt
6868
/.vs/VSWorkspaceState.json
6969
TODO.md
7070
auxiliary/path*
71-
packages/
71+
packages/
72+
auxiliary/test.cpp

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ elseif(APPLE)
9191
elseif(LINUX)
9292
if(CMAKE_BUILD_TYPE MATCHES "Debug")
9393
message(STATUS "Build set to debug mode")
94-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fmax-errors=5 -DDEBUG -O0 -fsanitize=address,leak")
94+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -DDEBUG -O0 -fsanitize=address,leak")
9595
elseif(CMAKE_BUILD_TYPE MATCHES "Release")
9696
message(STATUS "Build set to release mode")
9797
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g0 -O2")

docs/documentation.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ struct vmaware {
421421
std::string type;
422422
std::string conclusion;
423423
bool is_vm;
424+
bool is_hardened;
424425
std::uint8_t percentage;
425426
std::uint8_t detected_count;
426427
std::uint8_t technique_count;
@@ -680,8 +681,8 @@ This is the table of all the brands the lib supports.
680681
|------|-------------|-------------|
681682
| `VM::ALL` | This will enable all the technique flags, including checks that are disabled by default. | |
682683
| `VM::DEFAULT` | This represents a range of flags which are enabled if no default argument is provided. |
683-
| `VM::MULTIPLE` | This will basically return a `std::string` message of what brands could be involved. For example, it could return "`VMware or VirtualBox`" instead of having a single brand string output. | VM::brand() |
684-
| `VM::HIGH_THRESHOLD` | This will set the threshold bar to confidently detect a VM by 3x higher. | VM::detect() and VM::percentage() |
684+
| `VM::MULTIPLE` | This will basically return a `std::string` message of which brands could be involved. For example, it could return "`VMware or VirtualBox`" instead of having a single brand string output. | VM::brand() |
685+
| `VM::HIGH_THRESHOLD` | This will set the threshold bar to confidently detect a VM by 2x higher. | VM::detect() and VM::percentage() |
685686
| `VM::DYNAMIC` | This will add 8 options to the conclusion message rather than 2, each with their own varying likelihoods. | VM::conclusion() |
686687
| `VM::NULL_ARG` | Does nothing, meant as a placeholder flag mainly for CLI purposes. It's best to ignore this.| |
687688

src/cli.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,13 +1284,13 @@ int main(int argc, char* argv[]) {
12841284
const std::vector<std::string> args(argv + 1, argv + argc); // easier to handle args this way
12851285
const u32 arg_count = static_cast<u32>(argc - 1);
12861286

1287-
// this was removed from the lib due to ethical
1288-
// concerns, so it's added in the CLI instead
1287+
// these were removed from the lib due to ethical
1288+
// concerns, so it's only present in the CLI instead
12891289
VM::add_custom(65, anyrun_driver);
12901290
VM::add_custom(35, anyrun_directory);
12911291

12921292
if (arg_count == 0) {
1293-
general(VM::NULL_ARG, VM::NULL_ARG, VM::DYNAMIC);
1293+
general(VM::NULL_ARG, VM::NULL_ARG, VM::NULL_ARG);
12941294
return 0;
12951295
}
12961296

@@ -1398,6 +1398,8 @@ int main(int argc, char* argv[]) {
13981398
const VM::enum_flags all = (arg_bitset.test(ALL) ? VM::ALL : VM::NULL_ARG);
13991399
const VM::enum_flags dynamic = (arg_bitset.test(DYNAMIC) ? VM::DYNAMIC : VM::NULL_ARG);
14001400

1401+
std::cout << "\n\n\n\nDYNAMIC: " << static_cast<u32>(dynamic) << "\n\n\n";
1402+
14011403
if (returners > 0) { // at least one of the options are set
14021404
if (returners > 1) { // more than 2 options are set
14031405
std::cerr << "--stdout, --percent, --detect, --brand, --type, and --conclusion must NOT be a combination, choose only a single one\n";

0 commit comments

Comments
 (0)