Repository navigation
Expand file tree
/
Copy pathmodule.html
More file actions
375 lines (300 loc) · 18.5 KB
/
Copy pathmodule.html
File metadata and controls
375 lines (300 loc) · 18.5 KB
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
<div class="panel panel-default" ng-controller="PMKIDAttack_Controller">
<div class="panel-heading">
<h4 class="panel-title pull-left">{{title}}</h4>
<span class="pull-right" data-toggle="modal" data-target="#information">{{version}}</span>
<div class="clearfix">
</div>
</div>
</div>
<div id="information" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Information</h4>
</div>
<div class="modal-body">
<h3><center>PMKIDAttack v0.5</center></h3>
<h5><center>Written by Melroy</center></h5>
<h5><center>This is a module</center></h5>
<h5><center><a target="_blank" href="https://hashcat.net/forum/thread-7717.html">More info about PMKID</a></center></h5>
<h5><center><a target="_blank" href="https://github.com/MelroyB">GitHub</a></center></h5>
<h5><center><a target="_blank" href="https://www.linkedin.com/in/melroybouwes/">LinkedIn</a></center></h5>
<br/><br/>
<h5 class="text-danger"><center>Please use Responsibly!</center></h5>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="panel panel-default" ng-controller="PMKIDAttack_ControlsController">
<div class="panel-heading">
<h3 class="panel-title">Controls</h3>
</div>
<div class="panel-body">
<table style="width:100%">
<tr>
<td style="padding-bottom: .5em;" class="text-muted">Dependencies</td>
<td ng-hide="$root.status.installed" style="text-align:right;padding-bottom: .5em;"><button type="button" style="width: 90px;" class="btn btn-{{installLabel}} btn-xs" data-toggle="modal" data-target="#dependenciesInstallModal" ng-disabled="processing">{{install}}</button></td>
<td ng-show="$root.status.installed" style="text-align:right;padding-bottom: .5em;"><button type="button" style="width: 90px;" class="btn btn-{{installLabel}} btn-xs" data-toggle="modal" data-target="#dependenciesRemoveModal" ng-disabled="processing">{{install}}</button></td>
</tr>
<tr ng-show="$root.status.installed">
<td style="padding-bottom: .5em;" class="text-muted">HcxDumptool</td>
<td style="text-align:right;padding-bottom: .5em;"><button type="button" style="width: 90px;" class="btn btn-{{statusLabel}} btn-xs" ng-disabled="starting" ng-click="togglePMKIDAttack()">{{status}}</button></td>
</tr>
</table>
</div>
<div class="modal fade" id="dependenciesInstallModal" tabindex="-1" role="dialog" aria-labelledby="dependenciesModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="dependenciesInstallModalLabel">Install dependencies</h4>
</div>
<div class="modal-body">
All required dependencies have to be installed first. This may take a few minutes.<br /><br />
Please wait, do not leave or refresh this page. Once the install is complete, this page will refresh automatically.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-info" ng-click="handleDependencies('internal')" data-dismiss="modal">Internal</button>
<button type="button" class="btn btn-info" ng-hide="device == 'tetra' || sdAvailable == false" ng-click="handleDependencies('sd')" data-dismiss="modal">SD Card</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="dependenciesRemoveModal" tabindex="-1" role="dialog" aria-labelledby="dependenciesModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="dependenciesRemoveModalLabel">Remove dependencies</h4>
</div>
<div class="modal-body">
All required dependencies will be removed. This may take a few minutes.<br /><br />
Please wait, do not leave or refresh this page. Once the remove is complete, this page will refresh automatically.
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-info" ng-click="handleDependencies()" data-dismiss="modal">Confirm</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="panel panel-default" ng-show="$root.status.installed" ng-controller="PMKIDAttack_OptionsController">
<div class="panel-heading pointer" data-toggle="collapse" data-target="#Options">
<h4 class="panel-title">Options</h4>
</div>
<!-- COMMAND -->
<div id="Options" class="panel">
<div class="panel-body">
<div class="form-group">
<div class="input-group">
<span class="input-group-addon input-sm"><img src="/modules/PMKIDAttack/resources/help.png" height=16 width=16 title="Command to Run"></img> Command</span>
<input type="text" class="form-control input-sm" ng-model="command" placeholder="PMKIDAttack command">
</div>
</div>
<!-- INTERFACES -->
<div class="form-group">
<div class="input-group">
<span class="input-group-addon input-sm"><img src="/modules/PMKIDAttack/resources/help.png" height=16 width=16 title="Interface 
 use eg wlan1mon"></img> Interface</span>
<select ng-change="update()" ng-model="selectedInterface" class="form-control input-sm">
<option>--</option>
<option ng-repeat="interface in interfaces">{{ interface }}</option>
</select>
</div>
</div>
<!-- Channels -->
<div class="form-group">
<div class="input-group">
<span class="input-group-addon input-sm"><img src="/modules/PMKIDAttack/resources/help.png" height=16 width=16 title="set scan list (1,2,3,...) 
 default scan list: 1, 3, 5, 7, 9, 11, 13, 2, 4, 6, 8, 10, 12, 13"></img> Scanlist</span>
