-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.php
More file actions
75 lines (72 loc) · 3 KB
/
index.php
File metadata and controls
75 lines (72 loc) · 3 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
<?php
require_once("Wicker.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?=$wicker->head("Dashboard")?>
</head>
<body>
<?=$wicker->heading()?>
<div class="container-fluid">
<div class="row">
<?=$wicker->menu("index")?>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<h1 class="page-header">Dashboard</h1>
<div class="row placeholders">
<div class="col-xs-6 col-sm-3 placeholder">
<h2><?=(($wicker->capfiles() == null) ? 0 : $wicker->capfiles())?></h2>
<span class="text-muted">.Cap Files</span>
</div>
<div class="col-xs-6 col-sm-3 placeholder">
<h2>0%</h2>
<span class="text-muted">Success Rate</span>
</div>
<div class="col-xs-6 col-sm-3 placeholder">
<h2>1,623,275,482</h2>
<span class="text-muted">Passwords</span>
</div>
<div class="col-xs-6 col-sm-3 placeholder">
<h2>0</h2>
<span class="text-muted">Active Operations</span>
</div>
</div>
<h2 class="sub-header">Uploaded .caps</h2>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>Actions</th>
<th>ESSID</th>
<th>BSSID</th>
<th>Password</th>
<th>Uploaded</th>
</tr>
</thead>
<tbody>
<?php
$statement = $wicker->db->con()->prepare("SELECT * FROM `caps` WHERE `status` = ? ORDER BY `id` DESC");
$statement->execute(array(0));
for ($a = 0; $a < $statement->rowCount(); $a++) {
$info = $statement->fetchObject();
$cap = CapFile::fromDB($info->id);
?>
<tr>
<td><a href="view.php?id=<?=$cap->getID()?>">View</a> | <a href="ctl.php?cmd=hide&id=<?=$cap->getID()?>">Hide</a></td>
<td><?=$cap->getESSID()?></td>
<td><?=strtoupper($cap->getBSSID())?></td>
<td><?=$cap->getPassword()?></td>
<td><?=$wicker->timeconv($cap->getTimestamp())?>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?=$wicker->footer()?>
</body>
</html>