Skip to content

ghwid.py

LopeKinz edited this page Jul 6, 2023 · 1 revision

ghwid.py

ghwid.py is a module used to retrieve the Hardware ID (HWID) of a system.

Usage

To use ghwid.py, follow these steps:

  1. Import the subprocess module:

    import subprocess
  2. Import the HWID class from ghwid:

    from ghwid import HWID
  3. Call the grab() method of the HWID class to retrieve the HWID:

    hwid = HWID.grab()

    This will return the HWID as a string.

Example

Here's an example that demonstrates how to use ghwid.py:

import subprocess
from ghwid import HWID

hwid = HWID.grab()
print(hwid)

Output:

<HWID>

Clone this wiki locally