Jump to content

Recommended Posts

I read some threads:




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

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?

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??

Link to post
Share on other sites

Store the value in the registry instead?


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: - 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!"

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...