Windows 8 Product Key Decoding

Discussion in 'Windows 8' started by Bob65536, Sep 20, 2012.

Thread Status:
Not open for further replies.
  1. janek2012

    janek2012 MDL Member

    Dec 29, 2008
    216
    996
    10
    #61 janek2012, Sep 29, 2012
    Last edited by a moderator: Apr 20, 2017
    Bob65536, could you please tell me how to get the key0 as string in KeyEncode function to let me for example write it to file? I am getting the memory address instead :(
    I have an idea of checking if key is online-valid but I will have to test it first.

    The idea is to use modified slmgr.vbs script (which will return [I mean the process exit code] objProduct.LicenseStatus [has to be 1] after trying to activate system with generated key).
    Pseudocode:
    Code:
    DO
    {
    Generate the key
    Run "wscript slmgr.vbs /ipk KEY"
    Run "wscript slmgr.vbs /ato"
    Set ERRORCODE = EXITCODE
    }
    While(ERRORCODE != 1)
    ECHO "SUCCESS - your key is ..."
    
    Note that you can not use standard slmgr.vbs because it is not returning any value and is posting messages to user - you have to remove messages and add the return value to the script.
    Also, note that you have to generate a key which is supported by your system.
    WARNING: This method will break your current activation so create a backup.
    WARNING: This method may DDoS MS servers so it is illegal.
    This method is useful for MAK keys because if you use it for Retail key, you will not be able to share it with people since it will not work anymore (online). For MAK keys, you will just use one of many activation counts :).
     
  2. Jachra

    Jachra MDL Member

    Apr 5, 2010
    199
    69
    10
    #62 Jachra, Sep 29, 2012
    Last edited by a moderator: Apr 20, 2017
    Janek2012,

    You can do that with a simple For...Next loop.

    Code:
    Example in vbs
    
    Dim Pkey As String
    
    For i = 0 to 30 Step 1
       Pkey = Pkey & Key0(i)
    Next
    Why not port the code needed from slmgr.vbs to what ever you need?
    /ipk uses the functions:
    • Private Sub InstallProductKey(strProductKey)
    • Function GetIsPrimaryWindowsSKU(objProduct)
    • Function GetProductCollection(strSelect, strWhere)
    • Function GetServiceObject(strQuery)
    • Private Sub OutputIndeterminateOperationWarning(objProduct)
    • Private Function ExistsRegistryKey(hKey, Private Function SetRegistryStr(hKey, strKeyPath, strValueName, strValue)
    • Private Function DeleteRegistryValue(hKey, strKeyPath, strValueName)
    • Private Sub QuitWithError(errNum)

    /ato uses the functions:
    • Private Sub ActivateProduct(strActivationID)
    • Function GetServiceObject(strQuery)
    • Function GetProductCollection(strSelect, strWhere)
    • Private Function CheckProductForCommand(objProduct, strActivationID)
    • Function GetIsPrimaryWindowsSKU(objProduct)
    • Private Sub OutputIndeterminateOperationWarning(objProduct)
    • Private Function IsMAK(strDescription)
    • Private Sub DisplayActivatedStatus(objProduct)
     
  3. janek2012

    janek2012 MDL Member

    Dec 29, 2008
    216
    996
    10
    Jachra, the loop I posted should be do...while or while because it does not build key but tests it against online activation (so it should be [almost] endless loop) and it should be in the keygen - not in the vbs script.
    Also - It is a good idea to just create a script only with needed functions.
     
  4. Jachra

    Jachra MDL Member

    Apr 5, 2010
    199
    69
    10
    Janek2012,

    The source from KeyInfo could be ported to C# or VB.Net. The routines from the VBScript could also be converted to C# or VB.Net in new code that does almost the same. The app can then be just a systray application.

    But also understand that when more people run such an application, it is effectively doing a DDoS against Microsoft servers. They might not be happy with such a action.
     
  5. user_hidden

    user_hidden MDL Expert

    Dec 18, 2007
    1,041
    1,078
    60

    thanks Bob65536

    for those interested you can compile with VS2010 so VC++2012 is not required to run the cmdline
     
  6. ipxsynergy

    ipxsynergy MDL Novice

    Nov 3, 2012
    1
    0
    0
    This thread is way over my head, but I figured it was worth signing up and asking you guys my question. I lost my windows 8 key already and because I bought it from a non-MS store, MS says there is nothing they can do. I am on windows 8 right now and have my disc, but I can only see the last 5 digits of my product key. Is there any way to view my product key? I tried following this thread in hopes of finding an answer, but this is just above and beyond my PC knowledge. If you are bored and feel like helping the noob in the room.... :) Thanks guys
     
  7. Tito

    Tito Admin / Adviser
    Staff Member

    Nov 30, 2009
    19,091
    19,920
    340
  8. coleoptere2007

    coleoptere2007 MDL Guru

    Apr 8, 2008
    3,291
    1,935
    120
    could you please stop spamming with the same answer !!:mad:
     
  9. XRobRoyX

    XRobRoyX MDL Junior Member

    Nov 17, 2012
    55
    9
    0
    I have tested a bunch of the programs to retrieve your licensekey from Windows 8. I have found that a lot of them in fact find a key, but it is not the correct one.

    The program SIW gtopala.com/ can retrieve it and it is the correct one.
    You can not use the old free version. You need the Technician's Version or Pro Business Edition.

    I´m a new member and there for not allowed to post links so please just Google SIW
     
  10. Please-8

    Please-8 MDL Junior Member

    Sep 12, 2012
    99
    60
    0
    You can use this script. Save it as vbs file and double click on it to get the Windows 8 product key:
    forums.mydigitallife.net/threads/20816-The-Ultimate-PID-Checker?p=584892&viewfull=1#post584892
     
  11. junes977

    junes977 MDL Novice

    Nov 21, 2012
    8
    1
    0
    Thank you bro vary nice
     
  12. Stannieman

    Stannieman MDL Guru

    Sep 4, 2009
    2,230
    1,817
    90
    Awesome, I just KMS activated with a generated key :D
    Nice topic btw, one of the most interesting ever.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. PaulDesmond

    PaulDesmond MDL Magnet

    Aug 6, 2009
    6,978
    7,148
    240
    Oh, this sounds like X-mas news, doesn't it?
     
  14. Stannieman

    Stannieman MDL Guru

    Sep 4, 2009
    2,230
    1,817
    90
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. Jachra

    Jachra MDL Member

    Apr 5, 2010
    199
    69
    10
    The same routines for key checking from the pidgenx.dll exists in the sppsvc.exe.
    Too bad the pkey2005 algo isn't done yet. It would allow for much more fun. :D
     
  16. mishamosherg

    mishamosherg MDL Novice

    Feb 27, 2010
    26
    32
    0
    My post just did dissapear... :confused:

    Posted it about 1 hour ago.

    Anyway, working pairs of IID's and CID's of Pro, Pro WMC and Enterprise editions of W8 can be helpfull in the decryption process? Are IID's and CID's couples algorithm afected if they're from different licensing channels (MAK, OEM, Retail, etc.)?
     
  17. CODYQX4

    CODYQX4 MDL Developer

    Sep 4, 2009
    4,818
    45,792
    150
    An OID/CID pair is unlikely to be of use in the long run.

    If you use MTK to Phone Activate, it saves the pair. This is mostly so you can screw up your CURRENT install and reactivate.

    The pair is known to change after a reformat, I've never tried reusing a CID after this case, because it seemed too improbable.


    It also proved pointless to further this Backup process, as a Tokens backup will preserve the phone activation without the CID being needed.

    An OID is unique for each key you have installed, so yes, a different key channel = new OID = need new CID.

    It is probably protected very well, but Phone Activation has been the weak link in a lot of software. We haven't had a real crack for NIS since 2009 (only trial resets), and the 2009 EDGE hack came out a week before NIS 2010.

    So I believe the CID/OID thing could be keygenned, but it has to be extremely well protected or someone would have cracked it in the 10+ years MS has been allowing phone activation.
     
  18. chinobino

    chinobino MDL Member

    Jul 28, 2009
    187
    85
    10