This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
6_CEWL.vb
169 lines (98 loc) · 4.23 KB
/
6_CEWL.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
Public Class CEWL
Public CMax As String
Public Cmin As String
Private Sub Form10_Load(sender As Object, e As EventArgs) Handles Me.Load
'### Voreinstellungen laden
TextBox1.Text = "https://www."
'### Start-Button deaktivieren
Me.Button2.Enabled = False
TextBox3.Text = "2"
TextBox2.Text = "5"
'### Auf Deutsch umstellen
If My.Settings.Eng = False Then
GroupBox1.Text = "Linux und Packages installieren"
GroupBox2.Text = "so. Einstellungen (optinal)"
Label3.Text = "CeWL kann aus einer URL eine Wordlist und Emailadressen extrahieren. Bitte beachten Sie die Schreibweise: " & vbNewLine &
"http:// oder https://. Die Extraktion wird im Ordner ""#_Wordlists"" abgelegt."
Label1.Text = "Ziel-Homepage:"
Label5.Text = "Wenn Sie CeWL erstmalig verwenden, müssen Sie Linux und die entsprechenden Packages installieren." & vbNewLine &
"Drücken Sie den Button um Linux zu installieren:"
Label4.Text = "Tiefe (Voreinstellung: 2):"
Label2.Text = "Minimum Wortlänge: "
End If
End Sub
Private Sub CEWL_FormClosing(sender As Object, e As FormClosingEventArgs) Handles Me.FormClosing
WordlistUtility.Show()
End Sub
'Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
Private Sub C_Aktualisieren()
'### CeWL ausführen
Dim Date1 As String = Format(Now, "yyyyMMdd_HHmmss")
Dim command As String = "ubuntu2004.exe" & " run cewl " & TextBox1.Text & " -w CeWL_Wordlist_" & Date1 & ".txt " & " -e --email_file CeWL_EMails_" & Date1 & ".txt " & CMax & Cmin
TextBox7.Text = command
Me.Button2.Enabled = True
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
'#########START Button führt das Commad Fenster aus
If My.Settings.Eng = True Then
MsgBox("The process can take up to an hour for larger websites", MessageBoxButtons.OK)
Else
MsgBox("Bei größeren Internetseiten kann dieser Vorgang bis zu einer Stunde dauern!", MessageBoxButtons.OK)
End If
Dim process As New Process()
process.StartInfo.FileName = "cmd.exe"
process.StartInfo.WorkingDirectory = Application.StartupPath & "\#_Wordlists"
process.StartInfo.Arguments = ("/k " & TextBox7.Text)
process.Start()
End Sub
Private Sub TextBox2_TextChanged(sender As Object, e As EventArgs) Handles TextBox2.TextChanged
'### Min. Word-Length
If TextBox2.TextLength > 0 Then
Cmin = "-m " & TextBox2.Text & " "
Else
Cmin = ""
End If
Call C_Aktualisieren()
End Sub
Private Sub TextBox3_TextChanged(sender As Object, e As EventArgs) Handles TextBox3.TextChanged
'### Depth Spider
If TextBox3.TextLength > 0 Then
CMax = "-d " & TextBox3.Text & " "
Else
CMax = ""
End If
Call C_Aktualisieren()
End Sub
Private Sub TextBox2_KeyPress(
ByVal sender As Object,
ByVal e As System.Windows.Forms.KeyPressEventArgs) _
Handles TextBox2.KeyPress
'#### Nur Zahlen und Backspace
Select Case Asc(e.KeyChar)
Case 48 To 57, 8
' Zahlen, Backspace
Case Else
' alle anderen Eingaben unterdrücken
e.Handled = True
End Select
End Sub
Private Sub TextBox3_KeyPress(
ByVal sender As Object,
ByVal e As System.Windows.Forms.KeyPressEventArgs) _
Handles TextBox3.KeyPress
'#### Nur Zahlen und Backspace
Select Case Asc(e.KeyChar)
Case 48 To 57, 8
' Zahlen, Backspace
Case Else
' alle anderen Eingaben unterdrücken
e.Handled = True
End Select
End Sub
Private Sub Button1_Click_1(sender As Object, e As EventArgs) Handles Button1.Click
Linux_CEWL.Show()
End Sub
Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged
Call C_Aktualisieren()
End Sub
End Class