WindowsXPKg icon indicating copy to clipboard operation
WindowsXPKg copied to clipboard

only produces invalid keys

Open Qwertylex opened this issue 4 years ago • 7 comments

i'm on linux 5.13.13 with GCC 11.1.0 and OpenSSL 1.1.1l 24 Aug 2021 compiled with gcc -lcrypto main.cpp result:

PID: 4c4b4000
Hash: 0a54d0df
Sig: 00000000 d04808d7
BBBBW-VTP4F-WKWMH-7CWBB-DHMBB

00000000 00000000 bd2a686f cc4b4000
Product ID: 55274-640-0000000-23xxx
PID: 4c4b4000
Hash: 0a54d0df
Sig: 00000000 00000017
Calculated hash: 0ae283a5
Key invalid

any ideas why?

Qwertylex avatar Sep 19 '21 21:09 Qwertylex

This seems to happen with Linux unfortunately :(. Compiling with mingw and running with wine seems to be a workaround.

Santiblocks avatar Oct 25 '22 23:10 Santiblocks

The code uses the long type, which is 32 bit on windows and 64 bit on linux.

anon17 avatar May 19 '23 13:05 anon17

ohhhh... that's amusing 😄

Qwertylex avatar May 19 '23 14:05 Qwertylex

FYI - I made a fork with the necessary changes here:

https://github.com/Neo-Desktop/WindowsXPKg

It does in fact compile and run correctly under linux. Haven't tried under mingw yet

The application does report that the keys generated are valid (server 2003 will occasionally generate an invalid key, probably due to it using an older algorithm)

Neo-Desktop avatar May 25 '23 21:05 Neo-Desktop

@Neo-Desktop Compiles without issue after installing libssl-dev on debian. It generates codes but none are accepted in the XP installer on PRO and Home Premium 32bit.

PID: 4c4b4000 Hash: 09eb6900 Sig: 000ccb4e 284cd6b7 CVMVG-HYRVD-PMBYV-9DGMF-TPRVM

0000665a 714266b5 bcf5b480 4c4b4000 Product ID: 55274-640-0000000-23xxx PID: 4c4b4000 Hash: 09eb6900 Sig: 000ccb4e 284cd6b7 Calculated hash: 09eb6900 Key valid

DeprecatedHardware avatar May 27 '23 10:05 DeprecatedHardware

@DeprecatedHardware

@Neo-Desktop Compiles without issue after installing libssl-dev on debian. It generates codes but none are accepted in the XP installer on PRO and Home Premium 32bit.

PID: 4c4b4000 Hash: 09eb6900 Sig: 000ccb4e 284cd6b7 CVMVG-HYRVD-PMBYV-9DGMF-TPRVM

0000665a 714266b5 bcf5b480 4c4b4000 Product ID: 55274-640-0000000-23xxx PID: 4c4b4000 Hash: 09eb6900 Sig: 000ccb4e 284cd6b7 Calculated hash: 09eb6900 Key valid

The keys generated currently only work for the VLK editions of Windows XP

Neo-Desktop avatar May 27 '23 10:05 Neo-Desktop

@DeprecatedHardware

@Neo-Desktop Compiles without issue after installing libssl-dev on debian. It generates codes but none are accepted in the XP installer on PRO and Home Premium 32bit. PID: 4c4b4000 Hash: 09eb6900 Sig: 000ccb4e 284cd6b7 CVMVG-HYRVD-PMBYV-9DGMF-TPRVM 0000665a 714266b5 bcf5b480 4c4b4000 Product ID: 55274-640-0000000-23xxx PID: 4c4b4000 Hash: 09eb6900 Sig: 000ccb4e 284cd6b7 Calculated hash: 09eb6900 Key valid

The keys generated currently only work for the VLK editions of Windows XP

Ah... No problem, thanks for explaining. I used the windows xp_activate.exe to register the XPHP edition.
I found this referenced on Mastodon this morning so thought I'd give it a quick try.

DeprecatedHardware avatar May 27 '23 10:05 DeprecatedHardware