运行Reflector ,载入软件,找到助理工程师,找到 form_load事件.因为程序运行就有未注册,所以从这里下手了.用VB代码显示
找到代码如下
Dim str4 As String 定义变量
Dim str6 As String 定义变量
If ((Me.Width < 900) Or (Me.Width > &H47F)) Then 分辨率
Interaction.MsgBox(ChrW(35831) & ChrW(23558) & ChrW(20998) & ChrW(36776) & ChrW(29575) & ChrW(35843) & ChrW(33267) & "1024*768", MsgBoxStyle.OkOnly, Nothing)
Me.Close
End If
硬件码
Dim searcher As New ManagementObjectSearcher("SELECT * FROM Win32_Processor")
Dim obj2 As ManagementObject
For Each obj2 In searcher.Get
str6 = Conversions.ToString(obj2.Item("ProcessorId"))
Next
定义变量
Dim expression As String = str6
Dim num As Integer = Strings.Len(expression)
Dim num5 As Integer = (num - 1)
Dim i As Integer = 0
循环
Do While (i <= num5)
If (expression.Substring(i, 1) = "0") Then
str4 = str4
End If
If (expression.Substring(i, 1) = "1") Then
str4 = (str4 & Conversions.ToString(&H4F0))
End If
If (expression.Substring(i, 1) = "2") Then
str4 = (str4 & Conversions.ToString(&H658))
End If
If (expression.Substring(i, 1) = "3") Then
str4 = (str4 & Conversions.ToString(&HCC))
End If
If (expression.Substring(i, 1) = "4") Then
str4 = (str4 & Conversions.ToString(&H88))
End If
If (expression.Substring(i, 1) = "5") Then
str4 = (str4 & Conversions.ToString(260))
End If
If (expression.Substring(i, 1) = "6") Then
str4 = (str4 & Conversions.ToString(&H174))
End If
If (expression.Substring(i, 1) = "7") Then
str4 = (str4 & Conversions.ToString(&HD728))
End If
If (expression.Substring(i, 1) = "8") Then
str4 = (str4 & Conversions.ToString(&H18A4))
End If
If (expression.Substring(i, 1) = "9") Then
str4 = (str4 & Conversions.ToString(&H249))
End If
If (expression.Substring(i, 1) = "A") Then
str4 = (str4 & Conversions.ToString(&H91B))
End If
If (expression.Substring(i, 1) = "B") Then
str4 = (str4 & Conversions.ToString(&H1488))
End If
If (expression.Substring(i, 1) = "C") Then
str4 = (str4 & Conversions.ToString(&H60))
End If
If (expression.Substring(i, 1) = "D") Then
str4 = (str4 & Conversions.ToString(&H27))
End If
If (expression.Substring(i, 1) = "E") Then
str4 = (str4 & Conversions.ToString(&H428))
End If
If (expression.Substring(i, 1) = "F") Then
str4 = (str4 & Conversions.ToString(&H3CF))
End If
i += 1
Loop
软件运行后,会读取reg.reg内的二进制码,比较注册码 如果相等,则运行软件,如果不等则不成功
If (MyProject.Computer.FileSystem.ReadAllText((Me.path & "reg.reg"), Encoding.Default) <> str4) Then
Interaction.MsgBox(ChrW(26410) & ChrW(27880) & ChrW(20876), MsgBoxStyle.OkOnly, Nothing)
ProjectData.EndApp
End If