-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathbrowserDetails.php
203 lines (188 loc) · 9.91 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
<?php
require __DIR__ . '/vendor/autoload.php';
?>
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>XSS Exploitation Tool</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/styles.css"/>
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon.ico">
</head>
<body>
<?php
include_once __DIR__ . '/inc/header.inc.php';
?>
<?php
include_once __DIR__ . '/inc/browserNavbar.inc.php';
?>
<div class="container-fluid mb-5">
<?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" style="width: 10%;">Id</th>
<th class="bg-transparent text-light text-center" style="width: 5%;">Online</th>
<th class="bg-transparent text-light text-center" style="width: 10%;">Last Seen Online</th>
<th class="bg-transparent text-light text-center" style="width: 10%;">Hooked Date</th>
<th class="bg-transparent text-light text-center" style="width: 10%;">Platform</th>
<th class="bg-transparent text-light text-center" style="width: 10%;">Browser</th>
<th class="bg-transparent text-light text-center" style="width: 10%;">Browser version</th>
<th class="bg-transparent text-light text-center" style="width: 5%;">Country</th>
<th class="bg-transparent text-light text-center" style="width: 10%;">Public IP</th>
<th class="bg-transparent text-light text-center" style="width: 10%;">Exploited website</th>
<th class="bg-transparent text-light text-center" style="width: 10%;">Action</th>
</tr>
</thead>
<tbody class="fw-light text-center" id="tbody">
<?php
include_once __DIR__ . '/summaryBrowserCard.php';
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row pt-2">
<div class="col-4">
<div class="card bg-dark border-0 technical_details" style="--bs-bg-opacity: .50;">
<?php
include_once __DIR__ . '/technicalDetailsBrowserCard.php';
?>
</div>
</div>
<div class="col-4">
<div class="card bg-dark border-0 geoloc_details" style="--bs-bg-opacity: .50;">
<?php
include_once __DIR__ . '/geolocationBrowserCard.php';
?>
</div>
</div>
<div class="col-4">
<div class="card bg-dark border-0" style="--bs-bg-opacity: .50;">
<div id="svgMap" class="map"></div>
</div>
<script src="./scripts/svg-pan-zoom.js"></script>
<script src="./scripts/svgMap.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['country_code'] ?>: { hooked: 1 }
}
}
});
document.getElementsByClassName('svgMap-tooltip')[0].setAttribute("style","opacity: 0.0;");
</script>
</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 __DIR__ . '/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 __DIR__ . '/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 __DIR__ . '/historyBrowserCard.php';
?>
</div>
</div>
</div>
</div>
<?php
}
?>
</div>
<?php
include_once __DIR__ . '/inc/footer.inc.php';
?>
<script src="./scripts/bootstrap.bundle.js"></script>
<script src="./scripts/jquery-3.7.1.min.js"></script>
<script>
function commandPopUp(url) {
const iframe = document.getElementById("modalFrame");
iframe.src = url;
const modalTitle = document.getElementById("commandModalLabel");
if(url.includes("stealCookies")) {
modalTitle.textContent = "Gathering Information -> Cookies";
} else if(url.includes("takeScreenshot")) {
modalTitle.textContent = "Gathering Information -> Screenshot";
} else if(url.includes("keylogger")) {
modalTitle.textContent = "Gathering Information -> Keylogger";
} else if(url.includes("displayDialogBox")) {
modalTitle.textContent = "User Interaction -> Dialog box";
} else if(url.includes("redirect")) {
modalTitle.textContent = "Phishing -> User redirect";
}
const modal = new bootstrap.Modal(document.getElementById("commandModal"));
modal.show();
return false;
}
</script>
<script src="./scripts/utils.js"></script>
<script>
function refresh(){
const urlParams = new URLSearchParams(window.location.search);
const browserId = urlParams.get('browserId');
if ($('.modal.show').length > 0) {
return;
}
$('#subHeader').load('./inc/subheader.inc.php');
$('#tbody').load('./summaryBrowserCard.php?browserId=' + browserId, function () {
convertUTCToLocal();
});
$('#history').load('./historyBrowserCard.php?browserId=' + browserId + '&page=logs');
}
setInterval("refresh();",3000);
document.addEventListener("DOMContentLoaded", convertUTCToLocal);
</script>
</body>
</html>