Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // === DYNAMISCHES HTML EINFÜGEN ===
- (function () {
- const pageHTML = `
- <div class="page-container">
- <header>
- <h1>Die Seed-Generator Challenge</h1>
- </header>
- <main class="challenge-main">
- <div class="challenge-container">
- <button id="generate-seed-btn" class="challenge-button">Probier mich aus!</button>
- <div id="seed-output-container">
- <p>Generated Seed: <span id="seed-output"></span></p>
- </div>
- </div>
- </main>
- <footer>
- <div class="footer-content">
- <span>J.Apps</span>
- <a href="about.html" rel="noreferrer noopener" class="challenge-link">About</a>
- <a href="discord.html" rel="noreferrer noopener" class="challenge-link1">Discord</a>
- <span>© 2024-2025 J. Apps, All Rights Reserved.</span>
- <div id="session-uuid"></div>
- <label class="switch">
- <input type="checkbox" id="dark-mode-toggle">
- <span class="slider round"></span>
- <span class="dark-mode-lable">Dark Mode</span>
- </label>
- </div>
- </footer>
- </div>
- `;
- document.body.innerHTML = pageHTML;
- // Hier kommt dein OBFUSZIERTER Seed-Generator-Code!
- // ... (alles was du vorher hattest, aber jetzt ohne HTML-Struktur)
- // Der Rest deines Codes folgt hier – mit Event-Listenern usw.
- })();
- class FinjasChaosGenerator {
- constructor() {
- this.SEED_LENGTH = 42;
- this.FLOAT_MAP = {
- "0": 0.123,
- "1": 2.313,
- "2": 4.14,
- "3": 1.2413,
- "4": 5.003,
- "5": 3.442,
- "6": 1.999,
- "7": 0.991,
- "8": 3.888,
- "9": 0.777
- };
- this.CHAOS_WORDS = ["ABYSS", "QUANTUM", "FINJA", "VOID", "ENTROPY", "GLITCH", "PARADOX", "NEBULA", "RNGESUS", "42", "SCHROEDINGER", "LOVECRAFT", "ENTROPIA", "NULLPOINTER"];
- this.CHAOS_QUOTES = ["RANDOM_DIGITS_ARE_SIN", "GOD_DOES_NOT_PLAY_DICE", "CHAOS_IS_A_LADDER", "ENTROPY_WINS_AGAIN", "SEEDS_ARE_ILLUSIONS"];
- this.mouseEntropy = [];
- this._setupMouseTracking();
- }
- _setupMouseTracking() {
- const event_handler = event => {
- if (this.mouseEntropy.length < 50) {
- this.mouseEntropy.push({
- x: event.clientX,
- y: event.clientY,
- t: Date.now() % 10000
- });
- }
- };
- document.addEventListener("mousemove", event_handler);
- document.addEventListener("click", event_handler);
- }
- getRandomBytes(length = 32) {
- const bArr = new Uint8Array(length);
- crypto.getRandomValues(bArr);
- return Array.from(bArr).map(el => el.toString(16).padStart(2, "0")).join("");
- }
- generateULID() {
- const _0x581c45 = Date.now().toString(32).padStart(10, "0").toUpperCase();
- const _0x6bbb99 = this.getRandomBytes(10).substring(0, 16).toUpperCase();
- return _0x581c45 + _0x6bbb99;
- }
- async sha256(input) {
- const bArr = new TextEncoder().encode(input);
- const digest = await crypto.subtle.digest("SHA-256", bArr);
- return Array.from(new Uint8Array(digest)).map(el => el.toString(16).padStart(2, "0")).join("");
- }
- rollD20() {
- return Math.floor(Math.random() * 20) + 1;
- }
- rollW6() {
- return Math.floor(Math.random() * 6) + 1;
- }
- rollW4() {
- return Math.floor(Math.random() * 4) + 1;
- }
- shuffleString(string) {
- const letters = string.split("");
- for (let index = letters.length - 1; index > 0; index--) {
- const random_index = Math.floor(Math.random() * (index + 1));
- [letters[index], letters[random_index]] = [letters[random_index], letters[index]];
- }
- return letters.join("");
- }
- chaoticFlip(value) {
- const random_sign = Math.random() < 0.5 ? 1 : -1;
- const random_seed = [2, 0.5, 1.337, 3.1415, 2.71828, 42][Math.floor(Math.random() * 6)];
- const final_value = value * random_sign * random_seed;
- return Math.abs(Math.floor(final_value)) || 1;
- }
- generateBIP39Phrase() {
- const bip39_words = ["abandon", "ability", "able", "about", "above", "absent", "absorb", "abstract", "absurd", "abuse", "access", "accident", "account", "accuse", "achieve", "acid", "acoustic", "acquire", "across", "act", "action", "actor", "actress", "actual", "adapt", "add", "addict", "address", "adjust", "admit", "adult", "advance", "advice", "aerobic", "affair", "afford", "afraid", "again", "age", "agent", "agree", "ahead", "aim", "air", "airport", "aisle", "alarm", "album", "alcohol", "alert", "alien", "all", "alley", "allow", "almost", "alone", "alpha", "already", "also", "alter", "always", "amateur", "amazing", "among", "amount", "amused", "analyst", "anchor", "ancient", "anger", "angle", "angry", "animal", "ankle", "announce", "annual", "another", "answer", "antenna", "antique", "anxiety", "any", "apart", "apology", "appear", "apple", "approve", "april", "arch", "arctic", "area", "arena", "argue", "arm", "armed", "armor", "army", "around", "arrange", "arrest", "arrive", "arrow", "art", "artefact", "artist", "artwork", "ask", "aspect", "assault", "asset", "assist", "assume", "asthma", "athlete", "atom", "attack", "attend", "attitude", "attract", "auction", "audit", "august", "aunt", "author", "auto", "autumn", "average", "avocado", "avoid", "awake", "aware", "away", "awesome", "awful", "awkward", "axis", "baby", "bachelor", "bacon", "badge", "bag", "balance", "balcony", "ball", "bamboo", "banana", "banner", "bar", "barely", "bargain", "barrel", "base", "basic", "basket", "battle", "beach", "bean", "beauty", "because", "become", "beef", "before", "begin", "behave", "behind", "believe", "below", "belt", "bench", "benefit", "best", "betray", "better", "between", "beyond", "bicycle", "bid", "bike", "bind", "biology", "bird", "birth", "bitter", "black", "blade", "blame", "blanket", "blast", "bleak", "bless", "blind", "blood", "blossom", "blouse", "blue", "blur", "blush", "board", "boat", "body", "boil", "bomb", "bone", "bonus", "book", "boost", "border", "boring", "borrow", "boss", "bottom", "bounce", "box", "boy", "bracket", "brain", "brand", "brass", "brave", "bread", "breeze", "brick", "bridge", "brief", "bright", "bring", "brisk", "broccoli", "broken", "bronze", "broom", "brother", "brown", "brush", "bubble", "buddy", "budget", "buffalo", "build", "bulb", "bulk", "bullet", "bundle", "bunker", "burden", "burger", "burst", "bus", "business", "busy", "butter", "buyer", "buzz", "cabbage", "cabin", "cable", "cactus", "cage", "cake", "call"];
- const seeds = [];
- for (let i = 0; i < 12; i++) {
- const bArr = new Uint32Array(1);
- crypto.getRandomValues(bArr);
- seeds.push(bip39_words[bArr[0] % bip39_words.length]);
- }
- return seeds.join(" ");
- }
- async fakeZKPChaos(_0x2a4d31) {
- const random_phrases = ["I_KNOW_THE_SEED_WITHOUT_KNOWING_IT", "PROOF_OF_CHAOS_WITHOUT_REVEALING_ORDER", "VERIFIABLE_RANDOM_FUNCTION_SIMULATION"];
- const random_phrase = random_phrases[Math.floor(Math.random() * random_phrases.length)];
- const proof = (await this.sha256(random_phrase + Date.now().toString())).substring(0, 32);
- _0x2a4d31.ZK_Proof_Commitment = proof;
- _0x2a4d31.ZK_Statement = random_phrase;
- _0x2a4d31.ZK_Trust_Level = Math.floor(Math.random() * 958) + 42;
- }
- blockchainSimulationChaos() {
- const memecoins = ["DOGE", "SHIB", "BONK", "WOJAK", "PEPE", "FINJA"];
- return {
- Simulated_Block_Height: Math.floor(Math.random() * 930579) + 69420,
- Fake_Gas_Price_Gwei: Math.floor(Math.random() * 1000) + 1,
- Validator_Consensus: ["POS", "POW", "POOL", "MADNESS"][Math.floor(Math.random() * 4)],
- Meme_Coin_Of_The_Day: memecoins[Math.floor(Math.random() * memecoins.length)],
- NFT_Rugpull_Probability: Math.floor(Math.random() * 99) + 1 + "%"
- };
- }
- temporalCryptoApocalypse() {
- const _0x550d03 = new Date();
- const _0x52f2b5 = _0x550d03.getHours();
- const _0x448ad5 = _0x550d03.getMinutes();
- let _0x4ef90c;
- let _0xa62eed;
- let _0x93ebf3;
- if (_0x52f2b5 === 4) {
- [_0x4ef90c, _0xa62eed, _0x93ebf3] = ["QUANTUM_BREAK_IMMINENT", "SWITCH_TO_SUPER_QUANTUM_RESISTANT_NOTHING", "CRITICAL"];
- } else if (_0x52f2b5 === 13 && _0x448ad5 === 37) {
- [_0x4ef90c, _0xa62eed, _0x93ebf3] = ["SCRIPT_KIDDIE_ATTACK_PEAK", "DEPLOY_MLG_360_NOSCOPE_DEFENSE", "MEMETIC"];
- } else if (_0x52f2b5 === 23) {
- [_0x4ef90c, _0xa62eed, _0x93ebf3] = ["MIDNIGHT_CRYPTO_ANXIETY", "GENERATE_EXTRA_RANDOM_BYTES_FOR_COMFORT", "PSYCHOLOGICAL"];
- } else if (_0x52f2b5 % 6 === 0) {
- [_0x4ef90c, _0xa62eed, _0x93ebf3] = ["ROUTINE_ENTROPY_HARVESTING", "BUSINESS_AS_USUAL_CHAOS", "NORMAL"];
- } else {
- _0x4ef90c = "UNKNOWN_CRYPTO_EVENT";
- _0xa62eed = "MONITOR_AND_DRINK_COFFEE";
- _0x93ebf3 = ["LOW", "MEDIUM", "HIGH"][Math.floor(Math.random() * 3)];
- }
- return {
- Temporal_Threat_Level: _0x4ef90c,
- Recommended_Response: _0xa62eed,
- Threat_Severity: _0x93ebf3,
- Apocalypse_Countdown: Math.floor(Math.random() * 10000) + 1,
- Y2K38_Readiness: Date.now() < 2147483647000 ? "PROBABLY_FINE" : "TOO_LATE"
- };
- }
- cryptographicEasterEggs(_0x180948) {
- const _0x4ceaa6 = {
- Backdoor_Detection: "SEARCHING_FOR_NSA_BACKDOOR..._NOT_FOUND_MAYBE",
- SHA1_Collision_Fear: "STILL_BETTER_THAN_MD5",
- Alice_Bob_Reference: "ALICE_SENDS_TO_BOB_BUT_EVE_DOESNT_CARE",
- Rubberhose_Deniability: "I_KNOW_NOTHING"
- };
- if (Math.random() < 0.4) {
- const _0x425af7 = Object.keys(_0x4ceaa6);
- const _0x1bf285 = _0x425af7[Math.floor(Math.random() * _0x425af7.length)];
- _0x180948["Easter_Egg_" + _0x1bf285] = _0x4ceaa6[_0x1bf285];
- }
- }
- async generateSeed(input_word = "Finja") {
- const base_set = {
- Input_Word: input_word,
- Nano_Timestamp: Date.now() * 1000000 + performance.now(),
- Browser_Entropy_Seed: this.getRandomBytes(32),
- ULID_Simulated: this.generateULID(),
- BIP39_Phrase: this.generateBIP39Phrase(),
- User_Agent: navigator.userAgent.substring(0, 50) + "...",
- Screen_Resolution: screen.width + "x" + screen.height,
- Browser_Language: navigator.language,
- Timezone_Offset: new Date().getTimezoneOffset()
- };
- if (this.mouseEntropy.length > 0) {
- const mouse_entropy = this.mouseEntropy.map(_0x4aaeca => _0x4aaeca.x + "," + _0x4aaeca.y + "," + _0x4aaeca.t).join(";");
- base_set.Mouse_Entropy = mouse_entropy;
- } else {
- base_set.Mouse_Entropy = "NO_MOUSE_MOVEMENT_DETECTED";
- }
- await this.fakeZKPChaos(base_set);
- Object.assign(base_set, this.blockchainSimulationChaos());
- Object.assign(base_set, this.temporalCryptoApocalypse());
- this.cryptographicEasterEggs(base_set);
- const drama_roll = this.rollD20();
- const chaos_intensity = this.rollW6();
- const transform_mode = this.rollW4();
- base_set.D20_Drama_Roll = drama_roll;
- base_set.W6_Chaos_Intensity = chaos_intensity;
- base_set.W4_Transform_Mode = transform_mode;
- base_set.Chaos_Quote = this.CHAOS_QUOTES[Math.floor(Math.random() * this.CHAOS_QUOTES.length)];
- let joined_base_set = Object.values(base_set).join("|");
- const base_set_hash = await this.sha256(joined_base_set);
- const random_chaos_word_index = base_set_hash.charCodeAt(0) % this.CHAOS_WORDS.length;
- const random_chaos_word = this.CHAOS_WORDS[random_chaos_word_index];
- joined_base_set += random_chaos_word;
- let updated_joined_base_set = await this.sha256(joined_base_set);
- for (let i = 0; i < chaos_intensity + 2; i++) {
- updated_joined_base_set = await this.sha256(updated_joined_base_set);
- }
- if (drama_roll <= 3) {
- updated_joined_base_set = (updated_joined_base_set + updated_joined_base_set).split("").map(_0x59d827 => String.fromCharCode(_0x59d827.charCodeAt(0) ^ 255)).join("");
- base_set.D20_Effect = "CATASTROPHE_INVERSION";
- } else if (drama_roll <= 7) {
- updated_joined_base_set = updated_joined_base_set.split("").reverse().join("");
- base_set.D20_Effect = "REVERSE_ENTROPY";
- } else if (drama_roll >= 18) {
- updated_joined_base_set += "OMNIPOTENT_CHAOS_BLESSING";
- base_set.D20_Effect = "DIVINE_INTERVENTION";
- } else {
- base_set.D20_Effect = "MORTAL_BOREDOM";
- }
- const splitted_hash = updated_joined_base_set.substring(0, 16);
- const base_10_hash = parseInt(splitted_hash, 16) || 1;
- const color_code = "#" + splitted_hash.substring(0, 6);
- const float_array = String(base_10_hash).split("").map(number => this.FLOAT_MAP[number]).filter(Boolean);
- const flips_array = float_array.map(float_numb => this.chaoticFlip(float_numb));
- const chaotic_seed = flips_array.length ? parseInt(flips_array.join("")) : 1;
- const random_numb = Math.floor(Math.random() * 198) + 2;
- const chaotic_numb = chaotic_seed * random_numb;
- const _0x5e81a1 = chaotic_numb % 1000 || 1;// int between 1 and 999
- const chaotic_hash_int = Math.max(1, Math.abs(Math.floor(base_10_hash / _0x5e81a1)));
- const chaotic_final = chaotic_hash_int * (Math.floor(Math.random() * 990) + 10);
- let chaotic_string = String(chaotic_final);
- if (drama_roll <= 3) {
- chaotic_string = "0" + chaotic_string + "0";
- }
- const shuffled_chaotic_string = this.shuffleString(chaotic_string);
- const charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
- let final_seed = "";
- let hashed_chaotic_string = await this.sha256(shuffled_chaotic_string);
- for (let i = 0; i < this.SEED_LENGTH; i++) {
- hashed_chaotic_string = await this.sha256(hashed_chaotic_string);
- const random_index = parseInt(hashed_chaotic_string.substring(0, 8), 16) % charset.length;
- final_seed += charset[random_index];
- }
- this.mouseEntropy = [];
- return {
- Final_Seed: final_seed,
- Generated_Color_Code: color_code,
- D20_Effect: base_set.D20_Effect,
- Meme_Coin_Of_The_Day: base_set.Meme_Coin_Of_The_Day,
- NFT_Rugpull_Probability: base_set.NFT_Rugpull_Probability,
- ZK_Trust_Level: base_set.ZK_Trust_Level,
- Chaos_Quote: base_set.Chaos_Quote
- };
- }
- }
- document.addEventListener("DOMContentLoaded", () => {
- const chaos_gen = new FinjasChaosGenerator();
- const seed_btn = document.getElementById("generate-seed-btn");
- const sedd_output = document.getElementById("seed-output");
- if (!seed_btn || !sedd_output) {
- return;
- }
- seed_btn.addEventListener("click", async () => {
- seed_btn.disabled = true;
- seed_btn.textContent = "🌀 Generiere...";
- sedd_output.textContent = "...";
- try {
- const seed = await chaos_gen.generateSeed("Finja");
- sedd_output.textContent = seed.Final_Seed;
- seed_btn.style.backgroundColor = seed.Generated_Color_Code;
- const color_without_hashtag = seed.Generated_Color_Code.replace("#", "");
- const r = parseInt(color_without_hashtag.substr(0, 2), 16);
- const g = parseInt(color_without_hashtag.substr(2, 2), 16);
- const b = parseInt(color_without_hashtag.substr(4, 2), 16);
- const luminance = (r * 299 + g * 587 + b * 114) / 1000; // luminance of color
- seed_btn.style.color = luminance > 128 ? "#000" : "#fff"; // choose color of the text based on background color
- } catch (err) {
- sedd_output.textContent = "💥 Fehler!";
- } finally {
- seed_btn.disabled = false;
- seed_btn.textContent = "🌪️ Neuen Seed generieren";
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment