Skip to content

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

Notifications You must be signed in to change notification settings

basedpill/detectvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published