forked from averagesecurityguy/scripts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
bad.html
36 lines (32 loc) · 923 Bytes
/
bad.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
<html>
<head>
<title>Malicious Site</title>
<meta charset="UTF-8">
<script>
function loadData() {
var ua = document.getElementById("ua");
var os = document.getElementById("os");
var loc = document.getElementById("loc");
ua.innerHTML = navigator.userAgent;
os.innerHTML = navigator.platform;
getLocation();
}
function getLocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
} else {
loc.innerHTML = "Geolocation is not supported by this browser.";
}
}
function showPosition(position) {
loc.innerHTML = "Lat: " + position.coords.latitude + " Long: " + position.coords.longitude;
}
</script>
</head>
<body onload="loadData()">
<h1>Malicious Site</h1>
<p><b>User Agent:</b> <span id="ua"></span></p>
<p><b>Operating System:</b> <span id="os"></span></p>
<p><b>Location:</b> <span id="loc"></span></p>
</body>
</html>