-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsourcecode.html
267 lines (255 loc) · 10.5 KB
/
sourcecode.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Location, Time & IP</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" />
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
background: linear-gradient(to bottom, #3a6186, #89253e);
color: #fff;
text-align: center;
flex-direction: column;
}
.container {
background: rgba(0, 0, 0, 0.6);
padding: 20px 40px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
max-width: 400px;
width: 100%;
margin-bottom: 20px;
}
h1 {
margin-bottom: 20px;
}
p {
margin: 10px 0;
}
.loading {
font-style: italic;
color: #f0e68c;
}
#map {
height: 300px;
width: 100%;
border-radius: 10px;
}
button {
margin-top: 20px;
padding: 10px 20px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: #45a049;
}
/* Modal Styles */
#modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
justify-content: center;
align-items: center;
z-index: 1000;
}
#modal-content {
background: #fff;
padding: 20px;
border-radius: 10px;
text-align: center;
width: 80%;
max-width: 400px;
}
#modal img {
max-width: 100%;
border-radius: 10px;
}
#close-btn {
margin-top: 10px;
padding: 8px 16px;
background-color: #f44336;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
#close-btn:hover {
background-color: #d32f2f;
}
/* DOXXING Section */
.doxxing-container {
margin-top: 30px;
background-color: rgba(0, 0, 0, 0.6);
padding: 20px;
border-radius: 10px;
width: 80%;
max-width: 400px;
text-align: center;
}
.doxxing-container input {
padding: 10px;
width: 80%;
margin-top: 10px;
border: 1px solid #fff;
border-radius: 5px;
color: #000;
}
.doxxing-container button {
margin-top: 10px;
padding: 10px 20px;
background-color: #007bff;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
.doxxing-container button:hover {
background-color: #0056b3;
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.4.1/html2canvas.min.js"></script>
</head>
<body>
<div class="container" id="info-container">
<h1>Location, Time & IP Info</h1>
<p id="ny-time">New York Time: <span class="loading">Loading...</span></p>
<p id="ip-address">Your IP: <span class="loading">Loading...</span></p>
<p id="hostname">Hostname: <span class="loading">Loading...</span></p>
<p id="city">City: <span class="loading">Loading...</span></p>
<p id="region">Region: <span class="loading">Loading...</span></p>
<p id="country">Country: <span class="loading">Loading...</span></p>
<p id="location">Location: <span class="loading">Loading...</span></p>
<p id="latitude">Latitude: <span class="loading">Loading...</span></p>
<p id="longitude">Longitude: <span class="loading">Loading...</span></p>
<p id="org">ISP Organization: <span class="loading">Loading...</span></p>
<p id="postal">Postal Code: <span class="loading">Loading...</span></p>
</div>
<div id="map"></div>
<!-- Button for opening the modal -->
<button onclick="copyToClipboard()">Copy Info to Clipboard</button>
<!-- Modal for showing the image -->
<div id="modal">
<div id="modal-content">
<h2>Right-click to Save Image</h2>
<p>Click the button below to close the modal.</p>
<img id="modal-image" src="" alt="Generated Image" />
<button id="close-btn" onclick="closeModal()">Close</button>
</div>
</div>
<!-- DOXXING Section -->
<div class="doxxing-container">
<h2>DOXXING</h2>
<p>Type in an IP address and we get all the information from it.</p>
<input type="text" id="ip-input" placeholder="Enter IP Address">
<button onclick="fetchIPInfo()">Get Info</button>
<div id="ip-info-output"></div>
</div>
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
<script>
// Function to fetch and display New York time
function updateNYTime() {
const nyTime = new Date().toLocaleString("en-US", { timeZone: "America/New_York" });
document.getElementById("ny-time").innerText = `New York Time: ${nyTime}`;
}
// Update NY time every second
setInterval(updateNYTime, 1000);
updateNYTime();
// Fetch user's public IP and location using ipinfo.io API
fetch("https://ipinfo.io/json?token=28161049dc13c0") // Replace YOUR_API_KEY with a free token from ipinfo.io
.then(response => response.json())
.then(data => {
// Update IP and related info
document.getElementById("ip-address").innerText = `Your IP: ${data.ip}`;
document.getElementById("hostname").innerText = `Hostname: ${data.hostname}`;
document.getElementById("city").innerText = `City: ${data.city}`;
document.getElementById("region").innerText = `Region: ${data.region}`;
document.getElementById("country").innerText = `Country: ${data.country}`;
document.getElementById("postal").innerText = `Postal Code: ${data.postal}`;
document.getElementById("org").innerText = `ISP Organization: ${data.org}`;
// Latitude and Longitude
const [lat, lon] = data.loc.split(',');
document.getElementById("latitude").innerText = `Latitude: ${lat}`;
document.getElementById("longitude").innerText = `Longitude: ${lon}`;
// Display map with user's location (using the location from the IP)
initializeMap(lat, lon);
// Display full location info
document.getElementById("location").innerText = `Location: ${data.city}, ${data.region}, ${data.country}`;
})
.catch(error => {
console.error("Error fetching IP data:", error);
document.getElementById("ip-address").innerText = "Error fetching IP.";
document.getElementById("location").innerText = "Error fetching location.";
});
// Function to initialize map using Leaflet
function initializeMap(lat, lon) {
const map = L.map('map').setView([lat, lon], 13);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
L.marker([lat, lon]).addTo(map);
}
// Function to handle the "DOXXING" feature and get info for a custom IP
function fetchIPInfo() {
const ipAddress = document.getElementById("ip-input").value;
fetch(`https://ipinfo.io/${ipAddress}/json?token=28161049dc13c0`) // Replace YOUR_API_KEY with a free token
.then(response => response.json())
.then(data => {
let info = `
New York Time: ${document.getElementById("ny-time").innerText}
Your IP: ${data.ip}
Hostname: ${data.hostname}
City: ${data.city}
Region: ${data.region}
Country: ${data.country}
Location: ${data.city}, ${data.region}, ${data.country}
Latitude: ${data.loc.split(',')[0]}
Longitude: ${data.loc.split(',')[1]}
ISP Organization: ${data.org}
Postal Code: ${data.postal}
`;
document.getElementById("ip-info-output").innerText = info;
})
.catch(error => {
console.error("Error fetching IP info:", error);
document.getElementById("ip-info-output").innerText = "Error fetching IP information.";
});
}
// Function to copy the current information to the clipboard
function copyToClipboard() {
const infoText = `
New York Time: ${document.getElementById("ny-time").innerText}
Your IP: ${document.getElementById("ip-address").innerText}
Hostname: ${document.getElementById("hostname").innerText}
City: ${document.getElementById("city").innerText}
Region: ${document.getElementById("region").innerText}
Country: ${document.getElementById("country").innerText}
Location: ${document.getElementById("location").innerText}
Latitude: ${document.getElementById("latitude").innerText}
Longitude: ${document.getElementById("longitude").innerText}
ISP Organization: ${document.getElementById("org").innerText}
Postal Code: ${document.getElementById("postal").innerText}
`;
navigator.clipboard.writeText(infoText).then(() => {
alert("Information copied to clipboard!");
}).catch(err => {
console.error("Error copying text: ", err);
});
}
</script>
</body>
</html>