hightower Posted August 11, 2011 Share Posted August 11, 2011 (edited) Hello Guys, i try to extract the Installationkey of Office 2010 from the Registry. In Version 2010 the range has been modified by Microsoft from 52 - 66 to 808 to 822. Can anyone help me to modify this script? -snip- Regards Edited August 11, 2011 by Jos code removed Link to comment Share on other sites More sharing options...
Developers Jos Posted August 11, 2011 Developers Share Posted August 11, 2011 So, how is this legitimate? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
GEOSoft Posted August 11, 2011 Share Posted August 11, 2011 It should be legit Jos. It's often used for recovering the Product Key which will still only work with the same install disk and still has to pass activation if activation was required to begin with. Often used by people who lose their COA. 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...
storme Posted August 11, 2011 Share Posted August 11, 2011 It should be legit Jos. It's often used for recovering the Product Key which will still only work with the same install disk and still has to pass activation if activation was required to begin with.Often used by people who lose their COA.Yep I use key recovery on customers computers all the time, when the stickers are torn or worn or they have just plain lost the key.Just my 2CJohn Some of my small contributions to AutoIt Browse for Folder Dialog - Automation SysTreeView32 | FileHippo Download and/or retrieve program information | Get installedpath from uninstall key in registry | RoboCopy function John Morrison aka Storm-E Link to comment Share on other sites More sharing options...
hightower Posted August 11, 2011 Author Share Posted August 11, 2011 I would use the code/function for harvest my Computer-Configuration on the Network! not for illegal use eg.. Link to comment Share on other sites More sharing options...
Bert Posted August 11, 2011 Share Posted August 11, 2011 So, how is this legitimate?I can see many legit uses for this. Personally I use this app to audit the PC:http://www.belarc.com/free_download.htmlOne of the things it does is gets the keys to the apps you have installed. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Developers Jos Posted August 11, 2011 Developers Share Posted August 11, 2011 Ok, thanks for the clarifications. Feel free to post your code again in this thread. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
hightower Posted August 11, 2011 Author Share Posted August 11, 2011 I can see many legit uses for this. Personally I use this app to audit the PC:http://www.belarc.com/free_download.htmlOne of the things it does is gets the keys to the apps you have installed.Hey,thx - but sorry - i would like to use non 3rd party application. we have written in autoit our own application. has anobody some idea to decode the office 2010 key? Link to comment Share on other sites More sharing options...
GEOSoft Posted August 11, 2011 Share Posted August 11, 2011 Can you repost your code so we can take a look at it again? 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...
hightower Posted August 11, 2011 Author Share Posted August 11, 2011 Yes, this is the VBS-Code: expandcollapse popupFunction decodeKey2(iValues, strProduct) Dim arrDPID arrDPID = Array() ' <--------------- extract bytes 52-66 of the DPID --------------------------> For i = 808 to 822 ReDim Preserve arrDPID( UBound(arrDPID) + 1 ) arrDPID( UBound(arrDPID) ) = iValues(i) Next ' <--------------- Create an array to hold the valid characters for a microsoft --------------------------> Dim arrChars arrChars = Array("B","C","D","F","G","H","J","K","M","P","Q","R","T","V","W","X","Y","2","3","4","6","7","8","9") ' <--------------- The clever bit !!! (decode the base24 encoded binary data)--------------------------> For i = 24 To 0 Step -1 k = 0 For j = 14 To 0 Step -1 k = k * 256 Xor arrDPID(j) arrDPID(j) = Int(k / 24) k = k Mod 24 Next strProductKey = arrChars(k) & strProductKey If i Mod 5 = 0 And i <> 0 Then strProductKey = "-" & strProductKey Next ReDim Preserve foundKeys( UBound(foundKeys) + 1 ) foundKeys( UBound(foundKeys) ) = strProductKey strKey = UBound(foundKeys) '' write output data inserted in XML' Wscript.Echo "<OFFICEPACK>" Wscript.Echo "<OFFICEKEY>" & foundKeys(strKey)& "</OFFICEKEY>" Wscript.Echo "<OFFICEVERSION>" & strProduct & "</OFFICEVERSION>" Wscript.Echo "</OFFICEPACK>" End Function Link to comment Share on other sites More sharing options...
hightower Posted August 12, 2011 Author Share Posted August 12, 2011 ? Link to comment Share on other sites More sharing options...
JFX Posted August 12, 2011 Share Posted August 12, 2011 Should give you want you need: Link to comment Share on other sites More sharing options...
Bert Posted August 12, 2011 Share Posted August 12, 2011 Should give you want you need: Nice work! The Vollatran project My blog: http://www.vollysinterestingshit.com/ 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