Sign in to follow this  
Followers 0
giangnguyen

HWID Snippet

1 post in this topic

Just a small snippet that I want to share :)

Func hwid()
    If StringInStr(@OSArch, "64") Then
        Global $das = RegRead("HKEY_LOCAL_MACHINE64\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winsat", "PrimaryAdapterString")
    Else
        Global $das = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winsat", "PrimaryAdapterString")
    EndIf
    $cpu = RegRead("HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0", "ProcessorNameString")
    $gpu = $das
    $bit = RegRead("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment", "PROCESSOR_ARCHITECTURE")
    $bat = RegRead("HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\BIOS", "BaseBoardProduct")
    $but = RegRead("HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\BIOS", "BaseBoardManufacturer")
    $final = _Crypt_HashData($cpu & $gpu & $bit & "jigglyboii" & $bat & $but, $CALG_SHA1)
    Return $final
EndFunc

For "jigglyboii", put anything there, it is just to prevent "some level of" spoofing. 

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0