<input ng-change="update()" type="text" class="form-control input-sm" ng-model="target1" placeholder="1,2,3">
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon input-sm"><img src="/modules/PMKIDAttack/resources/help.png" height=16 width=16 title="stay time on channel before hopping to the next channel 
 default: 5 seconds"></img> Time on Channel</span>
<input ng-change="update()" type="text" class="form-control input-sm" ng-model="target2" placeholder="5">
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon input-sm"><img src="/modules/PMKIDAttack/resources/help.png" height=16 width=16 title="use this VENDOR information for station"></img> Vendor</span>
<select ng-change="update()" ng-model="protoOptions.option8" class="form-control input-sm">
<option></option>
<option value="--station_vendor 0">transmit no VENDOR information (default)</option>
<option value="--station_vendor 1">Broadcom</option>
<option value="--station_vendor 2">Apple-Broadcom</option>
<option value="--station_vendor 3">Sonos</option>
<option value="--station_vendor 4">Netgear-Broadcom</option>
<option value="--station_vendor 5">Wilibox Deliberant Group LLC</option>
<option value="--station_vendor 6">Cisco Systems, Inc</option>
</select>
</div>
</div>
<!-- Choose FILTER -->
<div class="form-group">
<div class="input-group">
<span class="input-group-addon input-sm"><img src="/modules/PMKIDAttack/resources/help.png" height=16 width=16 title="mac filter list 
 format: 112233445566 + comment 
 maximum line lenght 255, 
 maximum entries 64"></img> Filter Mode</span>
<select ng-change="update()" ng-model="protoOptions.option10" class="form-control input-sm">
<option></option>
<option value="">Do not use the filter list</option>
<option value="--filtermode=1">Interact with all APs and CLIENTs in range, except(!) the ones from the filter list</option>
<option value="--filtermode=2">Only interact with APs and CLIENTs in range, from the filter list</option>
<option value="--filtermode=3">Only receive APs and CLIENTs in range, from the filter list</option>
</select>
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon input-sm" ><img src="/modules/PMKIDAttack/resources/help.png" height=16 width=16 title="Please choose a Filter Mode"> Filterlist</span>
<select ng-change="update()" ng-model="selectedFilter" class="form-control input-sm">
<option ng-repeat="filter in filters">{{ filter }}</option>
</select>
</div>
</div>
<div class="form-group">
<div class="input-group">
<div class="checkbox">
<img src="/modules/PMKIDAttack/resources/help.png" height=16 width=16 title="do not transmit proberequests to BROADCAST using a BROADCAST ESSID 
 do not transmit BROADCAST beacons 
 affected: ap-less and client-less attacks"></img>
<label><input type="checkbox" ng-change="update()" ng-model="protoOptions.option2" ng-true-value="'--disable_active_scan'"> Disable Active Scan</label>
</div>
<div class="checkbox">
<img src="/modules/PMKIDAttack/resources/help.png" height=16 width=16 title="disable transmitting deauthentications 
 affected: connections between client an access point"></img>
<img src="/modules/PMKIDAttack/resources/caution.png" height=16 width=16 title="Enable this if you are connected trough WiFi with the Pineapple"></img>
<label><input type="checkbox" ng-change="update()" ng-model="protoOptions.option3" ng-true-value="'--disable_deauthentications'"> Disable Deauthentication</label>
</div>
<div class="checkbox">
<img src="/modules/PMKIDAttack/resources/help.png" height=16 width=16 title="disable transmitting disassociations 
 affected: retry (EAPOL 4/4 - M4) attack"></img>
<img src="/modules/PMKIDAttack/resources/caution.png" height=16 width=16 title="Enable this if you are connected trough WiFi with the Pineapple"></img>
<label><input type="checkbox" ng-change="update()" ng-model="protoOptions.option4" ng-true-value="'--disable_disassociations'"> Disable Disassociations</label>
</div>
<div class="checkbox">
<img src="/modules/PMKIDAttack/resources/help.png" height=16 width=16 title="disable attacks on single access points 
 affected: client-less (PMKID) attack"></img>
<label><input type="checkbox" ng-change="update()" ng-model="protoOptions.option5" ng-true-value="'--disable_ap_attacks'"> Disable AP Attacks</label>
</div>
<div class="checkbox">
<img src="/modules/PMKIDAttack/resources/help.png" height=16 width=16 title="disable attacks on single clients 
 affected: ap-less (EAPOL 2/4 - M2) attack"></img>
<label><input type="checkbox" ng-change="update()" ng-model="protoOptions.option6" ng-true-value="'--disable_client_attacks'"> Disable Client Attacks</label>
</div>
<div class="checkbox">
<img src="/modules/PMKIDAttack/resources/help.png" height=16 width=16 title="show radio channel assignment (scan for target access points) 
 this can be used to test if packet injection is working 
 if no access point responds, packet injection is probably not working"></img>
