[팁] 윈도 10에서 시디키 볼 수 있는 간단한 소스파일

· 10년 전 · 1752

' VBS Script to get the Windows(R) 7 Product Key from a PC's registry.
'
' Save the VBScript as "getWin7Key.vbs" somewhere on your Windows7 PC.
' Now, when you double-click the local script file an alertbox pops up
' displaying the product key stored in the machine's Windows registry.
 
 
 Set WshShell = WScript.CreateObject("WScript.Shell")
 
 
KeyPath = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"
 MsgBox ExtractKey(WshShell.RegRead(KeyPath))
 
 
 Function ExtractKey(KeyInput)
     Const KeyOffset = 52
     i = 28
     CharWhitelist = "BCDFGHJKMPQRTVWXY2346789"
     Do
         Cur = 0
         x = 14
         Do
             Cur = Cur * 256
             Cur = KeyInput(x + KeyOffset) + Cur
             KeyInput(x + KeyOffset) = (Cur \ 24) And 255
             Cur = Cur Mod 24
             x = x -1
         Loop While x >= 0
        i = i -1
         KeyOutput = Mid(CharWhitelist, Cur + 1, 1) & KeyOutput
         If (((29 - i) Mod 6) = 0) And (i <> -1) Then
             i = i -1
             KeyOutput = "-" & KeyOutput
         End If
     Loop While i >= 0

    ExtractKey = KeyOutput
 End Function

|
댓글을 작성하시려면 로그인이 필요합니다.

자유게시판

+
제목 글쓴이 날짜 조회
10년 전 조회 949
10년 전 조회 1,087
10년 전 조회 846
10년 전 조회 785
10년 전 조회 1,103
10년 전 조회 1,910
10년 전 조회 1,125
10년 전 조회 902
10년 전 조회 1,633
10년 전 조회 1,230
10년 전 조회 1,205
10년 전 조회 1,184
10년 전 조회 1,152
10년 전 조회 1,181
10년 전 조회 1,753
10년 전 조회 1,043
10년 전 조회 1,182
10년 전 조회 1,122
10년 전 조회 1,838
10년 전 조회 984
10년 전 조회 1,156
10년 전 조회 1,157
10년 전 조회 919
10년 전 조회 1,144
10년 전 조회 981
10년 전 조회 1,290
10년 전 조회 1,097
10년 전 조회 1,005
10년 전 조회 1,479
10년 전 조회 903