Sign in to follow this  
Followers 0
Oldschool

UUID mechanics

5 posts in this topic

I read some threads:

http://www.autoitscript.com/forum/index.ph...=18126&st=0

http://www.autoitscript.com/forum/index.ph...c=21883&hl=

http://www.autoitscript.com/forum/index.ph...mp;#entry131508

I guess the concensus is to use this structure to obtain some values from \root\CIMV2

$objWMIService = ObjGet ("winmgmts:\\" & $com & "\root\CIMV2")
    $colItems = $objWMIService.ExecQuery ("SELECT * FROM Win32_Processor", "WQL", 0x10 + 0x20)

But how do you store these values to ensure integrity?

The first time you run the program you can write them to an ini file persay with something like:

If Not FileExists(config.ini)  Then
    IniWrite($aboveValues)
Endif

And then compare the values from the file to values from \root\CIMV2

Is there a way to only iniWrite() that file once?

In other words how do you store this information securely?

Share this post


Link to post
Share on other sites



Do you want to encrypt the inifile or do you want to create a readonly ini file ?

Emiel


Best regards,Emiel Wieldraaijer

Share this post


Link to post
Share on other sites

I want to store the UUID generated at 1st run in a secure way.

For example if my program generates an encrypted ini file with UUID in it @ 1st run, if there is no ini file already @ that location, then that does not really help me.

Because if you delete this ini file, the whole verification process fall apart.

What will prevent a user from copying my script to another machine??

Share this post


Link to post
Share on other sites

Store the value in the registry instead?


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

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