-
Notifications
You must be signed in to change notification settings - Fork 0
ghwid.py
LopeKinz edited this page Jul 6, 2023
·
1 revision
ghwid.py
is a module used to retrieve the Hardware ID (HWID) of a system.
To use ghwid.py
, follow these steps:
-
Import the
subprocess
module:import subprocess
-
Import the
HWID
class fromghwid
:from ghwid import HWID
-
Call the
grab()
method of theHWID
class to retrieve the HWID:hwid = HWID.grab()
This will return the HWID as a string.
Here's an example that demonstrates how to use ghwid.py
:
import subprocess
from ghwid import HWID
hwid = HWID.grab()
print(hwid)
Output:
<HWID>