Spaces:
Running
Running
the app is not working
Browse files- index.html +97 -29
index.html
CHANGED
|
@@ -92,12 +92,13 @@
|
|
| 92 |
<p class="hacker-text text-sm mb-4">
|
| 93 |
Test how strong your password is against common attacks.
|
| 94 |
</p>
|
| 95 |
-
<
|
|
|
|
| 96 |
Test Password
|
| 97 |
</button>
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
<div class="terminal p-6 card-hover">
|
| 102 |
<div class="flex items-center gap-3 mb-4">
|
| 103 |
<div class="bg-primary/10 p-2 rounded-full">
|
|
@@ -112,7 +113,6 @@
|
|
| 112 |
Run Audit
|
| 113 |
</button>
|
| 114 |
</div>
|
| 115 |
-
|
| 116 |
<!-- Tool 3 -->
|
| 117 |
<div class="terminal p-6 card-hover">
|
| 118 |
<div class="flex items-center gap-3 mb-4">
|
|
@@ -124,11 +124,28 @@
|
|
| 124 |
<p class="hacker-text text-sm mb-4">
|
| 125 |
Learn how to spot phishing attempts on Instagram.
|
| 126 |
</p>
|
| 127 |
-
<button class="bg-primary hover:bg-primary/90 text-white hacker-text px-4 py-2 rounded transition-all
|
| 128 |
Start Test
|
| 129 |
</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 130 |
</div>
|
| 131 |
-
</div>
|
| 132 |
|
| 133 |
<!-- Security Tips -->
|
| 134 |
<div class="terminal p-6 mb-12">
|
|
@@ -223,38 +240,89 @@
|
|
| 223 |
setInterval(updateTerminal, 5000);
|
| 224 |
// Initialize feather icons
|
| 225 |
feather.replace();
|
| 226 |
-
|
| 227 |
function runApp() {
|
| 228 |
-
// Check if browser supports necessary APIs
|
| 229 |
-
if (!navigator.clipboard) {
|
| 230 |
-
alert("This app requires clipboard access. Please use a modern browser.");
|
| 231 |
-
return;
|
| 232 |
-
}
|
| 233 |
-
|
| 234 |
-
// Start the app experience
|
| 235 |
const terminalOutput = document.getElementById('terminal-output');
|
| 236 |
terminalOutput.innerHTML = `
|
| 237 |
> Initializing InstaShield v1.0...<br>
|
| 238 |
> Loading security modules...<br>
|
| 239 |
> Checking system requirements...<br>
|
| 240 |
-
<span class="text-green-600">> Ready!
|
| 241 |
`;
|
| 242 |
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 247 |
|
| 248 |
-
//
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 255 |
|
| 256 |
-
|
|
|
|
|
|
|
|
|
|
| 257 |
}
|
| 258 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 259 |
</body>
|
| 260 |
</html>
|
|
|
|
| 92 |
<p class="hacker-text text-sm mb-4">
|
| 93 |
Test how strong your password is against common attacks.
|
| 94 |
</p>
|
| 95 |
+
<input type="password" id="passwordInput" class="w-full hacker-text px-3 py-2 mb-2 border rounded" placeholder="Enter password to test">
|
| 96 |
+
<button onclick="checkPassword()" class="bg-primary hover:bg-primary/90 text-white hacker-text px-4 py-2 rounded transition-all">
|
| 97 |
Test Password
|
| 98 |
</button>
|
| 99 |
+
<div id="passwordResult" class="mt-2 hacker-text text-sm"></div>
|
| 100 |
+
</div>
|
| 101 |
+
<!-- Tool 2 -->
|
| 102 |
<div class="terminal p-6 card-hover">
|
| 103 |
<div class="flex items-center gap-3 mb-4">
|
| 104 |
<div class="bg-primary/10 p-2 rounded-full">
|
|
|
|
| 113 |
Run Audit
|
| 114 |
</button>
|
| 115 |
</div>
|
|
|
|
| 116 |
<!-- Tool 3 -->
|
| 117 |
<div class="terminal p-6 card-hover">
|
| 118 |
<div class="flex items-center gap-3 mb-4">
|
|
|
|
| 124 |
<p class="hacker-text text-sm mb-4">
|
| 125 |
Learn how to spot phishing attempts on Instagram.
|
| 126 |
</p>
|
| 127 |
+
<button onclick="startPhishingTest()" class="bg-primary hover:bg-primary/90 text-white hacker-text px-4 py-2 rounded transition-all">
|
| 128 |
Start Test
|
| 129 |
</button>
|
| 130 |
+
<div id="phishingTestContent" class="mt-4 hacker-text text-sm hidden">
|
| 131 |
+
<div class="border-b pb-2 mb-2">
|
| 132 |
+
<h4 class="font-bold">Look for these red flags:</h4>
|
| 133 |
+
<ul class="list-disc pl-5 mt-2">
|
| 134 |
+
<li>Requests for your password</li>
|
| 135 |
+
<li>Spelling/grammar mistakes</li>
|
| 136 |
+
<li>Urgent calls to action ("Your account will be disabled!")</li>
|
| 137 |
+
<li>Suspicious sender email addresses</li>
|
| 138 |
+
</ul>
|
| 139 |
+
</div>
|
| 140 |
+
<div class="mt-2">
|
| 141 |
+
<p>Example phishing message:</p>
|
| 142 |
+
<div class="terminal p-3 mt-2 bg-red-50">
|
| 143 |
+
<p>"Dear user, your Instagram account will be deleted in 24 hours unless you verify your credentials at: instagram.verify-account.com"</p>
|
| 144 |
+
</div>
|
| 145 |
+
</div>
|
| 146 |
+
</div>
|
| 147 |
+
</div>
|
| 148 |
</div>
|
|
|
|
| 149 |
|
| 150 |
<!-- Security Tips -->
|
| 151 |
<div class="terminal p-6 mb-12">
|
|
|
|
| 240 |
setInterval(updateTerminal, 5000);
|
| 241 |
// Initialize feather icons
|
| 242 |
feather.replace();
|
|
|
|
| 243 |
function runApp() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 244 |
const terminalOutput = document.getElementById('terminal-output');
|
| 245 |
terminalOutput.innerHTML = `
|
| 246 |
> Initializing InstaShield v1.0...<br>
|
| 247 |
> Loading security modules...<br>
|
| 248 |
> Checking system requirements...<br>
|
| 249 |
+
<span class="text-green-600">> Ready! All tools are now active.</span>
|
| 250 |
`;
|
| 251 |
|
| 252 |
+
document.querySelector('.grid').scrollIntoView({ behavior: 'smooth' });
|
| 253 |
+
}
|
| 254 |
+
|
| 255 |
+
function checkPassword() {
|
| 256 |
+
const password = document.getElementById('passwordInput').value;
|
| 257 |
+
const resultDiv = document.getElementById('passwordResult');
|
| 258 |
+
|
| 259 |
+
if (!password) {
|
| 260 |
+
resultDiv.textContent = "Please enter a password to test";
|
| 261 |
+
resultDiv.className = "mt-2 hacker-text text-sm text-red-500";
|
| 262 |
+
return;
|
| 263 |
+
}
|
| 264 |
|
| 265 |
+
// Simple password strength check
|
| 266 |
+
let strength = 0;
|
| 267 |
+
let feedback = [];
|
| 268 |
+
|
| 269 |
+
// Length check
|
| 270 |
+
if (password.length >= 12) strength += 2;
|
| 271 |
+
else if (password.length >= 8) strength += 1;
|
| 272 |
+
else feedback.push("Too short (min 8 chars)");
|
| 273 |
+
|
| 274 |
+
// Complexity checks
|
| 275 |
+
if (/[A-Z]/.test(password)) strength += 1;
|
| 276 |
+
else feedback.push("Add uppercase letters");
|
| 277 |
+
|
| 278 |
+
if (/[a-z]/.test(password)) strength += 1;
|
| 279 |
+
else feedback.push("Add lowercase letters");
|
| 280 |
+
|
| 281 |
+
if (/[0-9]/.test(password)) strength += 1;
|
| 282 |
+
else feedback.push("Add numbers");
|
| 283 |
+
|
| 284 |
+
if (/[^A-Za-z0-9]/.test(password)) strength += 2;
|
| 285 |
+
else feedback.push("Add special characters");
|
| 286 |
+
|
| 287 |
+
// Common password check
|
| 288 |
+
const commonPasswords = ["password", "123456", "qwerty", "instagram", "admin"];
|
| 289 |
+
if (commonPasswords.includes(password.toLowerCase())) {
|
| 290 |
+
strength = 0;
|
| 291 |
+
feedback = ["This is a very common password - DO NOT USE"];
|
| 292 |
+
}
|
| 293 |
+
|
| 294 |
+
// Display results
|
| 295 |
+
let strengthText = "";
|
| 296 |
+
let colorClass = "";
|
| 297 |
+
|
| 298 |
+
if (strength <= 3) {
|
| 299 |
+
strengthText = "Weak";
|
| 300 |
+
colorClass = "text-red-500";
|
| 301 |
+
} else if (strength <= 6) {
|
| 302 |
+
strengthText = "Moderate";
|
| 303 |
+
colorClass = "text-yellow-500";
|
| 304 |
+
} else {
|
| 305 |
+
strengthText = "Strong";
|
| 306 |
+
colorClass = "text-green-500";
|
| 307 |
+
}
|
| 308 |
|
| 309 |
+
resultDiv.innerHTML = `
|
| 310 |
+
<div class="font-bold ${colorClass}">Strength: ${strengthText}</div>
|
| 311 |
+
${feedback.length ? `<div class="mt-1">Recommendations:<br>${feedback.join('<br>')}</div>` : '<div class="mt-1">Great password!</div>'}
|
| 312 |
+
`;
|
| 313 |
}
|
| 314 |
+
|
| 315 |
+
function startPhishingTest() {
|
| 316 |
+
const contentDiv = document.getElementById('phishingTestContent');
|
| 317 |
+
contentDiv.classList.toggle('hidden');
|
| 318 |
+
|
| 319 |
+
const terminalOutput = document.getElementById('terminal-output');
|
| 320 |
+
terminalOutput.innerHTML = `
|
| 321 |
+
> Starting phishing awareness module...<br>
|
| 322 |
+
> Loaded common phishing tactics<br>
|
| 323 |
+
<span class="text-green-600">> Review the red flags above carefully</span>
|
| 324 |
+
`;
|
| 325 |
+
}
|
| 326 |
+
</script>
|
| 327 |
</body>
|
| 328 |
</html>
|