Skip to content

Commit

Permalink
Merge pull request #21 from kernelwernel/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
kernelwernel authored Dec 30, 2023
2 parents d460749 + 393b690 commit b34d42c
Show file tree
Hide file tree
Showing 3 changed files with 323 additions and 53 deletions.
5 changes: 5 additions & 0 deletions docs/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,11 @@ VMAware provides a convenient way to not only check for VMs, but also have the f
| `VM::VBOX_FOLDERS` | Check for VirtualBox-specific string for shared folder ID | Windows | 45% | |
| `VM::VBOX_MSSMBIOS` | Check VirtualBox MSSMBIOS registry for VM-specific strings | Windows | 75% | |
| `VM::MAC_HYPERTHREAD` | Check if hyperthreading core count matches with physical expectations | MacOS | 10% | |
| `VM::MAC_MEMSIZE` | Check if memory is too low for MacOS system | MacOS | 30% | |
| `VM::MAC_IOKIT` | Check MacOS' IO kit registry for VM-specific strings | MacOS | 80% | |
| `VM::IOREG_GREP` | Check for VM-strings in ioreg commands for MacOS | MacOS | 75% | |
| `VM::MAC_SIP` | Check if System Integrity Protection is disabled (likely a VM if it is) | MacOS | 85% | |


<br>

Expand Down
4 changes: 4 additions & 0 deletions src/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ int main(int argc, char* argv[]) {
checker(VM::VBOX_FOLDERS, "VirtualBox shared folders");
checker(VM::VBOX_MSSMBIOS, "VirtualBox MSSMBIOS");
checker(VM::MAC_HYPERTHREAD, "MacOS hyperthreading");
checker(VM::MAC_MEMSIZE, "MacOS hw.memsize");
checker(VM::MAC_IOKIT, "MacOS registry IO-kit");
checker(VM::IOREG_GREP, "IO registry grep");
checker(VM::MAC_SIP, "MacOS SIP");
std::printf("\n");

std::cout << "VM brand: " << (std::string(VM::brand()) == "Unknown" ? red : green) << VM::brand() << ansi_exit << "\n";
Expand Down
Loading

0 comments on commit b34d42c

Please sign in to comment.