<label><input type="checkbox" ng-change="update()" ng-model="protoOptions.option7" ng-true-value="'--do_rcascan'"> Do RCA Scan</label>
</div>
<div class="checkbox">
<img src="/modules/PMKIDAttack/resources/help.png" height=16 width=16 title="show wlan interfaces and quit"></img>
<label><input type="checkbox" ng-change="update()" ng-model="protoOptions.option8" ng-true-value="'-I'"> Show Interfaces and quit</label>
</div>
</div>
</div>
<!-- Filter -->
<div class="panel panel-default" ng-show="$root.status.installed" ng-controller="PMKIDAttack_EditorController">
<div class="panel-heading pointer" data-toggle="collapse" data-target="#Editor">
<h4 class="panel-title">Filter Editor</h4>
</div>
<div id="Editor" class="panel-collapse collapse">
<div class="panel-body">
<div class="form-group">
<div class="input-group">
<span class="input-group-addon input-sm">Filter</span>
<select ng-change="showFilter()" ng-model="selectedFilter" class="form-control input-sm">
<option ng-repeat="filter in filters">{{ filter }}</option>
</select>
</div>
</div>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon input-sm">Name</span>
<input type="text" class="form-control input-sm" ng-disabled="selectedFilter != '--'" ng-model="filterName" placeholder="New Filter name">
</div>
</div>
<div class="form-group">
<div class="btn-group pull-right">
<button class="btn btn-{{saveFilterLabel}} btn-sm" ng-disabled="saving || filterName == ''" ng-click="saveFilterData()">{{saveFilter}}</button>
<button class="btn btn-{{deleteFilterLabel}} btn-sm" ng-disabled="deleting || selectedFilter == '--'" ng-click="deleteFilterData()">{{deleteFilter}}</button>
</div>
<div class="clearfix"></div>
<textarea class="form-control" rows="20" ng-model="filterData"></textarea>
<pre class="scrollable-pre log-pre">{{output}}</pre>
</div>
</div>
</div>
</div>
<!-- OUTPUT LOG -->
<div class="panel panel-default" ng-show="$root.status.installed" ng-controller="PMKIDAttack_OutputController">
<div class="panel-heading">
<h4 class="panel-title pull-left">Output</h4>
<div class="pull-right">
Auto-refresh <div class="btn-group">
<button ng-click="toggleAutoRefresh()" class="btn btn-xs btn-{{refreshLabelON}}">ON</button>
<button ng-click="toggleAutoRefresh()" class="btn btn-xs btn-{{refreshLabelOFF}}">OFF</button>
</div>
</div>
<div class="clearfix"></div>
</div>
<div class="panel-body">
<div class="input-group">
<span class="input-group-addon input-sm">Filter</span>
<input type="text" class="form-control input-sm" placeholder="Piped commands used to filter output (e.g. grep, awk)" ng-model="filter">
<div class="input-group-btn">
<button class="btn btn-default btn-sm" ng-click="clearFilter()">Clear Filter</button>
<button class="btn btn-primary btn-sm" ng-click="refreshOutput()">Refresh Log</button>
</div>
</div>
<pre class="scrollable-pre log-pre">{{output}}</pre>
</div>
</div>
<div class="panel panel-default" ng-show="$root.status.installed" ng-controller="PMKIDAttack_HistoryController">
<div class="panel-heading pointer" data-toggle="collapse" data-target="#History">
<h4 class="panel-title">History <span class="badge">{{history.length}}</span></h4>
</div>
<div id="History" class="panel-collapse collapse">
<div class="panel-body">
<button class="btn btn-primary btn-sm pull-right" ng-click="refreshHistory()">Refresh History</button><div class="clearfix"></div>
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover" ng-hide="(history.length == 0)">
<thead>
<tr>
<th>Date</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="entry in history" ng-if="entry != ''">
<td>{{entry[0]}}</td>
<td>
<div class="btn-group">
<button type="button" class="btn btn-fixed-length btn-sm btn-default" data-toggle="modal" data-target="#historyModal" ng-click="viewHistory(entry[1])">View</button>
<button type="button" class="btn btn-sm btn-default" ng-click="downloadHistory(entry[1])">Download log</button>
<button type="button" class="btn btn-sm btn-default" ng-click="downloadHistory(entry[2])">Download pcap</button>
<button type="button" class="btn btn-sm btn-default" ng-click="downloadHistory(entry[3])">Download 16800</button>
<button type="button" class="btn btn-fixed-length btn-sm btn-danger" ng-click="deleteHistory(entry[2])">Delete</button>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="well" ng-show="(history.length === 0)">No history...</div>
</div>
</div>
<div class="modal fade" id="historyModal" tabindex="-1" role="dialog" aria-labelledby="historyModalLabel">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="historyModalLabel">View History - {{historyDate}}</h4>
</div>
<div class="modal-body">
<pre class="scrollable-pre log-pre">{{historyOutput}}</pre>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>