Oldschool Posted November 24, 2007 Share Posted November 24, 2007 I read some threads:http://www.autoitscript.com/forum/index.ph...=18126&st=0http://www.autoitscript.com/forum/index.ph...c=21883&hl=http://www.autoitscript.com/forum/index.ph...mp;#entry131508I 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) EndifAnd then compare the values from the file to values from \root\CIMV2Is there a way to only iniWrite() that file once?In other words how do you store this information securely? Link to comment Share on other sites More sharing options...
Emiel Wieldraaijer Posted November 24, 2007 Share Posted November 24, 2007 Do you want to encrypt the inifile or do you want to create a readonly ini file ? Emiel Best regards,Emiel Wieldraaijer Link to comment Share on other sites More sharing options...
Oldschool Posted November 24, 2007 Author Share Posted November 24, 2007 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 comment Share on other sites More sharing options...
Emiel Wieldraaijer Posted November 24, 2007 Share Posted November 24, 2007 hmm difficultYou can add a serial number to your software.. but this will not prevent users from installing it on multiple machines .. http://www.autoitscript.com/forum/index.ph...l=serial+number Best regards,Emiel Wieldraaijer Link to comment Share on other sites More sharing options...
GEOSoft Posted November 24, 2007 Share Posted November 24, 2007 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!" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now