WindowsXPKg
WindowsXPKg copied to clipboard
only produces invalid keys
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?
This seems to happen with Linux unfortunately :(. Compiling with mingw and running with wine seems to be a workaround.
The code uses the long type, which is 32 bit on windows and 64 bit on linux.
ohhhh... that's amusing 😄
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 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
@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
@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.