Behemoth Cognitive的资料

由用户 Behemoth Cognitive 在 2025/10/04 09:46 保存的版本 5.1

个人信息

Behemoth
Cognitive
guest@xwiki:~$ Access denied.
(function() {
  if (document.readyState === 'loading') {
    document.addEventListener('DOMContentLoaded', initHackTerminal);
  } else {
    initHackTerminal();
  }

  function initHackTerminal() {
    const terminal = document.getElementById('terminal');
    const content = document.getElementById('terminal-content');
    const flashOverlay = document.getElementById('flash-overlay');
    const statusEl = document.getElementById('status');

    if (!terminal || !flashOverlay) return;

    // 等待1秒后开始“破解”
    setTimeout(() => {
      // 清空并开始输入密码
      content.innerHTML = `
        guest@xwiki:~$ 
        
        
      `;

      const inputLine = document.getElementById('input-line');
      const cursor = document.getElementById('cursor');

      // 光标闪烁
      let cursorVisible = true;
      const blink = setInterval(() => {
        cursor.style.opacity = cursorVisible ? '1' : '0';
        cursorVisible = !cursorVisible;
      }, 500);

      // 模拟暴力破解输入
      const password = '0x7F3A9C';
      let i = 0;
      const typeInterval = setInterval(() => {
        if (i < password.length) {
          inputLine.textContent += '*';
          i++;
        } else {
          clearInterval(typeInterval);
          clearInterval(blink);
          cursor.style.display = 'none';

          // === 关键:执行“骇入”白闪 ===
          setTimeout(() => {
            // 第一次白闪
            flashOverlay.style.opacity = '1';
            setTimeout(() => {
              flashOverlay.style.opacity = '0';
              // 第二次白闪
              setTimeout(() => {
                flashOverlay.style.opacity = '1';
                setTimeout(() => {
                  flashOverlay.style.opacity = '0';
                  // 白闪结束,开始显示骇入动画
                  runHackSequence();
                }, 100);
              }, 150);
            }, 100);
          }, 300);
        }
      }, 100);
    }, 1000);

    function runHackSequence() {
      // 清空终端
      content.innerHTML = '';

      // 模拟骇入代码流(绿色)
      const hackLines = [
        "[*] Bypassing authentication...",
        "[+] Firewall disabled.",
        "[+] Kernel exploit deployed.",
        "[+] Root access granted.",
        "[*] Injecting payload...",
        "[+] SYSTEM COMPROMISED"
      ];

      let idx = 0;
      const printHackLine = () => {
        if (idx < hackLines.length) {
          const div = document.createElement('div');
          div.textContent = hackLines[idx];
          div.style.color = '#00ff00';
          div.style.opacity = '0';
          div.style.transform = 'translateY(10px)';
          div.style.transition = 'opacity 0.3s, transform 0.3s';
          content.appendChild(div);

          setTimeout(() => {
            div.style.opacity = '1';
            div.style.transform = 'translateY(0)';
          }, 10);

          idx++;
          setTimeout(printHackLine, idx === hackLines.length ? 500 : 180);
        } else {
          // 骇入完成,显示个人资料
          showProfile();
        }
      };

      printHackLine();
    }

    function showProfile() {
      content.innerHTML = '';

      const profileLines = [
        "┌──────────────────────────────┐",
        "│   🔓 SYSTEM ACCESS GRANTED   │",
        "└──────────────────────────────┘",
        "",
        "\x1b[31mUSER\x1b[0m: Your Real Name",
        "\x1b[31mROLE\x1b[0m: Ethical Hacker / Developer",
        "\x1b[31mSTACK\x1b[0m: XWiki • Java • JS • Python",
        "\x1b[31mMISSION\x1b[0m: Build secure, open systems",
        "",
        "Contact: your.email@example.com",
        "",
        "\x1b[32m> System stable. Welcome, operator.\x1b[0m"
      ];

      // 逐行显示(带颜色)
      profileLines.forEach((line, i) => {
        setTimeout(() => {
          // 简单颜色解析(仅支持 \x1b[31m 红 和 \x1b[32m 绿)
          let html = line
            .replace(/\x1b$$31m([^\x1b]*)\x1b$$0m/g, '$1')
            .replace(/\x1b$$32m([^\x1b]*)\x1b$$0m/g, '$1');

          const div = document.createElement('div');
          div.innerHTML = html;
          div.style.opacity = '0';
          div.style.transform = 'translateY(10px)';
          div.style.transition = 'opacity 0.4s, transform 0.4s';
          content.appendChild(div);

          setTimeout(() => {
            div.style.opacity = '1';
            div.style.transform = 'translateY(0)';
          }, 10);
        }, i * 250);
      });
    }
  }
})();

联系信息

外部链接

活动流 Behemoth Cognitive