Skip to content

Commit

Permalink
Merge pull request #56 from kernelwernel/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
kernelwernel authored Mar 20, 2024
2 parents 4b2d2a5 + 4a2ff90 commit 7bb1374
Show file tree
Hide file tree
Showing 7 changed files with 5,691 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ release_notes.txt
*.bk
cmake-build-*/
.idea/*
*.bkp
*.bkp
*copy.hpp
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ And if you found this project useful, a star would be appreciated :)
- [Requiem](https://github.com/NotRequiem)
- [Alex](https://github.com/greenozon)
- [Marek Knápek](https://github.com/MarekKnapek)
- [Vladyslav Miachkov](https://github.com/fameowner99)
- [(Offensive Security) Danny Quist](chamuco@gmail.com)
- [(Offensive Security) Val Smith](mvalsmith@metasploit.com)

<br>

Expand Down
10 changes: 7 additions & 3 deletions docs/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,13 @@ VMAware provides a convenient way to not only check for VMs, but also have the f
| `VM::QEMU_DIR` | Check for QEMU-specific blacklisted directories | Windows | 45% | | GPL |
| `VM::VPC_PROC` | Check for VPC processes | Windows | 30% | | |
| `VM::VPC_INVALID` | Check for official VPC method | Windows | 75% | | |
| `VM::SIDT` | Check for sidt instruction method | Linux, Windows | 60% | | |
| `VM::SLDT` | Check for sldt instruction method | Windows | 25% | | |
| `VM::SGDT` | Check for sgdt instruction method | Windows | 50% | | |
| `VM::SIDT` | Check for sidt instruction method | Linux, Windows | 30% | | |
| `VM::SGDT` | Check for sgdt instruction method | Windows | 30% | | |
| `VM::SLDT` | Check for sldt instruction method | Linux, Windows | 15% | | |
| `VM::OFFSEC_SIDT` | Check for Offensive Security SIDT method | Windows | 60% | | |
| `VM::OFFSEC_SGDT` | Check for Offensive Security SGDT method | Windows | 60% | | |
| `VM::OFFSEC_SLDT` | Check for Offensive Security SLDT method | Windows | 20% | | |
| `VM::HYPERV_BOARD` | Check for Hyper-V string in motherboard | Windows | 45% | | |
<br>
Expand Down
6 changes: 3 additions & 3 deletions src/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
| filename | purpose |
|----------|---------|
| file | purpose |
|------|---------|
| `cli.cpp` | Entire CLI tool code |
| `vmaware.hpp` | Official and original library header in GPL-3.0 (most likely what you're looking for) |
| `vmaware_mit.hpp` | Same as above but in MIT (might be less accurate than the original GPL-3.0 one) |
| `vmaware_mit.hpp` | Same as above but in MIT (might be less accurate than the original GPL-3.0 header) |
6 changes: 5 additions & 1 deletion src/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,12 @@ int main(int argc, char* argv[]) {
checker(VM::VPC_PROC, "VPC processes");
checker(VM::VPC_INVALID, "VPC invalid instructions");
checker(VM::SIDT, "SIDT");
checker(VM::SLDT, "SLDT");
checker(VM::SGDT, "SGDT");
checker(VM::SLDT, "SLDT");
checker(VM::OFFSEC_SIDT, "Offensive Security SIDT");
checker(VM::OFFSEC_SGDT, "Offensive Security SGDT");
checker(VM::OFFSEC_SLDT, "Offensive Security SLDT");
checker(VM::HYPERV_BOARD, "Hyper-V motherboard");
std::printf("\n");

const std::string brand = VM::brand();
Expand Down
Loading

0 comments on commit 7bb1374

Please sign in to comment.