- 积分
- 6556
- 最后登录
- 2016-4-12
- 精华
- 0
- 阅读权限
- 100
- 主题
- 222
- UID
- 1591929
- 帖子
- 16314
- PB币
- 23411
- 威望
- 5
- 贡献
- 0
- 技术
- 835
- 活跃
- 3411
小麦
- UID
- 1591929
- 帖子
- 16314
- PB币
- 23411
- 贡献
- 0
- 技术
- 835
- 活跃
- 3411
|
8F
发表于 2015-8-20 16:40:39
IP属地马来西亚
|只看该作者
直接献上VBS代码~
可以用 wscript.exe(直接双击) 或 cscript.exe(命令行界面,方便复制密钥)执行。
再次说一次:这货没法查看 MAK 密钥
- Set WshShell = CreateObject("WScript.Shell")
- regKey = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\"
- DigitalProductId = WshShell.RegRead(regKey & "DigitalProductId")
- WinProductName = "Product Name: " & WshShell.RegRead(regKey & "ProductName") & vbNewLine
- WinProductID = "Product ID: " & WshShell.RegRead(regKey & "ProductID") & vbNewLine
- WinProductKey = "Product Key: " & ConvertToKey(DigitalProductId)
- Msg = WinProductName & WinProductID & WinProductKey
- WScript.Echo Msg
- SmartPause
- Function ConvertToKey(regKey)
- Const KeyOffset = 52
- isWin8 = (regKey(66) \ 6) And 1
- regKey(66) = (regKey(66) And &HF7) Or ((isWin8 And 2) * 4)
- j = 24
- Chars = "BCDFGHJKMPQRTVWXY2346789"
- Do
- Cur = 0
- y = 14
- Do
- Cur = Cur * 256
- Cur = regKey(y + KeyOffset) + Cur
- regKey(y + KeyOffset) = (Cur \ 24)
- Cur = Cur Mod 24
- y = y -1
- Loop While y >= 0
- j = j -1
- winKeyOutput = Mid(Chars, Cur + 1, 1) & winKeyOutput
- Last = Cur
- Loop While j >= 0
- If (isWin8 = 1) Then
- keypart1 = Mid(winKeyOutput, 2, Last)
- insert = "N"
- winKeyOutput = Replace(winKeyOutput, keypart1, keypart1 & insert, 2, 1, 0)
- If Last = 0 Then winKeyOutput = insert & winKeyOutput
- End If
- a = Mid(winKeyOutput, 1, 5)
- b = Mid(winKeyOutput, 6, 5)
- c = Mid(winKeyOutput, 11, 5)
- d = Mid(winKeyOutput, 16, 5)
- e = Mid(winKeyOutput, 21, 5)
- ConvertToKey = a & "-" & b & "-" & c & "-" & d & "-" & e
- End Function
- Sub SmartPause
- If LCase(Right(WScript.FullName,12)) = "\cscript.exe" Then
- WScript.StdIn.ReadLine
- End If
- End Sub
复制代码 |
-
1
查看全部评分
-
|