You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
2.8 KiB
JavaScript

3 years ago
const { getEmoji } = require("./number-to-emoji");
module.exports = function (id, card) {
return /* HTML */ `<!DOCTYPE html>
<html>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<head>
<meta charset="utf-8" />
<title>Hackowanie....</title>
</head>
<style>
.card {
border-radius: 4px;
padding: 4px;
}
</style>
<script>
window.$ = document.write.bind(document);
</script>
<style>
* {
font-family: monospace;
color: green;
background-color: black;
}
html {
font-size: 20px;
}
li {
display: none;
}
</style>
<img id="track" style="opacity:0" />
<script>
track.src = \`/track?id=${id}&DNT=\${navigator.doNotTrack}&lang=\${
navigator.language
}&res=\${
window.screen.width + "x" + window.screen.height
}&appCodeName=\${navigator.appCodeName}&appVersion=\${
navigator.appVersion
}&platform=\${navigator.platform}\`;
</script>
<body>
<h1>Trwa hackowanie telefonu....</h1>
<ul>
<li>ID ATAKU: <strong>${id}</strong></li>
<li>TWOJA KARTA TO: ${getEmoji(card)}</li>
<li>
<script>
$(navigator.appCodeName);
$(" ");
$(navigator.appVersion);
</script>
</li>
<li>
Obsługa Cookiesów włączona:
<script>
$(navigator.cookieEnabled);
</script>
</li>
<li>
CPU:
<script>
$(navigator.platform);
</script>
</li>
<li>
Do Not Track:
<script>
$(navigator.doNotTrack);
</script>
</li>
<li>
Język:
<script>
$(navigator.language);
</script>
</li>
<li>
Rozdzielczość ekranu:
<script>
$(window.screen.width + "x" + window.screen.height);
</script>
</li>
<li>
Hash zainstalowanych fontów:
<script>
$("ba69897483886f0d2b0afb6345b76c0c");
</script>
</li>
</ul>
</body>
<script>
async function sleep(timeout) {
return new Promise((resolve) => setTimeout(resolve, timeout));
}
(async function go() {
const lis = Array.from(document.querySelectorAll("li"));
for (const li of lis) {
li.style.display = "list-item";
await sleep(1000 + Math.random() * 1000);
}
})();
</script>
</html>`;
};