security / index.html
voizex's picture
Add 3 files
21ab45d verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ANTIHACK PANEL | Security Dashboard</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');
:root {
--primary: #1e40af;
--secondary: #1e3a8a;
--accent: #3b82f6;
--dark: #0f172a;
--danger: #ef4444;
--success: #10b981;
}
body {
font-family: 'Roboto', sans-serif;
background-color: #f1f5f9;
}
.logo-font {
font-family: 'Orbitron', sans-serif;
}
.sidebar {
transition: all 0.3s ease;
}
.dashboard-card {
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dashboard-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.security-level {
background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}
.threat-card {
border-left: 4px solid var(--danger);
}
.activity-card {
border-left: 4px solid var(--accent);
}
.scrollbar-hide::-webkit-scrollbar {
display: none;
}
.scrollbar-hide {
-ms-overflow-style: none;
scrollbar-width: none;
}
.blink {
animation: blink-animation 1.5s steps(5, start) infinite;
}
@keyframes blink-animation {
to {
visibility: hidden;
}
}
</style>
</head>
<body class="bg-gray-100">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar bg-white w-64 border-r border-gray-200 flex flex-col">
<div class="p-4 border-b border-gray-200">
<div class="flex items-center space-x-2">
<div class="w-8 h-8 rounded-full bg-blue-600 flex items-center justify-center">
<i class="fas fa-shield-alt text-white"></i>
</div>
<span class="logo-font text-xl font-bold text-blue-800">ANTIHACK</span>
</div>
</div>
<div class="flex-1 overflow-y-auto p-4 space-y-4">
<div>
<p class="text-xs uppercase text-gray-500 font-semibold mb-2">Dashboard</p>
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg bg-blue-50 text-blue-700">
<i class="fas fa-tachometer-alt w-5 text-center"></i>
<span>Overview</span>
</a>
</div>
<div>
<p class="text-xs uppercase text-gray-500 font-semibold mb-2">Security</p>
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
<i class="fas fa-fire w-5 text-center"></i>
<span>Threat Detection</span>
</a>
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
<i class="fas fa-shield-virus w-5 text-center"></i>
<span>Firewall</span>
</a>
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
<i class="fas fa-user-lock w-5 text-center"></i>
<span>Access Control</span>
</a>
</div>
<div>
<p class="text-xs uppercase text-gray-500 font-semibold mb-2">Monitoring</p>
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
<i class="fas fa-chart-line w-5 text-center"></i>
<span>Activity Logs</span>
</a>
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
<i class="fas fa-network-wired w-5 text-center"></i>
<span>Network Traffic</span>
</a>
</div>
<div>
<p class="text-xs uppercase text-gray-500 font-semibold mb-2">Settings</p>
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
<i class="fas fa-cog w-5 text-center"></i>
<span>System Settings</span>
</a>
<a href="#" class="flex items-center space-x-3 p-2 rounded-lg hover:bg-gray-100">
<i class="fas fa-users-cog w-5 text-center"></i>
<span>User Management</span>
</a>
</div>
</div>
<div class="p-4 border-t border-gray-200">
<div class="flex items-center space-x-3">
<div class="w-10 h-10 rounded-full bg-gray-200 flex items-center justify-center">
<i class="fas fa-user text-gray-600"></i>
</div>
<div>
<p class="font-medium">Admin User</p>
<p class="text-xs text-gray-500">Super Administrator</p>
</div>
</div>
</div>
</div>
<!-- Main Content -->
<div class="flex-1 overflow-auto">
<!-- Header -->
<header class="bg-white border-b border-gray-200 p-4 flex justify-between items-center">
<div class="flex items-center space-x-4">
<button class="md:hidden">
<i class="fas fa-bars text-gray-600"></i>
</button>
<h1 class="text-xl font-bold text-gray-800">Security Dashboard</h1>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<button class="p-2 rounded-full hover:bg-gray-100">
<i class="fas fa-bell text-gray-600"></i>
<span class="absolute top-0 right-0 w-2 h-2 bg-red-500 rounded-full"></span>
</button>
</div>
<div class="relative">
<button class="p-2 rounded-full hover:bg-gray-100">
<i class="fas fa-question-circle text-gray-600"></i>
</button>
</div>
</div>
</header>
<!-- Dashboard Content -->
<main class="p-6">
<!-- Status Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<div class="dashboard-card bg-white rounded-lg shadow p-6">
<div class="flex justify-between items-start">
<div>
<p class="text-sm text-gray-500">Active Threats</p>
<h3 class="text-2xl font-bold text-red-500 mt-1">12</h3>
</div>
<div class="p-3 rounded-full bg-red-100 text-red-500">
<i class="fas fa-exclamation-triangle"></i>
</div>
</div>
<div class="mt-4">
<div class="h-2 bg-gray-200 rounded-full overflow-hidden">
<div class="h-full bg-red-500 rounded-full" style="width: 60%"></div>
</div>
<p class="text-xs text-gray-500 mt-1">Higher than usual</p>
</div>
</div>
<div class="dashboard-card bg-white rounded-lg shadow p-6">
<div class="flex justify-between items-start">
<div>
<p class="text-sm text-gray-500">Protected Systems</p>
<h3 class="text-2xl font-bold text-blue-500 mt-1">48</h3>
</div>
<div class="p-3 rounded-full bg-blue-100 text-blue-500">
<i class="fas fa-shield-alt"></i>
</div>
</div>
<div class="mt-4">
<div class="h-2 bg-gray-200 rounded-full overflow-hidden">
<div class="h-full bg-blue-500 rounded-full" style="width: 90%"></div>
</div>
<p class="text-xs text-gray-500 mt-1">All systems secured</p>
</div>
</div>
<div class="dashboard-card bg-white rounded-lg shadow p-6">
<div class="flex justify-between items-start">
<div>
<p class="text-sm text-gray-500">Security Events</p>
<h3 class="text-2xl font-bold text-yellow-500 mt-1">237</h3>
</div>
<div class="p-3 rounded-full bg-yellow-100 text-yellow-500">
<i class="fas fa-bell"></i>
</div>
</div>
<div class="mt-4">
<div class="h-2 bg-gray-200 rounded-full overflow-hidden">
<div class="h-full bg-yellow-500 rounded-full" style="width: 45%"></div>
</div>
<p class="text-xs text-gray-500 mt-1">5 new since last hour</p>
</div>
</div>
<div class="dashboard-card bg-white rounded-lg shadow p-6">
<div class="flex justify-between items-start">
<div>
<p class="text-sm text-gray-500">Response Time</p>
<h3 class="text-2xl font-bold text-green-500 mt-1">0.8s</h3>
</div>
<div class="p-3 rounded-full bg-green-100 text-green-500">
<i class="fas fa-bolt"></i>
</div>
</div>
<div class="mt-4">
<div class="h-2 bg-gray-200 rounded-full overflow-hidden">
<div class="h-full bg-green-500 rounded-full" style="width: 95%"></div>
</div>
<p class="text-xs text-gray-500 mt-1">Optimal performance</p>
</div>
</div>
</div>
<!-- Security Level and Threat Map -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
<div class="lg:col-span-2 bg-white rounded-lg shadow overflow-hidden">
<div class="p-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-bold text-gray-800">Threat Map</h2>
<div class="flex space-x-2">
<button class="px-3 py-1 text-xs bg-blue-50 text-blue-600 rounded-full">Live</button>
<button class="px-3 py-1 text-xs bg-gray-100 text-gray-600 rounded-full">Past 24h</button>
</div>
</div>
<div class="relative h-64 bg-gray-100 rounded-lg overflow-hidden">
<div class="absolute inset-0 flex items-center justify-center">
<div class="text-center">
<i class="fas fa-globe-americas text-4xl text-gray-300 mb-2"></i>
<p class="text-gray-400">Loading threat data...</p>
</div>
</div>
<!-- Simulated threat points -->
<div class="absolute top-1/4 left-1/4 w-3 h-3 bg-red-500 rounded-full animate-pulse"></div>
<div class="absolute top-1/3 right-1/3 w-3 h-3 bg-red-500 rounded-full animate-pulse"></div>
<div class="absolute bottom-1/4 left-1/2 w-3 h-3 bg-red-500 rounded-full animate-pulse"></div>
<div class="absolute top-1/2 right-1/4 w-3 h-3 bg-red-500 rounded-full animate-pulse"></div>
<div class="absolute bottom-1/3 left-1/3 w-3 h-3 bg-orange-500 rounded-full animate-pulse"></div>
<div class="absolute top-1/4 right-1/4 w-3 h-3 bg-orange-500 rounded-full animate-pulse"></div>
</div>
<div class="mt-4 grid grid-cols-3 gap-4">
<div class="text-center">
<p class="text-sm text-gray-500">Critical</p>
<p class="font-bold text-red-500">4</p>
</div>
<div class="text-center">
<p class="text-sm text-gray-500">High</p>
<p class="font-bold text-orange-500">3</p>
</div>
<div class="text-center">
<p class="text-sm text-gray-500">Medium</p>
<p class="font-bold text-yellow-500">5</p>
</div>
</div>
</div>
</div>
<div class="security-level rounded-lg shadow overflow-hidden text-white">
<div class="p-6">
<h2 class="text-lg font-bold mb-4">Security Level</h2>
<div class="flex justify-center mb-6">
<div class="relative w-40 h-40">
<svg class="w-full h-full" viewBox="0 0 100 100">
<!-- Background circle -->
<circle cx="50" cy="50" r="45" fill="none" stroke="#1e3a8a" stroke-width="8"/>
<!-- Progress circle -->
<circle cx="50" cy="50" r="45" fill="none" stroke="#3b82f6" stroke-width="8"
stroke-dasharray="283" stroke-dashoffset="56.6" stroke-linecap="round"/>
<!-- Center text -->
<text x="50" y="50" text-anchor="middle" dy=".3em" font-size="24" font-weight="bold">80%</text>
</svg>
</div>
</div>
<div class="space-y-3">
<div class="flex justify-between items-center">
<span>Firewall</span>
<div class="flex items-center">
<i class="fas fa-check-circle text-green-300 mr-1"></i>
<span>Active</span>
</div>
</div>
<div class="flex justify-between items-center">
<span>IDS/IPS</span>
<div class="flex items-center">
<i class="fas fa-check-circle text-green-300 mr-1"></i>
<span>Active</span>
</div>
</div>
<div class="flex justify-between items-center">
<span>Malware Scan</span>
<div class="flex items-center">
<i class="fas fa-exclamation-triangle text-yellow-300 mr-1"></i>
<span>1 Alert</span>
</div>
</div>
<div class="flex justify-between items-center">
<span>DDoS Protection</span>
<div class="flex items-center">
<i class="fas fa-check-circle text-green-300 mr-1"></i>
<span>Active</span>
</div>
</div>
</div>
<button class="mt-6 w-full py-2 bg-blue-400 hover:bg-blue-300 rounded-lg font-medium transition-colors">
Run Full Scan
</button>
</div>
</div>
</div>
<!-- Recent Threats and Activity Log -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
<div class="threat-card bg-white rounded-lg shadow overflow-hidden">
<div class="p-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-bold text-gray-800">Recent Threats</h2>
<button class="text-sm text-blue-600 hover:text-blue-800">View All</button>
</div>
<div class="space-y-4">
<div class="flex items-start">
<div class="p-2 rounded-full bg-red-100 text-red-500 mr-3">
<i class="fas fa-skull-crossbones"></i>
</div>
<div class="flex-1">
<div class="flex justify-between">
<p class="font-medium">SQL Injection Attempt</p>
<span class="text-xs text-gray-500">2 min ago</span>
</div>
<p class="text-sm text-gray-600">From: 192.168.1.45 (Internal)</p>
<p class="text-xs text-gray-500 mt-1">Target: Customer Database</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 rounded-full bg-orange-100 text-orange-500 mr-3">
<i class="fas fa-bug"></i>
</div>
<div class="flex-1">
<div class="flex justify-between">
<p class="font-medium">Brute Force Attack</p>
<span class="text-xs text-gray-500">15 min ago</span>
</div>
<p class="text-sm text-gray-600">From: 45.227.253.109 (Russia)</p>
<p class="text-xs text-gray-500 mt-1">Target: Admin Login Page</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 rounded-full bg-yellow-100 text-yellow-500 mr-3">
<i class="fas fa-virus"></i>
</div>
<div class="flex-1">
<div class="flex justify-between">
<p class="font-medium">Malware Detected</p>
<span class="text-xs text-gray-500">1 hour ago</span>
</div>
<p class="text-sm text-gray-600">File: invoice.exe</p>
<p class="text-xs text-gray-500 mt-1">Location: Marketing/JohnD</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 rounded-full bg-purple-100 text-purple-500 mr-3">
<i class="fas fa-network-wired"></i>
</div>
<div class="flex-1">
<div class="flex justify-between">
<p class="font-medium">Port Scanning</p>
<span class="text-xs text-gray-500">3 hours ago</span>
</div>
<p class="text-sm text-gray-600">From: 103.216.82.18 (China)</p>
<p class="text-xs text-gray-500 mt-1">Ports: 22, 80, 443, 3389</p>
</div>
</div>
</div>
</div>
</div>
<div class="activity-card bg-white rounded-lg shadow overflow-hidden">
<div class="p-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-lg font-bold text-gray-800">Activity Log</h2>
<button class="text-sm text-blue-600 hover:text-blue-800">View All</button>
</div>
<div class="space-y-4 max-h-96 overflow-y-auto scrollbar-hide">
<div class="flex items-start">
<div class="p-2 rounded-full bg-blue-100 text-blue-500 mr-3">
<i class="fas fa-shield-alt"></i>
</div>
<div class="flex-1">
<div class="flex justify-between">
<p class="font-medium">Firewall Rule Updated</p>
<span class="text-xs text-gray-500">5 min ago</span>
</div>
<p class="text-sm text-gray-600">User: admin</p>
<p class="text-xs text-gray-500 mt-1">Blocked IP range: 103.216.82.0/24</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 rounded-full bg-green-100 text-green-500 mr-3">
<i class="fas fa-check-circle"></i>
</div>
<div class="flex-1">
<div class="flex justify-between">
<p class="font-medium">System Scan Completed</p>
<span class="text-xs text-gray-500">27 min ago</span>
</div>
<p class="text-sm text-gray-600">Status: Clean</p>
<p class="text-xs text-gray-500 mt-1">Scanned: 48,392 files</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 rounded-full bg-indigo-100 text-indigo-500 mr-3">
<i class="fas fa-user-plus"></i>
</div>
<div class="flex-1">
<div class="flex justify-between">
<p class="font-medium">New User Added</p>
<span class="text-xs text-gray-500">1 hour ago</span>
</div>
<p class="text-sm text-gray-600">Username: jsmith</p>
<p class="text-xs text-gray-500 mt-1">Role: Security Analyst</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 rounded-full bg-teal-100 text-teal-500 mr-3">
<i class="fas fa-cloud-download-alt"></i>
</div>
<div class="flex-1">
<div class="flex justify-between">
<p class="font-medium">Security Update</p>
<span class="text-xs text-gray-500">2 hours ago</span>
</div>
<p class="text-sm text-gray-600">Version: 2.4.1</p>
<p class="text-xs text-gray-500 mt-1">Patched 3 vulnerabilities</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 rounded-full bg-pink-100 text-pink-500 mr-3">
<i class="fas fa-lock"></i>
</div>
<div class="flex-1">
<div class="flex justify-between">
<p class="font-medium">Password Changed</p>
<span class="text-xs text-gray-500">3 hours ago</span>
</div>
<p class="text-sm text-gray-600">User: mwilson</p>
<p class="text-xs text-gray-500 mt-1">Forced password reset</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Quick Actions -->
<div class="bg-white rounded-lg shadow p-6 mb-6">
<h2 class="text-lg font-bold text-gray-800 mb-4">Quick Actions</h2>
<div class="grid grid-cols-2 md:grid-cols-4 gap-4">
<button class="flex flex-col items-center p-4 rounded-lg bg-gray-50 hover:bg-gray-100 transition-colors">
<div class="p-3 rounded-full bg-blue-100 text-blue-500 mb-2">
<i class="fas fa-search"></i>
</div>
<span class="text-sm font-medium">Scan Now</span>
</button>
<button class="flex flex-col items-center p-4 rounded-lg bg-gray-50 hover:bg-gray-100 transition-colors">
<div class="p-3 rounded-full bg-green-100 text-green-500 mb-2">
<i class="fas fa-shield-alt"></i>
</div>
<span class="text-sm font-medium">Enable Firewall</span>
</button>
<button class="flex flex-col items-center p-4 rounded-lg bg-gray-50 hover:bg-gray-100 transition-colors">
<div class="p-3 rounded-full bg-purple-100 text-purple-500 mb-2">
<i class="fas fa-user-lock"></i>
</div>
<span class="text-sm font-medium">Lock System</span>
</button>
<button class="flex flex-col items-center p-4 rounded-lg bg-gray-50 hover:bg-gray-100 transition-colors">
<div class="p-3 rounded-full bg-red-100 text-red-500 mb-2">
<i class="fas fa-bell-slash"></i>
</div>
<span class="text-sm font-medium">Silence Alerts</span>
</button>
</div>
</div>
</main>
</div>
</div>
<script>
// Toggle mobile menu
document.querySelector('header button').addEventListener('click', function() {
document.querySelector('.sidebar').classList.toggle('hidden');
document.querySelector('.sidebar').classList.toggle('block');
});
// Simulate live threat updates
setInterval(function() {
const threatCount = document.querySelector('.threat-card h3');
const currentCount = parseInt(threatCount.textContent);
const newCount = currentCount + (Math.random() > 0.7 ? 1 : 0);
if (newCount !== currentCount) {
threatCount.textContent = newCount;
threatCount.classList.add('animate-pulse');
setTimeout(() => threatCount.classList.remove('animate-pulse'), 1000);
}
}, 5000);
// Update security level animation
let securityLevel = 80;
const securityCircle = document.querySelector('circle[stroke-dashoffset]');
setInterval(function() {
securityLevel = Math.max(70, Math.min(90, securityLevel + (Math.random() * 4 - 2)));
const offset = 283 * (1 - securityLevel / 100);
securityCircle.setAttribute('stroke-dashoffset', offset);
document.querySelector('.security-level text').textContent = Math.round(securityLevel) + '%';
}, 3000);
// Add blinking effect to critical alerts
const criticalIcons = document.querySelectorAll('.fa-skull-crossbones');
criticalIcons.forEach(icon => {
setInterval(() => {
icon.classList.toggle('blink');
}, 2000);
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=voizex/security" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>