Sign in to follow this  
Followers 0
Pottery

HWID

3 posts in this topic

Hey, does anyone know if it would be possible to get a PC's HWID codes through AutoIt? Thanks in advance.

Share this post


Link to post
Share on other sites

#2 ·  Posted (edited)

I use this simple code to generate a HWID

#include <string.au3>
MsgBox(64, "", _HWID())

func _HWID()
    $osdrive = StringLeft(@SystemDir, 3)
    $original = "0"&@CPUArch & @KBLayout & DriveGetSerial("C:\") & StringUpper(DriveGetType($osdrive)) & DriveSpaceTotal ($osdrive)
    $string2 = StringMid($original, Round(StringLen($original)/2), Round(StringLen($original)/2))
    $string2_mod = _StringToHex(_StringReverse($string2))
    $original = _StringEncrypt(1, $original, $string2_mod, 4)
    Return $original
EndFunc
Edited by IchBistTod

[center][/center][center]=][u][/u][/center][center][/center]

Share this post


Link to post
Share on other sites

Perfect, thanks

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