Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.os.windows-10 > #94529

Re: Windows Product Key

From Paul <nospam@needed.invalid>
Newsgroups alt.comp.os.windows-10
Subject Re: Windows Product Key
Date 2019-07-13 15:57 -0400
Organization A noiseless patient Spider
Message-ID <qgdd3a$hac$1@dont-email.me> (permalink)
References <qgd4gh$id$1@dont-email.me> <qgd6i1$ccm$1@dont-email.me> <qgd8hg$nev$1@dont-email.me>

Show all headers | View raw


Cameo wrote:
> On 7/13/2019 11:05 AM, Paul in Houston TX wrote:
>> Cameo wrote:
>>> My good old HP laptop that I had Windows 7 running on, has finally
>>> kicked the dust. I also have a newer Lenovo IdeaPad laptop that runs
>>> Windows 10. I needed the Win 7 installation to run my home automation
>>> software (ActiveHome Pro) on because the vendor have not upgraded it to
>>> run on Win10. I also have an old Umax Astra 2200 flat bad scanner, that
>>> can only run on Windows XP, which I virtual machined in the Win7 Pro.
>>>
>>> So I decided to install these Win XP and Win7 operating systems in Win10
>>> within the Oracle VM Virtual Box. Unfortunately that only works for 30
>>> days without valid Windows Product Keys from Microsoft. Also
>>> unfortunately, over the years I tossed out the original XP CDs and I
>>> only could find an updater CD set for my Win7 whose Product Key is not
>>> acceptable by my virtual installation. So here I am now without valid
>>> Product Keys even though they must be embedded somewhere in the hard
>>> drive of my old Win7 which I removed from and can access as a USB drive
>>> with an adapter.
>>>
>>> Can anybody suggest an easy, and hopefully free way to extract those
>>> product keys from the Win7 HD or Microsoft Support?
>>
>> Have you tried a Key Finder?
>> https://www.digitaltrends.com/computing/best-product-key-finders/
>>
> 
> Thanks, but I haven't tried any of them because they seem to imply that 
> they do the find in the HD of a functioning Windows system. I need a key 
> finder that will find the product key in a removed Windows 7 HD that is 
> attached to my Win10 as a USB drive.

The COA sticker on a Windows 7 machine, would have
an "emergency install" key which is "unique". No
two laptops of the same make and model, have the
same COA license key.

The license key on the hard drive is "bogus", a "fake"
and the same for lots and lots of models of computers.
Microsoft activation is not likely to accept the "bogus"
key on the hard drive for any activation purpose, as it
is an "OEM" key and belongs to the laptop model only.

*******

The following then, is largely a waste of your time, and is
included for educational purposes. This would be useful
to someone who had installed a Retail OS and had somehow lost
the COA sticker that came in the box.

https://www.howtogeek.com/206329/how-to-find-your-lost-windows-or-office-product-keys/

    HKLM\Software\Microsoft\Windows NT\CurrentVersion\DigitalProductId

It's a REG_BINARY.

The key starts at a certain offset.

The 25 letter key aaaaa-bbbbb-ccccc-ddddd-eeeee is
"encoded" not "encrypted" and uses fewer sequential
characters. It must be run through a short program
to convert it back to the 25 character key.

https://www.gtopala.com/siw/raw-key-digitalproductid.php

    Raw key is offset by 0x34 (decimal 52) bytes,
    the length of the key is (decimal 15) byte.

Notice in the example, the 15 byte section is surrounded
with 0x00 bytes, making visual recognition easier.

    7F 6A 51 4C 8E 5A 91 56 EA 34 77 1A B7 F2 02

*************************************************

This is a C# version of the decoder, and useless unless you're
suitably equipped to compile it.

public static string ConvertDigitalProductID(string regPath, string searchKey = "DigitalProductID") {
     // Open the sub key i.E.: "Software\Microsoft\Windows NT\CurrentVersion"
     var regkey = Registry.LocalMachine.OpenSubKey(regPath, false);
     // Retreive the value of "DigitalProductId"
     var dpid = (byte[])regkey.GetValue(searchKey);
     // Prepare an array for the relevant parts
     var idpart = new byte[15];

     // Copy the relevant parts of the array
     Array.Copy(dpid, 52, idpart, 0, 15);

     // Prepare the chars that will make up the key
     var charStore = "BCDFGHJKMPQRTVWXY2346789";  // char set is limited for readability

     // Prepare a string for the result
     string productkey = "";

     // We need 24 iterations (one for each character)
     for(int i = 0; i < 25; i++) {

         int c = 0;
         // Go through each of the 15 bytes of our dpid
         for(int j = 14; j >= 0; j--) {
             // Shift the current byte to the left and xor in the next byte
             c = (c << 8) ^ idpart[j];

             // Leave the result of the division in the current position
             idpart[j] = (byte)(c / 24);

             // Take the rest of the division forward to the next round
             c %= 24;
         }
         // After each round, add a character from the charStore to our key
         productkey = charStore[c] + productkey;
     }

     // Insert the dashes
     for(int i = 4; i > 0; i--) {
         productkey = productkey.Insert(i * 5, "-");
     }

     return productkey;
}
*************************************************

