diff options
| author | Wither OrNot | 2025-04-04 07:43:27 +0000 |
|---|---|---|
| committer | Wither OrNot | 2025-04-04 07:43:27 +0000 |
| commit | 28acb8012f3471262aa999071fbadde5ebe7edf9 (patch) | |
| tree | 41e65167a7c8f566c4481c550fc6226298e837fa /LibTSforge/SPP | |
| parent | e86f43a2864585f8430e01849a04a51bc46c1908 (diff) | |
| download | TSforge-28acb8012f3471262aa999071fbadde5ebe7edf9.zip | |
add /siid option
Diffstat (limited to 'LibTSforge/SPP')
| -rw-r--r-- | LibTSforge/SPP/ProductKey.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/LibTSforge/SPP/ProductKey.cs b/LibTSforge/SPP/ProductKey.cs index ce454d8..ae48893 100644 --- a/LibTSforge/SPP/ProductKey.cs +++ b/LibTSforge/SPP/ProductKey.cs @@ -249,10 +249,8 @@ namespace LibTSforge.SPP { if (version == PSVersion.Win7) { - Random rnd = new Random(Group * 1000000000 + Serial); - byte[] data = new byte[8]; - rnd.NextBytes(data); - return data; + ulong shortauth = ((ulong)Group << 41) | ((ulong)Security << 31) | ((ulong)Serial << 1) | (Upgrade ? (ulong)1 : 0); + return BitConverter.GetBytes(shortauth); } int serialHigh = Serial / 1000000; |
