0% found this document useful (0 votes)
78 views1 page

Quitaer PSW Excel

This VBA code attempts to crack an Excel password by generating all possible 11 character password combinations using characters from 65-66 and 32-126 and checking if each one unprotects the active sheet. If a password is found that unprotects the sheet, a message box displays the password.

Uploaded by

ceaupava
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views1 page

Quitaer PSW Excel

This VBA code attempts to crack an Excel password by generating all possible 11 character password combinations using characters from 65-66 and 32-126 and checking if each one unprotects the active sheet. If a password is found that unprotects the sheet, a message box displays the password.

Uploaded by

ceaupava
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

QUITAER PSW EXCEL

Sub jd()
Dim a As Integer, b As Integer, c As Integer
Dim d As Integer, e As Integer, f As Integer
Dim a1 As Integer, a2 As Integer, a3 As Integer
Dim a4 As Integer, a5 As Integer, a6 As Integer
On Error Resume Next
For a = 65 To 66: For b = 65 To 66: For c = 65 To 66
For d = 65 To 66: For e = 65 To 66: For a1 = 65 To 66
For a2 = 65 To 66: For a3 = 65 To 66: For a4 = 65 To 66
For a5 = 65 To 66: For a6 = 65 To 66: For f = 32 To 126
Contrasea = Chr(a) & Chr(b) & Chr(c) & Chr(d) & Chr(e) & Chr(a1) _
& Chr(a2) & Chr(a3) & Chr(a4) & Chr(a5) & Chr(a6) & Chr(f)
ActiveSheet.Unprotect Contrasea
If ActiveSheet.ProtectContents = False Then
MsgBox "JD TE DA TU CONTRASEA!" & vbCr & "La contrasea es:" & vbCr &
Contrasea
Exit Sub
End If
Next: Next: Next: Next: Next: Next
Next: Next: Next: Next: Next: Next
End Sub

You might also like