sudokuhk / detectvm

Small program to detect if it is running on a virtual machine (windows only) and self deletes if it is.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VMware and VBox Detector πŸ‘‹

Swagger Validator GitHub last commit rating

✨ Overview ✨

  • Can detect VMware (If VMware tools are installed)
  • Can detect Oracle VirtualBox
  • Can self delete if a vm is detected
  • Header file is included with all the functions in a namespace DetectVM

Checks for the psuedo device \\.\VBoxMiniRdrDN which exists in virtualbox vms.
Checks for the vmware tools registry SOFTWARE\VMware, Inc.\VMware Tool .
Self Delete function spawns a hidden cmd shell which gets the file path and deletes it.

Prerequisites

Uses standard libraries
Can be built using g++ (Sometimes cannot run on VMs using gcc unsure why)

g++ antivm.cpp -o antivm.exe -static-libgcc -static-libstdc++

Demo πŸŽ₯

VMware Demonstration

VMware Demonstration

VirtualBox Demonstration

VirtualBox Demonstration

Author

  • char*#1337 on discord
  • mayhapsDev on GitHub

🀝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check

Show your support

Give a ⭐️ if this project helped you!

To-Do

  • Add KVM detection
  • Add Hyper-V detection
  • Add QEMU detection
  • Improve VMware detection

About

Small program to detect if it is running on a virtual machine (windows only) and self deletes if it is.


Languages

Language:C++ 100.0%