To select one of 24 character possibilities, would take
a five bit code. The "hex" in the fifteen bytes gives
us 15*8 = 120 bits. Divide by 5 gives 24 fields. Maybe the
last character is some residue (from division?).

Here is a C version.

https://pastebin.com/FYYFWFMU

    Paul

Back to alt.comp.os.windows-10 | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Windows Product Key Cameo <cameo@unreal.invalid> - 2019-07-13 10:30 -0700
  Re: Windows Product Key Paul in Houston TX <Paul@Houston.Texas> - 2019-07-13 13:05 -0500
    Re: Windows Product Key Cameo <cameo@unreal.invalid> - 2019-07-13 11:39 -0700
      Re: Windows Product Key Paul <nospam@needed.invalid> - 2019-07-13 15:57 -0400
      Re: Windows Product Key Lucifer <LuciferMorningstar@bigpond.com> - 2019-07-14 09:24 +1000
        Re: Windows Product Key Cameo <cameo@unreal.invalid> - 2019-07-13 19:24 -0700
          Re: Windows Product Key Lucifer <LuciferMorningstar@bigpond.com> - 2019-07-17 15:26 +1000
          Re: Windows Product Key Paul <nospam@needed.invalid> - 2019-07-17 03:17 -0400
      Re: Windows Product Key Paul <nospam@needed.invalid> - 2019-07-14 08:03 -0400
        Re: Windows Product Key Cameo <cameo@unreal.invalid> - 2019-07-14 17:16 -0700
          Re: Windows Product Key "Mayayana" <mayayana@invalid.nospam> - 2019-07-14 21:40 -0400
            Re: Windows Product Key Cameo <cameo@unreal.invalid> - 2019-07-15 15:24 -0700
              Re: Windows Product Key Paul <nospam@needed.invalid> - 2019-07-15 19:00 -0400
                Re: Windows Product Key Cameo <cameo@unreal.invalid> - 2019-07-16 13:06 -0700
                Re: Windows Product Key Paul <nospam@needed.invalid> - 2019-07-16 17:16 -0400
                Re: Windows Product Key NotMe <NotMe@example.invalid> - 2019-07-16 15:49 -0500
                Re: Windows Product Key NotMe <NotMe@example.com> - 2019-07-17 11:36 -0500
          Re: Windows Product Key Paul <nospam@needed.invalid> - 2019-07-14 22:22 -0400
            Re: Windows Product Key "Mayayana" <mayayana@invalid.nospam> - 2019-07-15 08:42 -0400
              Re: Windows Product Key Paul <nospam@needed.invalid> - 2019-07-15 12:13 -0400
  Re: Windows Product Key The Man in the High Castle <nospaming@nospam.com> - 2019-07-13 20:52 +0200
    Re: Windows Product Key Cameo <cameo@unreal.invalid> - 2019-07-13 12:35 -0700
  Re: Windows Product Key "Mayayana" <mayayana@invalid.nospam> - 2019-07-13 15:16 -0400
    Re: Windows Product Key Cameo <cameo@unreal.invalid> - 2019-07-13 12:40 -0700
      Re: Windows Product Key Big Al <Big_Al@invalid.com> - 2019-07-13 16:26 -0400
        Re: Windows Product Key Cameo <cameo@unreal.invalid> - 2019-07-13 19:32 -0700
      Re: Windows Product Key "Mayayana" <mayayana@invalid.nospam> - 2019-07-13 17:34 -0400
  Re: Windows Product Key John <sysop183@nofido.org> - 2019-07-15 10:36 +0100
    Re: Windows Product Key Cameo <cameo@unreal.invalid> - 2019-07-15 15:27 -0700
      Re: Windows Product Key NotMe <NotMe@example.invalid> - 2019-07-16 13:40 -0500
        Re: Windows Product Key Cameo <cameo@unreal.invalid> - 2019-07-16 13:12 -0700

csiph-web