{"id":19011482,"url":"https://github.com/perrywerneck/vmdetect","last_synced_at":"2025-04-22T23:26:52.575Z","repository":{"id":39709406,"uuid":"416031337","full_name":"PerryWerneck/vmdetect","owner":"PerryWerneck","description":"A comprehensive toolkit for detecting virtual machine environments","archived":false,"fork":false,"pushed_at":"2025-02-16T17:11:25.000Z","size":269,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-17T14:40:41.990Z","etag":null,"topics":["available-on-pypi","linux","virtual-machine","windows"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PerryWerneck.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-11T17:51:06.000Z","updated_at":"2025-01-18T14:34:40.000Z","dependencies_parsed_at":"2023-02-09T15:50:16.152Z","dependency_job_id":"866190d0-4669-404f-b2bc-5a9551879996","html_url":"https://github.com/PerryWerneck/vmdetect","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerryWerneck%2Fvmdetect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerryWerneck%2Fvmdetect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerryWerneck%2Fvmdetect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerryWerneck%2Fvmdetect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PerryWerneck","download_url":"https://codeload.github.com/PerryWerneck/vmdetect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250339303,"owners_count":21414335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["available-on-pypi","linux","virtual-machine","windows"],"created_at":"2024-11-08T19:14:36.760Z","updated_at":"2025-04-22T23:26:52.545Z","avatar_url":"https://github.com/PerryWerneck.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vmdetect\n\nA comprehensive toolkit for detecting virtual machine environments. Available as a cross-platform library (Python, C, C++) and command-line tool for Windows and Linux, it employs multiple techniques to reliably identify various virtualization platforms (e.g., VMware, VirtualBox, Hyper-V, QEMU).\n\nBased on py_vmdetect sources from https://github.com/kepsic/py_vmdetect\n\n![Platform: Linux/Windows](https://img.shields.io/badge/Platform-Linux/Windows-blue.svg)\n[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n[![CodeQL Advanced](https://github.com/PerryWerneck/vmdetect/actions/workflows/codeql.yml/badge.svg)](https://github.com/PerryWerneck/vmdetect/actions/workflows/codeql.yml)\n[![build result](https://build.opensuse.org/projects/home:PerryWerneck:udjat/packages/vmdetect/badge.svg?type=percent)](https://build.opensuse.org/package/show/home:PerryWerneck:udjat/vmdetect)\n[![PyPI version](https://badge.fury.io/py/virtualmachine.svg)](https://badge.fury.io/py/virtualmachine)\n\n## Installation\n\n### Pre build packages\n\nYou can download installation package for supported linux distributions in [Open Build Service](https://software.opensuse.org/download.html?project=home%3APerryWerneck%3Audjat\u0026package=vmdetect)\n\n[\u003cimg src=\"https://raw.githubusercontent.com/PerryWerneck/pw3270/develop/branding/obs-badge-en.svg\" alt=\"Download from open build service\" height=\"80px\"\u003e](https://software.opensuse.org/download.html?project=home%3APerryWerneck%3Audjat\u0026package=vmdetect)\n[\u003cimg src=\"https://github.com/PerryWerneck/PerryWerneck/blob/master/badges/msys-msvc-python-badge.svg\" alt=\"Download from githut\" height=\"80px\"\u003e](https://github.com/PerryWerneck/vmdetect/releases)\n[\u003cimg src=\"https://raw.githubusercontent.com/PerryWerneck/PerryWerneck/master/badges/pypi-badge.svg\" alt=\"Download from pypi\" height=\"80px\"\u003e](https://pypi.org/project/virtualmachine)\n\n\n## Examples:\n\n### Command line\n\n```shell\nvmdetect\necho $?\n```\n\n```shell\nvmdetect -n\nBare Metal\n```\n\n```shell\nvmdetect -i\n0\n```\n\n### Python\n\n```python\nimport virtualmachine\nprint(virtualmachine.name())\n```\n\n```python\nimport virtualmachine\nprint(virtualmachine.id())\n```\n\n### C++\n\n```C\n#include \u003cvmdetect/virtualmachine.h\u003e\n#include \u003ciostream\u003e\n\nusing namespace std;\n\nint main(int argc, char **argv) {\n\tVirtualMachine vm;\n\n\tif(vm) {\n\t\tcout \u003c\u003c \"Running on '\" \u003c\u003c vm \u003c\u003c \"' virtual machine\" \u003c\u003c endl;\n\t\treturn 1;\n\t}\n\n\treturn 0;\n}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperrywerneck%2Fvmdetect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperrywerneck%2Fvmdetect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperrywerneck%2Fvmdetect/lists"}