kernelwernel / VMAware

VM detection library and tool
GNU General Public License v3.0
345 stars 36 forks source link

Windows vm detect vis 'port connector' #46

Open unusual-aspect opened 6 months ago

unusual-aspect commented 6 months ago

In windows you can use powershell/wmi to get 'ports'

On bare metal:

--- CODE -- (as is not formatting very well) PS C:\Users\admin> powershell -Command "Get-WmiObject Win32_PortConnector"

Tag : Port Connector 0 ConnectorType : {61} SerialNumber : ExternalReferenceDesignator : PS2Mouse PortType : 14 --- CODE --

On VM this return empty value

kernelwernel commented 6 months ago

I really like this idea, I'm quite busy today but I'll definitely try to implement this whenever I have the time. Thanks! :)