Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Security Awareness Simulator</title> | |
| <!-- Importing FontAwesome for Icons --> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| :root { | |
| --primary-color: #1877f2; | |
| --primary-hover: #166fe5; | |
| --bg-color: #f0f2f5; | |
| --card-bg: #ffffff; | |
| --text-main: #1c1e21; | |
| --text-secondary: #65676b; | |
| --success-color: #42b72a; | |
| --danger-color: #fa3e3e; | |
| --shadow: 0 4px 12px rgba(0, 0, 0, 0.15); | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| font-family: 'Segoe UI', Helvetica, Arial, sans-serif; | |
| } | |
| body { | |
| background-color: var(--bg-color); | |
| display: flex; | |
| flex-direction: column; | |
| min-height: 100vh; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 20px; | |
| } | |
| /* Header / Navbar */ | |
| header { | |
| position: absolute; | |
| top: 0; | |
| width: 100%; | |
| padding: 15px 30px; | |
| background: var(--card-bg); | |
| box-shadow: 0 2px 4px rgba(0,0,0,0.1); | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| z-index: 100; | |
| } | |
| .logo { | |
| font-size: 1.5rem; | |
| font-weight: bold; | |
| color: var(--primary-color); | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| } | |
| .anycoder-link { | |
| text-decoration: none; | |
| color: var(--text-secondary); | |
| font-size: 0.9rem; | |
| font-weight: 600; | |
| transition: color 0.3s; | |
| } | |
| .anycoder-link:hover { | |
| color: var(--primary-color); | |
| } | |
| /* Main Container */ | |
| .container { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 40px; | |
| max-width: 1000px; | |
| width: 100%; | |
| justify-content: center; | |
| margin-top: 60px; | |
| } | |
| /* Simulation Card */ | |
| .sim-card { | |
| background: var(--card-bg); | |
| padding: 40px; | |
| border-radius: 8px; | |
| box-shadow: var(--shadow); | |
| width: 100%; | |
| max-width: 400px; | |
| text-align: center; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .sim-card h2 { | |
| margin-bottom: 20px; | |
| color: var(--text-main); | |
| } | |
| .input-group { | |
| margin-bottom: 15px; | |
| text-align: left; | |
| } | |
| .input-group label { | |
| display: block; | |
| margin-bottom: 5px; | |
| color: var(--text-secondary); | |
| font-size: 0.9rem; | |
| } | |
| .input-group input { | |
| width: 100%; | |
| padding: 12px 15px; | |
| border: 1px solid #ddd; | |
| border-radius: 6px; | |
| font-size: 1rem; | |
| transition: border 0.3s; | |
| } | |
| .input-group input:focus { | |
| outline: none; | |
| border-color: var(--primary-color); | |
| } | |
| .btn-simulate { | |
| width: 100%; | |
| padding: 12px; | |
| background-color: var(--primary-color); | |
| color: white; | |
| border: none; | |
| border-radius: 6px; | |
| font-size: 1.1rem; | |
| font-weight: bold; | |
| cursor: pointer; | |
| transition: background 0.3s; | |
| margin-top: 10px; | |
| } | |
| .btn-simulate:hover { | |
| background-color: var(--primary-hover); | |
| } | |
| .warning-text { | |
| margin-top: 15px; | |
| font-size: 0.8rem; | |
| color: var(--danger-color); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 5px; | |
| } | |
| /* Educational Panel */ | |
| .info-panel { | |
| flex: 1; | |
| min-width: 300px; | |
| max-width: 500px; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 20px; | |
| } | |
| .info-card { | |
| background: var(--card-bg); | |
| padding: 25px; | |
| border-radius: 8px; | |
| box-shadow: var(--shadow); | |
| border-left: 5px solid var(--primary-color); | |
| } | |
| .info-card h3 { | |
| margin-bottom: 10px; | |
| color: var(--text-main); | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| } | |
| .info-card p { | |
| color: var(--text-secondary); | |
| line-height: 1.6; | |
| font-size: 0.95rem; | |
| } | |
| .checklist { | |
| list-style: none; | |
| margin-top: 10px; | |
| } | |
| .checklist li { | |
| margin-bottom: 8px; | |
| color: var(--text-main); | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| } | |
| .checklist li i { | |
| color: var(--success-color); | |
| } | |
| /* Modal Overlay */ | |
| .modal-overlay { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgba(0, 0, 0, 0.7); | |
| display: none; | |
| justify-content: center; | |
| align-items: center; | |
| z-index: 1000; | |
| backdrop-filter: blur(5px); | |
| } | |
| .modal-content { | |
| background: white; | |
| padding: 30px; | |
| border-radius: 10px; | |
| max-width: 500px; | |
| width: 90%; | |
| text-align: center; | |
| animation: slideUp 0.3s ease-out; | |
| } | |
| @keyframes slideUp { | |
| from { transform: translateY(50px); opacity: 0; } | |
| to { transform: translateY(0); opacity: 1; } | |
| } | |
| .modal-icon { | |
| font-size: 3rem; | |
| color: var(--primary-color); | |
| margin-bottom: 20px; | |
| } | |
| .modal-title { | |
| font-size: 1.5rem; | |
| margin-bottom: 10px; | |
| color: var(--text-main); | |
| } | |
| .modal-body { | |
| color: var(--text-secondary); | |
| margin-bottom: 25px; | |
| line-height: 1.6; | |
| } | |
| .btn-close { | |
| padding: 10px 25px; | |
| background: var(--text-main); | |
| color: white; | |
| border: none; | |
| border-radius: 5px; | |
| cursor: pointer; | |
| font-weight: bold; | |
| } | |
| /* Responsive */ | |
| @media (max-width: 768px) { | |
| .container { | |
| flex-direction: column; | |
| align-items: center; | |
| } | |
| .sim-card, .info-panel { | |
| width: 100%; | |
| max-width: 100%; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <header> | |
| <div class="logo"> | |
| <i class="fa-brands fa-facebook"></i> Security Sim | |
| </div> | |
| <a href="https://huggingface.co/spaces/akhaliq/anycoder" class="anycoder-link" target="_blank"> | |
| Built with anycoder <i class="fa-solid fa-external-link-alt"></i> | |
| </a> | |
| </header> | |
| <div class="container"> | |
| <!-- Left Side: The Simulation Interface --> | |
| <div class="sim-card"> | |
| <h2>Account Recovery Simulation</h2> | |
| <p style="color: #666; margin-bottom: 20px; font-size: 0.9rem;"> | |
| This is a <strong>safe simulation</strong>. No data is sent to any server. Enter dummy data to see how security tools work. | |
| </p> | |
| <form id="simForm" onsubmit="handleSimulation(event)"> | |
| <div class="input-group"> | |
| <label for="fb-id">Facebook ID / Email / Phone</label> | |
| <input type="text" id="fb-id" placeholder="Enter ID (e.g., 1000123456)" required> | |
| </div> | |
| <div class="input-group"> | |
| <label for="password">Password</label> | |
| <input type="password" id="password" placeholder="Enter password" required> | |
| </div> | |
| <button type="submit" class="btn-simulate"> | |
| <i class="fa-solid fa-shield-halved"></i> Check Security Status | |
| </button> | |
| </form> | |
| <div class="warning-text"> | |
| <i class="fa-solid fa-triangle-exclamation"></i> | |
| <span>Do not enter your real password.</span> | |
| </div> | |
| </div> | |
| <!-- Right Side: Educational Info --> | |
| <div class="info-panel"> | |
| <div class="info-card"> | |
| <h3><i class="fa-solid fa-user-shield"></i> How to Protect Yourself</h3> | |
| <p>Phishing attacks often use fake login pages to steal credentials. Here is how to stay safe:</p> | |
| <ul class="checklist"> | |
| <li><i class="fa-solid fa-check"></i> Always check the URL (look for https:// and the correct domain).</li> | |
| <li><i class="fa-solid fa-check"></i> Enable Two-Factor Authentication (2FA).</li> | |
| <li><i class="fa-solid fa-check"></i> Never enter passwords on links sent via suspicious messages.</li> | |
| <li><i class="fa-solid fa-check"></i> Use a Password Manager to auto-fill credentials.</li> | |
| </ul> | |
| </div> | |
| <div class="info-card" style="border-left-color: var(--danger-color);"> | |
| <h3><i class="fa-solid fa-ban"></i> Why "Hacking Tools" Don't Work</h3> | |
| <p>Most tools claiming to hack accounts via ID are scams designed to:</p> | |
| <ul class="checklist"> | |
| <li style="color: var(--danger-color);"><i class="fa-solid fa-xmark" style="color: var(--danger-color);"></i> Infect your device with malware.</li> | |
| <li style="color: var(--danger-color);"><i class="fa-solid fa-xmark" style="color: var(--danger-color);"></i> Steal <em>your</em> personal data.</li> | |
| <li style="color: var(--danger-color);"><i class="fa-solid fa-xmark" style="color: var(--danger-color);"></i> Trick you into completing surveys for profit.</li> | |
| </ul> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Educational Modal --> | |
| <div class="modal-overlay" id="resultModal"> | |
| <div class="modal-content"> | |
| <div class="modal-icon"> | |
| <i class="fa-solid fa-lock"></i> | |
| </div> | |
| <h2 class="modal-title">Simulation Complete</h2> | |
| <div class="modal-body"> | |
| <p><strong>This was a simulation.</strong></p> | |
| <br> | |
| <p>If this were a real phishing site, your account would now be compromised. In reality, Facebook uses advanced encryption, rate limiting, and 2FA to prevent unauthorized access via simple ID lookups.</p> | |
| <br> | |
| <p><strong>Tip:</strong> If you suspect your account is at risk, go to <strong>Settings & Privacy > Security and Login</strong> immediately.</p> | |
| </div> | |
| <button class="btn-close" onclick="closeModal()">Understood</button> | |
| </div> | |
| </div> | |
| <script> | |
| function handleSimulation(e) { | |
| e.preventDefault(); | |
| const btn = document.querySelector('.btn-simulate'); | |
| const originalText = btn.innerHTML; | |
| // Simulate processing time | |
| btn.innerHTML = '<i class="fa-solid fa-spinner fa-spin"></i> Analyzing...'; | |
| btn.style.opacity = '0.8'; | |
| setTimeout(() => { | |
| // Show the educational modal instead of any "hack" result | |
| document.getElementById('resultModal').style.display = 'flex'; | |
| // Reset form and button | |
| document.getElementById('simForm').reset(); | |
| btn.innerHTML = originalText; | |
| btn.style.opacity = '1'; | |
| }, 1500); | |
| } | |
| function closeModal() { | |
| document.getElementById('resultModal').style.display = 'none'; | |
| } | |
| // Close modal if clicking outside content | |
| window.onclick = function(event) { | |
| const modal = document.getElementById('resultModal'); | |
| if (event.target == modal) { | |
| modal.style.display = "none"; | |
| } | |
| } | |
| </script> | |
| </body> | |
| </html> |