'----------------------------------
'怀旧CrackMe0.1.SRC.by.KuNgBiM
'----------------------------------
'算法并非复杂,但就是不知如何调试它
'----------------------------------
Private Sub Command1_Click()
Dim skey As String
Dim strkey1 As String
Dim strkey2 As String
Dim sn As String
'判断用户名合法性
If Len(Text1.Text) < 5 Or Len(Text2.Text) < 9 Then
Form2.Show 1
Else
'计算用户名对应的ASCII码
Dim s As String
s = vbNullString
For i = 1 To Len(Text1.Text)
s = s & Abs(Asc(Mid(Text1.Text, i, 1)))
Next
skey = s
'计算正确注册码
strkey1 = "KuNg-"
strkey2 = "-BiM"
sn = strkey1 & Mid(skey, 1, 5) Mod 80906 & strkey2
'判断注册码是否正确
'右判断
If Right(Text2.Text, 4) <> strkey2 Then
Form4.Show 1
Else
'左判断
If Left(Text2.Text, 5) <> strkey1 Then
Form4.Show 1
Else
'整体判断
If Text2.Text <> sn Then
Form4.Show 1
Else
Form3.Show 1
End If
End If
End If
End If
End Sub
End Sub