Skip to content

Commit

Permalink
fixed flag to string thingy
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelwernel committed Aug 22, 2024
1 parent 228f860 commit 9613c85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions auxiliary/vmtest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@

int main(void) {
//const bool test1 = VM::detect();
//const bool test2 = VM::detect(VM::ALL);
const bool test2 = VM::detect(VM::ALL);
//const bool test3 = VM::detect(VM::DEFAULT);
//const bool test4 = VM::detect(VM::DEFAULT, VM::ALL);
//const bool test5 = VM::detect(VM::DEFAULT, VM::DISABLE(VM::RDTSC));
//const bool test6 = VM::detect(VM::DEFAULT, VM::DISABLE(VM::RDTSC), VM::EXTREME);
//const bool test7 = VM::detect(VM::NO_MEMO, VM::EXTREME, VM::MULTIPLE, VM::ENABLE_HYPERV_HOST);
//const std::string test8 = VM::brand();
const uint8_t test9 = VM::percentage(VM::SPOOFABLE);
std::cout << (int)test9 << "\n";
//const uint8_t test9 = VM::percentage(VM::SPOOFABLE);
//std::cout << (int)test9 << "\n";
return 0;
}
2 changes: 1 addition & 1 deletion src/vmaware.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8935,7 +8935,7 @@ struct VM {
return false;
}

debug("SMBIOS_VM_BIT: ", "content.at(19)=", static_cast<int>(content.at(19)));
debug("SMBIOS_VM_BIT: ", "content.at(19) = ", static_cast<int>(content.at(19)));

return (content.at(19) & (1 << 4));
#endif
Expand Down

0 comments on commit 9613c85

Please sign in to comment.