View Full Version : FreePlugin: HardwareFingerprintDLL
RizlaUK
10-09-2007, 08:04 AM
Hi Guys,
heres a small dll that can get a unique identifier for the target system,
this is useful for those of you that want to secure your apps with serial numbers and such,
when i get time i might develop this in to a full scale registration system for ams user apps.....but it wont be free :huh
this dll is simple to use, call the dll with the below code (no arguments are needed)
result = DLL.CallFunction("AutoPlay\\Docs\\HardwareFingerprintDLL.dll", "GetHardwareFingerprint", "", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL);
and it will return a string EG: {3a539840-6a70-11db-887c-806e6f6e6963} (Identifier for my system)
Have Fun :lol
Dermot
10-09-2007, 11:51 AM
Thanks Dean, very nice. Just one question. Will the fingerprint change if the user reformats their hard drive?
RizlaUK
10-09-2007, 12:41 PM
np Dermot,
The number only changes if any hardware is changed, formating a hdd should not change the results, but a new hdd/soundcard/ram will change the results
I hit a bug with this, testing on my laptop, the GUID was different when docked/undocked (as theres more hardware when docked so a diff guid) so i added some arguments to get the current hardware profile name to, with some ams trickery that should cover any unexpected results.
heres a updated example apz
-- arguments: 0 = GUID, 1 = Profile name
-- returns: "0" = error, else guid or profile name is returned
GUID = DLL.CallFunction("AutoPlay\\Docs\\HardwareFingerprintDLL.dll", "GetHardwareFingerprint", 0, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL);
pName = DLL.CallFunction("AutoPlay\\Docs\\HardwareFingerprintDLL.dll", "GetHardwareFingerprint", 1, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL);
if GUID ~= "0" and pName ~= "0" then
Dialog.Message("Test", "The global unique system identifier (GUID) for this system is\r\n\r\n"..GUID.."\r\nProfile: "..pName, MB_OK, MB_ICONNONE, MB_DEFBUTTON1)
end
macko
10-10-2007, 01:00 AM
i want to determine the hardwarefingerprint for each drive how can i do that? for example: i have two separate hard disk drives in my pc? thx in advance
qwerty
10-10-2007, 03:38 AM
@macko - try interogating the drive for it's serial number and comparing that against the known serial number
@RizlaUK - thanks for this, i think it will come in handy, not for protection in the manner you are thinking, but by using it to identify your own pc during runtime of your project to allow extra options. Say for example i have an extra page in my project containing control options or debug tools, i can control that page's availability based on whether the project is running on my pc or not..... handy if you run protection on your project that restricts the user access to certain things ... in my case i close the temp folder as soon as it is opened in a small attempt to keep the curious out of the docs folder when running in web executable mode ! so with this i could easily disable that script :)
EDIT: macko look here for more info
http://www.indigorose.com/forums/showthread.php?t=21420
RizlaUK
10-10-2007, 05:44 AM
@macko, that is not possible with this dll, it retrieves a GUID (global unique identifier) that is present for the system, i am working of a dll to get the drive hardware serial but im having some issues with it........when its ready ill post it
@qwerty, good idea, see i hadent thought of a use like that, i could use it myself for the very same thing (wich now uses a reg key)
Glad you have a use for my dll :yes
Imagine Programming
06-20-2008, 10:13 AM
Thanks rizla:) another handy tool
DaSoulRed
11-17-2009, 04:59 PM
It will be great to have... this dll
i dont see the download link...
qwerty
11-18-2009, 03:22 AM
i have this somewhere, unfortunately it's on one of the storage drives in my main pc, which died on me the other day, it'll be a few days before i get the bits to rebuild, and i'm away all of next week, so drop me a pm, and when i have things back up and running i'll upload it for you.
Good reminder that i'll need to update my apps that use this after my rebuild :lol
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.