📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form form1
Caption = "Access97数据库密码破解"
ClientHeight = 4050
ClientLeft = 60
ClientTop = 345
ClientWidth = 7050
LinkTopic = "Form1"
ScaleHeight = 4050
ScaleWidth = 7050
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command1
Caption = "退出"
Height = 555
Left = 5400
TabIndex = 5
Top = 3495
Width = 1380
End
Begin VB.DriveListBox Drive1
Height = 300
Left = 0
TabIndex = 3
Top = 150
Width = 2535
End
Begin VB.DirListBox Dir1
Height = 2400
Left = 0
TabIndex = 2
Top = 495
Width = 2535
End
Begin VB.FileListBox File1
Archive = 0 'False
Height = 2790
Left = 2790
Pattern = "*.mdb"
TabIndex = 1
Top = 135
Width = 4005
End
Begin VB.TextBox text1
Height = 345
Left = 945
TabIndex = 0
Top = 3060
Width = 5805
End
Begin VB.Label Label1
Caption = "密码:"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 525
Left = 75
TabIndex = 4
Top = 3075
Width = 1005
End
End
Attribute VB_Name = "form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Dir1.Path = App.Path
End Sub
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub File1_Click()
Dim chart(13) As Byte
Dim datafile As String
text1 = ""
If Len(File1.Path) > 3 Then
datafile = File1.Path + "\" + File1.FileName
Else
datafile = File1.Path & File1.FileName
End If
If Right(File1.FileName, 3) = "mdb" Then '判断是否为assecc 数据库
Open Trim(datafile) For Binary Access Read As #1
Get #1, 67, chart
Close #1 '关闭文件
If ((chart(0) Xor 134) = 0) Then
text1.Text = File1.Name & " 数据库没有设置密码"
Else
text1 = text1 & Chr$(chart(0) Xor &H86) '获得密码的第一个数
text1 = text1 & Chr$(chart(1) Xor &HFB)
text1 = text1 & Chr$(chart(2) Xor &HEC)
text1 = text1 & Chr$(chart(3) Xor &H37)
text1 = text1 & Chr$(chart(4) Xor &H5D)
text1 = text1 & Chr$(chart(5) Xor &H44)
text1 = text1 & Chr$(chart(6) Xor &H9C)
text1 = text1 & Chr$(chart(7) Xor &HFA)
text1 = text1 & Chr$(chart(8) Xor &HC6)
text1 = text1 & Chr$(chart(9) Xor &H5E)
text1 = text1 & Chr$(chart(10) Xor &H28)
text1 = text1 & Chr$(chart(11) Xor &HE6)
text1 = text1 & Chr$(chart(12) Xor &H13)
End If
Else
text1 = "非access数据库!"
End If
End Sub
Private Sub Command1_Click()
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -