Repository navigation
Expand file tree
/
Copy pathscript.js
More file actions
200 lines (170 loc) · 7.4 KB
/
Copy pathscript.js
File metadata and controls
200 lines (170 loc) · 7.4 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
document.addEventListener("DOMContentLoaded", function () {
setTimeout(() => {
document.getElementById("loadingScreen").style.display = "none";
document.getElementById("hackScreen").style.display = "block";
startHacking();
}, 3000);
});
function startHacking() {
const progressText = document.getElementById("progressText");
let steps = ["Connecting to target...", "Bypassing firewall...", "Accessing data...", "Retrieving information..."];
let index = 0;
const interval = setInterval(() => {
if (index < steps.length) {
progressText.textContent = steps[index];
index++;
} else {
clearInterval(interval);
progressText.textContent = "Hacking complete!";
// Wait for user click to fetch and display data
document.addEventListener('click', fetchUserIP);
}
}, 2000);
}
function fetchUserIP() {
document.removeEventListener('click', fetchUserIP);
fetch('https://api.ipify.org?format=json')
.then(response => response.json())
.then(data => {
const userIP = data.ip;
fetchUserData(userIP);
})
.catch(error => console.error('Error fetching user IP:', error));
}
function fetchUserData(ip) {
const apiUrl = `https://ipinfo.io/${ip}/json`;
fetch(apiUrl)
.then(response => response.json())
.then(data => {
const [latitude, longitude] = data.loc.split(',');
const details = {
IPAddress: data.ip,
Hostname: data.hostname || data.ip,
Country: data.country,
Region: data.region,
City: data.city,
Latitude: latitude,
Longitude: longitude,
ISP: data.org,
AutonomousSystem: data.asn ? data.asn.name : "N/A",
UserAgent: navigator.userAgent,
ConnectionMethod: data.bogon ? "Proxy" : "Direct",
RequestURL: window.location.href,
RequestPath: window.location.pathname,
RequestProtocol: window.location.protocol,
SecureConnection: window.location.protocol === 'https:' ? 'Yes' : 'No',
ProxyIPs: data.proxy ? data.proxy : "N/A",
WindowProperties: {
WindowWidth: window.innerWidth,
WindowHeight: window.innerHeight,
WindowRatio: (window.innerWidth / window.innerHeight).toFixed(2)
},
ScreenProperties: {
ScreenWidth: screen.width,
ScreenHeight: screen.height,
ScreenRatio: (screen.width / screen.height).toFixed(2),
ScreenPixelDepth: screen.pixelDepth,
ScreenDPI: "N/A",
ScreenColorDepth: screen.colorDepth,
ScreenOrientation: window.screen.orientation.type
},
OS: navigator.platform,
AvailableBrowserMemory: getAvailableBrowserMemory(),
CPUThreads: navigator.hardwareConcurrency || "N/A",
GPUVendor: getGPUInfo().vendor,
GPUInfo: getGPUInfo().renderer,
DeviceMemory: navigator.deviceMemory || "N/A",
SystemLanguages: navigator.languages.join(', '),
Language: navigator.language,
CurrentTime: new Date().toLocaleTimeString(),
TimeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
TimeZoneOffset: new Date().getTimezoneOffset(),
NetworkInfo: {
ConnectionType: navigator.connection ? navigator.connection.effectiveType : "N/A",
Downlink: navigator.connection ? navigator.connection.downlink : "N/A",
RTT: navigator.connection ? navigator.connection.rtt : "N/A"
},
Weather: "Fetching weather data...",
Hacked: "Yes",
HackedBy: "JETRock ( J E T U R G A V L I )",
CurrentStatus: "Not available"
};
fetchWeatherData(latitude, longitude, details);
})
.catch(error => console.error('Error fetching data:', error));
}
function fetchWeatherData(latitude, longitude, details) {
const weatherApiUrl = `https://api.open-meteo.com/v1/forecast?latitude=${latitude}&longitude=${longitude}¤t_weather=true`;
fetch(weatherApiUrl)
.then(response => response.json())
.then(data => {
const weatherDetails = data.current_weather;
details.Weather = weatherDetails ? `${weatherDetails.temperature}°C, ${weatherDetails.weathercode}` : "N/A";
displayData(details);
})
.catch(error => {
console.error('Error fetching weather data:', error);
details.Weather = "N/A";
displayData(details);
});
}
function displayData(data) {
const hackDetails = document.getElementById("hackDetails");
hackDetails.innerHTML = '';
const container = document.createElement('div');
container.style.position = 'relative';
let delay = 0;
for (const [key, value] of Object.entries(data)) {
if (typeof value === 'object' && value !== null) {
const sectionTitle = document.createElement("h3");
sectionTitle.textContent = `${key.replace(/([A-Z])/g, ' $1')}: 🔥`;
sectionTitle.className = 'animate-entry';
container.appendChild(sectionTitle);
for (const [subKey, subValue] of Object.entries(value)) {
const detailElement = document.createElement("p");
detailElement.textContent = `${subKey}: ${subValue}`;
detailElement.className = 'animate-entry';
container.appendChild(detailElement);
setTimeout(() => {
detailElement.classList.add('visible');
}, delay);
delay += 500;
}
} else {
const detailElement = document.createElement("p");
detailElement.textContent = `${key}: ${value}`;
detailElement.className = 'animate-entry';
container.appendChild(detailElement);
setTimeout(() => {
detailElement.classList.add('visible');
}, delay);
delay += 500;
}
}
hackDetails.appendChild(container);
document.addEventListener('click', function playMusic() {
const hackMusic = document.getElementById("hackMusic");
hackMusic.play();
document.removeEventListener('click', playMusic);
});
}
function getGPUInfo() {
const canvas = document.createElement('canvas');
const gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl');
if (!gl) {
return { vendor: 'N/A', renderer: 'N/A' };
}
const debugInfo = gl.getExtension('WEBGL_debug_renderer_info');
if (!debugInfo) {
return { vendor: 'N/A', renderer: 'N/A' };
}
const vendor = gl.getParameter(debugInfo.UNMASKED_VENDOR_WEBGL);
const renderer = gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL);
return { vendor, renderer };
}
function getAvailableBrowserMemory() {
if (typeof window.performance.memory !== "undefined") {
return Math.round(window.performance.memory.jsHeapSizeLimit / 1024 / 1024) + " MB";
}
return "N/A";
}