Spaces:
Running
Running
File size: 10,236 Bytes
2a4bc18 0bdaf49 2a4bc18 0bdaf49 2a4bc18 0bdaf49 2a4bc18 0bdaf49 2a4bc18 0bdaf49 2a4bc18 0bdaf49 2a4bc18 0bdaf49 2a4bc18 0bdaf49 2a4bc18 0bdaf49 2a4bc18 0bdaf49 2a4bc18 0bdaf49 2a4bc18 0bdaf49 2a4bc18 69faaf1 | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HackTheMatrix - Ethical Hacking Toolkit</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
<style>
.hack-terminal {
font-family: 'Courier New', monospace;
background-color: #011627;
color: #7fdbca;
border-radius: 8px;
box-shadow: 0 0 15px rgba(0, 255, 170, 0.3);
}
.hack-cursor {
animation: blink 1s infinite;
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
</style>
</head>
<body class="bg-gray-900 text-gray-100">
<div id="vanta-bg" class="fixed inset-0 z-0"></div>
<div class="relative z-10 min-h-screen flex flex-col">
<header class="bg-black bg-opacity-80 py-4 px-6 border-b border-green-500">
<div class="container mx-auto flex justify-between items-center">
<div class="flex items-center space-x-2">
<i data-feather="terminal" class="text-green-400"></i>
<h1 class="text-xl font-mono font-bold text-green-400">HackTheMatrix</h1>
</div>
<nav>
<ul class="flex space-x-6">
<li><a href="#" class="text-green-300 hover:text-green-100 font-mono">Tools</a></li>
<li><a href="tutorials.html" class="text-green-300 hover:text-green-100 font-mono">Tutorials</a></li>
<li><a href="vulnerabilities.html" class="text-green-300 hover:text-green-100 font-mono">Vulnerabilities</a></li>
<li><a href="about.html" class="text-green-300 hover:text-green-100 font-mono">About</a></li>
</ul>
</nav>
</div>
</header>
<main class="flex-grow container mx-auto px-6 py-12">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<!-- Network Scanner -->
<div class="hack-terminal p-6 transform hover:scale-105 transition duration-300">
<div class="flex items-center mb-4">
<i data-feather="wifi" class="mr-3 text-green-400"></i>
<h3 class="text-lg font-mono font-bold">Network Scanner</h3>
</div>
<p class="text-sm mb-4">Scan IP ranges for open ports using Shodan API (educational purposes only).</p>
<div class="flex flex-col space-y-2">
<input id="scan-ip" type="text" class="bg-gray-900 border border-green-500 px-2 py-1 rounded text-sm font-mono" placeholder="IP or domain">
<div class="flex justify-between items-center">
<span class="text-xs text-green-300">v3.1.4</span>
<button onclick="scanNetwork()" class="bg-green-500 hover:bg-green-600 text-black px-3 py-1 rounded text-sm font-mono">Execute</button>
</div>
</div>
</div>
<!-- Password Strength Tester -->
<div class="hack-terminal p-6 transform hover:scale-105 transition duration-300">
<div class="flex items-center mb-4">
<i data-feather="lock" class="mr-3 text-green-400"></i>
<h3 class="text-lg font-mono font-bold">Password Tester</h3>
</div>
<p class="text-sm mb-4">Test password strength against common attacks (no actual cracking).</p>
<div class="flex flex-col space-y-2">
<input id="test-password" type="password" class="bg-gray-900 border border-green-500 px-2 py-1 rounded text-sm font-mono" placeholder="Test password">
<div class="flex justify-between items-center">
<span class="text-xs text-green-300">v2.7.9</span>
<button onclick="testPassword()" class="bg-green-500 hover:bg-green-600 text-black px-3 py-1 rounded text-sm font-mono">Test</button>
</div>
</div>
</div>
<!-- Security Header Checker -->
<div class="hack-terminal p-6 transform hover:scale-105 transition duration-300">
<div class="flex items-center mb-4">
<i data-feather="shield" class="mr-3 text-green-400"></i>
<h3 class="text-lg font-mono font-bold">Security Checker</h3>
</div>
<p class="text-sm mb-4">Check website security headers for vulnerabilities.</p>
<div class="flex flex-col space-y-2">
<input id="check-url" type="text" class="bg-gray-900 border border-green-500 px-2 py-1 rounded text-sm font-mono" placeholder="https://example.com">
<div class="flex justify-between items-center">
<span class="text-xs text-green-300">v5.0.2</span>
<button onclick="checkSecurity()" class="bg-green-500 hover:bg-green-600 text-black px-3 py-1 rounded text-sm font-mono">Analyze</button>
</div>
</div>
</div>
</div>
<!-- Live Terminal -->
<div class="mt-12 hack-terminal p-6">
<div class="flex items-center border-b border-green-500 pb-2 mb-4">
<i data-feather="activity" class="mr-2 text-green-400"></i>
<h3 class="font-mono">Live Terminal Session</h3>
</div>
<div class="h-48 overflow-y-auto mb-4">
<p class="text-sm font-mono">> Initializing HackTheMatrix v3.0...</p>
<p class="text-sm font-mono">> Loading modules: [ββββββββββ] 100%</p>
<p class="text-sm font-mono">> Establishing secure connection...</p>
<p class="text-sm font-mono">> Connection encrypted (AES-256)</p>
</div>
<div class="flex items-center">
<span class="text-green-400 mr-2 font-mono">$</span>
<input type="text" class="bg-transparent border-none outline-none flex-grow font-mono" placeholder="Enter command...">
<span class="hack-cursor font-mono">_</span>
</div>
</div>
</main>
<footer class="bg-black bg-opacity-80 py-4 px-6 border-t border-green-500">
<div class="container mx-auto text-center font-mono text-sm text-green-300">
<p>For educational purposes only. Use responsibly.</p>
<p class="mt-1">Β© 2023 HackTheMatrix - All systems nominal</p>
</div>
</footer>
</div>
<script>
VANTA.NET({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x00ffaa,
backgroundColor: 0x11111
});
feather.replace();
async function scanNetwork() {
const ip = document.getElementById('scan-ip').value;
if(!ip) return alert('Please enter an IP or domain');
try {
const response = await fetch(`https://api.shodan.io/shodan/host/${ip}?key=YOUR_SHODAN_API_KEY`);
const data = await response.json();
updateTerminal(`> Scanning ${ip}...\n> Open ports: ${data.ports.join(', ')}\n> Vulnerabilities found: ${data.vulns ? data.vulns.length : 0}`);
} catch (error) {
updateTerminal(`> Error scanning ${ip}: ${error.message}`);
}
}
function testPassword() {
const password = document.getElementById('test-password').value;
if(!password) return alert('Please enter a password');
// Simple password strength test (educational only)
let strength = 0;
if (password.length >= 8) strength++;
if (password.match(/[A-Z]/)) strength++;
if (password.match(/[0-9]/)) strength++;
if (password.match(/[^A-Za-z0-9]/)) strength++;
updateTerminal(`> Password strength analysis:\n> Length: ${password.length}\n> Complexity: ${strength}/4\n> Estimated crack time: ${estimateCrackTime(strength, password.length)}`);
}
function estimateCrackTime(strength, length) {
const times = ['instant', 'seconds', 'minutes', 'hours', 'days', 'months', 'years'];
return times[Math.min(strength + Math.floor(length/4), times.length-1)];
}
async function checkSecurity() {
const url = document.getElementById('check-url').value;
if(!url) return alert('Please enter a URL');
try {
const response = await fetch(`https://securityheaders.com/?q=${encodeURIComponent(url)}&followRedirects=on`);
const grade = response.headers.get('x-grade') || 'unknown';
updateTerminal(`> Security analysis for ${url}:\n> Headers grade: ${grade}\n> Check full report at securityheaders.com`);
} catch (error) {
updateTerminal(`> Error checking ${url}: ${error.message}`);
}
}
function updateTerminal(message) {
const terminal = document.querySelector('.hack-terminal .h-48');
terminal.innerHTML += `<p class="text-sm font-mono">${message}</p>`;
terminal.scrollTop = terminal.scrollHeight;
}
</script>
</body>
</html>
|