-
Notifications
You must be signed in to change notification settings - Fork 3
/
module.html
300 lines (294 loc) · 16.5 KB
/
module.html
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
<!-- Controls -->
<div class="row">
<div class="col-md-4" ng-controller="PMKIDAttack_Dependencies">
<div class="panel panel-default">
<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 style="text-align:right;padding-bottom: .5em;">
<button type="button" style="width: 90px;" class="btn btn-{{installLabel}} btn-xs"
ng-click="managerDependencies()"
ng-disabled="processing">
{{ install }}
</button>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<div class="row" ng-show="$root.installedDependencies">
<div class="col-md-6" ng-controller="PMKIDAttack_ScanResults">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">
Captured WPA PMKID
<span ng-show="pmkids.length" class="badge">{{ pmkids.length }}</span>
</h3>
</div>
<div class="panel-body">
<div class="table-responsive" ng-show="pmkids.length !== 0">
<table class="table table-hover">
<thead>
<tr class="default-cursor">
<th style="width: 100%;">Name</th>
<th>Log</th>
<th>Download</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="pmkid in pmkids">
<td>{{ pmkid.name }}</td>
<td>
<button data-target="#viewLog" data-toggle="modal" class="btn btn-default btn-xs" ng-click="viewAttackLog(pmkid.file)">
View Log
</button>
</td>
<td>
<button class="btn btn-default btn-xs" ng-click="downloadPMKID(pmkid.file)">
Download
</button>
</td>
<td>
<button class="btn btn-danger btn-xs" ng-click="deletePMKID(pmkid.file)">
Delete
</button>
</td>
</tr>
</tbody>
</table>
</div>
<div ng-if="pmkids.length === 0 && !pmkidsLoading">
No PMKID results.
</div>
<div ng-if="pmkids.length === 0 && pmkidsLoading">
<img src="img/throbber.gif">
</div>
</div>
</div>
</div>
<div class="col-md-6" ng-controller="PMKIDAttack_ScanSettings">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">
Scan Settings
<span class="label label-warning" ng-show="captureRunning">Running Attack on {{ $root.bssid }}</span>
</h3>
</div>
<div class="panel-body">
<div class="col-md-8">
<div class="row">
<div class="input-group">
<div ng-show="device == 'tetra'">
<label class="radio-inline"><input type="radio" ng-model="scanType" value="0"
ng-disabled="running">2.4GHz</label>
<label class="radio-inline"><input type="radio" ng-model="scanType" value="1"
ng-disabled="running">5GHz</label>
<label class="radio-inline"><input type="radio" ng-model="scanType" value="2"
ng-disabled="running">Both</label>
</div>
<label class="checkbox-inline"><input type="checkbox" ng-model="scanSettings.live"
ng-disabled="running || scanSettings.scanDuration === '0'"
ng-change="updateScanSettings()">Live</label>
</div>
</div>
<br/>
<div class="row form-inline">
<select class="fixed-width-200 form-control" ng-model="scanSettings.scanDuration"
ng-change="updateScanSettings()" ng-disabled="running">
<option value="0">Continuous</option>
<option value="30">30 Seconds</option>
<option value="60">1 Minute</option>
<option value="120">2 Minutes</option>
<option value="300">5 Minutes</option>
<option value="600">10 Minutes</option>
</select>
<br/><br/>
<div class="btn-group">
<button type="button" class="btn btn-default" ng-click="startScan()"
ng-disabled="running">
<span ng-show="!running">Start</span>
<img class="button-throbber" ng-show="running" src="img/throbber.gif">
</button>
</button>
<button type="button" class="btn btn-default" ng-click="pauseLiveScan()"
ng-show="scanSettings.live && running && !paused && !captureRunning"
ng-disabled="!scanSettings.live && !running">Pause
</button>
<button type="button" class="btn btn-default" ng-click="resumeLiveScan()"
ng-show="scanSettings.live && running && paused && !captureRunning"
ng-disabled="!scanSettings.live && !running">Resume
</button>
<button type="button" class="btn btn-default" ng-click="stopAttack()"
ng-show="captureRunning">Stop Attack
</button>
<button type="button" class="btn btn-default"
data-toggle="modal" data-target="#viewLog"
ng-show="captureRunning"
ng-disabled="$root.pmkidLog.length === 0">View Log
</button>
<button type="button" class="btn btn-default" ng-click="stopScan()"
ng-disabled="!running">Stop
</button>
</div>
</div>
<div class="row">
<br/>
<div class="progress" ng-show="running && scanSettings.scanDuration > 0">
<div class="progress-bar progress-bar-striped active" role="progressbar"
aria-valuenow="{{ percent }}" aria-valuemin="0" aria-valuemax="100"
style="width: {{ percent }}%">{{ percent | roundCeil }}%
</div>
<div class="alert well-sm alert-danger" ng-show="error">{{ error }}</div>
</div>
</div>
</div>
</div>
<div class="panel-footer" ng-show="!pineAPDRunning">
<div class="alert alert-info">
<strong>Notice:</strong> In order to use Recon, PineAP must first be enabled.<br/>
<button class="btn btn-default" ng-click="startPineAP()" ng-disabled="pineAPDStarting">
<span ng-hide="pineAPDStarting">Start PineAP</span>
<img class="button-throbber" ng-show="pineAPDStarting" src="img/throbber.gif">
</button>
</div>
</div>
</div>
</div>
</div>
<div class="row" ng-show="$root.installedDependencies">
<div class="col-md-12" ng-controller="PMKIDAttack_ScanResults">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">
Scan Results
<span ng-show="$root.accessPoints.length" class="badge">{{ $root.accessPoints.length }}</span>
</h3>
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table table-hover" ng-hide="($root.accessPoints.length == 0)">
<thead>
<tr class="default-cursor">
<th ng-click="orderByName='ssid'; reverseSort = !reverseSort">SSID <span
ng-show="orderByName=='ssid'"><span class="caret" ng-show="reverseSort"></span><span
class="caret caret-reversed" ng-show="!reverseSort"></span></span></th>
<th ng-click="orderByName='bssid'; reverseSort = !reverseSort">MAC <span
ng-show="orderByName=='bssid'"><span class="caret"
ng-show="reverseSort"></span><span
class="caret caret-reversed" ng-show="!reverseSort"></span></span></th>
<th ng-click="orderByName='encryption'; reverseSort = !reverseSort">Security <span
ng-show="orderByName=='encryption'"><span class="caret"
ng-show="reverseSort"></span><span
class="caret caret-reversed" ng-show="!reverseSort"></span></span></th>
<th ng-click="orderByName='wps'; reverseSort = !reverseSort">WPS <span
ng-show="orderByName=='wps'"><span class="caret" ng-show="reverseSort"></span><span
class="caret caret-reversed" ng-show="!reverseSort"></span></span></th>
<th ng-click="orderByName='channel'; reverseSort = !reverseSort">Channel <span
ng-show="orderByName=='channel'"><span class="caret"
ng-show="reverseSort"></span><span
class="caret caret-reversed" ng-show="!reverseSort"></span></span></th>
<th ng-click="orderByName='power'; reverseSort = !reverseSort">Signal <span
ng-show="orderByName=='power'"><span class="caret"
ng-show="reverseSort"></span><span
class="caret caret-reversed" ng-show="!reverseSort"></span></span></th>
<th ng-click="orderByName='lastSeen'; reverseSort = !reverseSort">Last Seen <span
ng-show="orderByName=='lastSeen'"><span class="caret"
ng-show="reverseSort"></span><span
class="caret caret-reversed" ng-show="!reverseSort"></span></span></th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="accessPoint in $root.accessPoints|orderBy:orderByName:reverseSort"
ng-show="accessPoint.encryption != 'Open'">
<td class="autoselect">
<span class="text-info" ng-hide="accessPoint.ssid"><i>Hidden</i></span>
{{ accessPoint.ssid }}
</td>
<td>
<span ng-bind-html="(hasNote(accessPoint.bssid) === true ? accessPoint.bssid.italics() : accessPoint.bssid) | rawHTML"></span>
</td>
<td>
{{ accessPoint.encryption }}
</td>
<td>{{ (accessPoint.wps == 1) ? "Yes" : "No" }}</td>
<td>{{ (accessPoint.channel == 0) ? "Wi-Fi Direct" : accessPoint.channel }}</td>
<td>{{ accessPoint.power }}</td>
<td class="autoselect">{{ accessPoint.lastSeen | timesinceepoch }}</td>
<td>
<button type="button" ng-click="startAttack(accessPoint.ssid, accessPoint.bssid)"
ng-disabled="$root.running || $root.captureRunning"
class="btn btn-default btn-xs">Attack
</button>
</td>
</tr>
</tbody>
</table>
</div>
<div ng-if="($root.accessPoints.length === 0) && !running">
No scan results.
</div>
<div ng-if="($root.accessPoints.length === 0) && running">
<img src="img/throbber.gif">
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div id="PMKIDAttack_Log" class="panel panel-default ng-scope" ng-controller="PMKIDAttack_Log">
<div class="panel-heading pointer" data-toggle="collapse" data-target="#log">
<h3 class="panel-title">
Log
<button class="btn btn-default btn-xs btn-fixed-length pull-right" ng-click="clearLog(); $event.stopPropagation();">
Clear
</button>
<button class="btn btn-default btn-xs btn-fixed-length pull-right" ng-click="refreshLog(); $event.stopPropagation();">
Refresh
</button>
</h3>
</div>
<div id="log" class="panel-collapse collapse">
<div class="panel-body">
<img ng-show="moduleLogLading" src="img/throbber.gif">
<p ng-show="moduleLog === '' && !moduleLogLading">No log entries found yet.</p>
<pre class="scrollable-pre log-pre ng-binding" ng-hide="moduleLog === ''">{{ moduleLog }}</pre>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="viewLog" tabindex="-1" role="dialog" aria-labelledby="captureModalLabel"
style="display: none;">
<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 ng-binding" id="captureModalLabel">View Log</h4>
</div>
<div class="modal-body">
<pre class="scrollable-pre log-pre ng-binding">{{ $root.pmkidLog }}</pre>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script type="text/javascript">
// dirty hack for handle bootstrap events
$(function() {
$('#PMKIDAttack_Log').on('shown.bs.collapse', function (event) {
angular.element(event.currentTarget).scope().refreshLog();
});
});
</script>