home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmAddIn
- BackColor = &H00000000&
- BorderStyle = 3 'Fixed Dialog
- Caption = "KeyGen by CyberBlade..."
- ClientHeight = 3990
- ClientLeft = 2175
- ClientTop = 1935
- ClientWidth = 4515
- Icon = "frmAddIn.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3990
- ScaleWidth = 4515
- StartUpPosition = 2 'CenterScreen
- Begin VB.Frame Frame3
- BackColor = &H80000007&
- Caption = "_Times you clicked on the red rubers till you won_"
- ForeColor = &H000000FF&
- Height = 855
- Left = 240
- TabIndex = 6
- Top = 1200
- Width = 3975
- Begin VB.TextBox txtTimesClicked
- ForeColor = &H00000000&
- Height = 285
- Left = 240
- TabIndex = 7
- Text = "13"
- Top = 360
- Width = 3495
- End
- End
- Begin VB.CommandButton Command1
- Caption = "Quit"
- Height = 495
- Left = 2280
- TabIndex = 5
- Top = 3360
- Width = 1815
- End
- Begin VB.CommandButton cmdGenerate
- Caption = "Generate"
- Height = 495
- Left = 360
- TabIndex = 4
- Top = 3360
- Width = 1815
- End
- Begin VB.Frame Frame2
- BackColor = &H80000007&
- Caption = "Serial:"
- ForeColor = &H000000FF&
- Height = 975
- Left = 240
- TabIndex = 2
- Top = 2040
- Width = 3975
- Begin VB.TextBox txtKey
- BackColor = &H00E0E0E0&
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 375
- Left = 120
- Locked = -1 'True
- TabIndex = 3
- Text = "< Your serial will be displayed here >"
- Top = 480
- Width = 3735
- End
- Begin VB.Label Label1
- BackStyle = 0 'Transparent
- Caption = "Maybe the serial is very long, so check the entire box"
- ForeColor = &H00FFFFFF&
- Height = 255
- Left = 75
- TabIndex = 8
- Top = 165
- Width = 3900
- End
- End
- Begin VB.Frame Frame1
- BackColor = &H80000007&
- Caption = "Please enter your name in the field below:"
- ForeColor = &H000000FF&
- Height = 975
- Left = 240
- TabIndex = 0
- Top = 240
- Width = 3975
- Begin VB.TextBox txtName
- ForeColor = &H00000000&
- Height = 375
- Left = 240
- TabIndex = 1
- Text = "CyberBlade"
- Top = 360
- Width = 3375
- End
- End
- Begin VB.Label Label2
- BackColor = &H80000012&
- Caption = "This is a KeyGen for Eternal Bliss' VBCrackMe 8"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = -1 'True
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H0000FFFF&
- Height = 255
- Left = 0
- TabIndex = 9
- Top = 0
- Width = 4575
- End
- Begin VB.Line Line3
- BorderColor = &H00FFFFFF&
- X1 = 0
- X2 = 4560
- Y1 = 3120
- Y2 = 3120
- End
- Begin VB.Line Line2
- BorderColor = &H00FFFFFF&
- X1 = 4560
- X2 = 4575
- Y1 = 2520
- Y2 = 2535
- End
- Begin VB.Line Line1
- BorderColor = &H00E0E0E0&
- BorderWidth = 2
- X1 = 4560
- X2 = 4575
- Y1 = 2520
- Y2 = 2535
- End
- Attribute VB_Name = "frmAddIn"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdGenerate_Click()
- Dim Key As Variant
- Dim Value1 As Variant, Value2 As Variant, Value3 As Variant
- Dim TimesClicked As Variant
- 'Check if the Name is valid
- If Len(txtName.Text) < 1 Then
- MsgBox "You have to enter at least 5 characters !", vbInformation + vbOKOnly, "Error!"
- Exit Sub
- End If
- If Len(txtTimesClicked.Text) < 1 Then
- MsgBox "Please tell me how many times you had to click on the red rubers in order to win !", vbInformation + vbOKOnly, "Error!"
- Exit Sub
- End If
- TimesClicked = txtTimesClicked.Text
- 'Multiply the Length of the Name by 100
- 'and divide the result by the number of
- 'times you clicked on the red rubers.
- 'Be sure to return an integer value.
- TimesClicked = Int((Len(txtName.Text) * 100) / TimesClicked)
- 'Add the AscII values of every second character in
- 'the UserName. Begin at character 1.
- 'example: UserName = CyberBlade
- 'Asc("C") + Asc("b") + Asc("r") + Asc("l") and so on...
- For i = 1 To Len(txtName.Text) Step 2
- Value1 = Value1 + Asc(Mid(txtName, i, 1))
- 'Add the AscII values of every second character in
- 'the UserName. Begin at character 2.
- For i = 2 To Len(txtName.Text) Step 2
- Value2 = Value2 + Asc(Mid(txtName, i, 1))
- Value3 = Value1 * Value2
- 'Divide Value3 / TimesClicked
- 'Be sure to return an integer value
- Key = Int(Value3 / TimesClicked)
- 'Add "0"s to the Key until the
- 'total Length of the Key is equal
- 'to the times you clicked on the red rubers
- For i = 1 To txtTimesClicked.Text - Len(Trim(Str(Key)))
- Key = "0" & Key
- 'Display the Key in the TextBox
- txtKey.Text = Key
- End Sub
- Private Sub Command1_Click()
- Unload Me
- End Sub
-