Zhasjsjsus commited on
Commit
fc7673b
·
verified ·
1 Parent(s): 69a435b

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. index.html +626 -19
index.html CHANGED
@@ -1,19 +1,626 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="ar" dir="rtl">
3
+
4
+ <head>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <title>نظام الاختراق المتقدم | Advanced Penetration System</title>
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <link
10
+ href="https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Noto+Sans+Arabic:wght@400;700&display=swap"
11
+ rel="stylesheet">
12
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
13
+ <style>
14
+ :root {
15
+ --primary: #2563eb;
16
+ --secondary: #3b82f6;
17
+ --danger: #dc2626;
18
+ --bg: #ffffff;
19
+ --surface: #f8fafc;
20
+ --text: #0f172a;
21
+ --text-muted: #64748b;
22
+ --border: #e2e8f0;
23
+ --glass: rgba(255, 255, 255, 0.8);
24
+ }
25
+
26
+ * {
27
+ margin: 0;
28
+ padding: 0;
29
+ box-sizing: border-box;
30
+ }
31
+
32
+ body {
33
+ font-family: 'Share Tech Mono', 'Noto Sans Arabic', monospace;
34
+ background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
35
+ color: var(--text);
36
+ overflow: hidden;
37
+ height: 100vh;
38
+ }
39
+
40
+ /* Subtle Grid Background */
41
+ .grid-bg {
42
+ background-image:
43
+ linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
44
+ linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
45
+ background-size: 50px 50px;
46
+ position: absolute;
47
+ top: 0;
48
+ left: 0;
49
+ right: 0;
50
+ bottom: 0;
51
+ z-index: -1;
52
+ }
53
+
54
+ /* Glass Panel - White Theme */
55
+ .glass-panel {
56
+ background: rgba(255, 255, 255, 0.9);
57
+ backdrop-filter: blur(12px);
58
+ border: 1px solid rgba(226, 232, 240, 0.8);
59
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
60
+ border-radius: 12px;
61
+ }
62
+
63
+ /* Custom Scrollbar */
64
+ ::-webkit-scrollbar {
65
+ width: 8px;
66
+ }
67
+
68
+ ::-webkit-scrollbar-track {
69
+ background: #f1f5f9;
70
+ }
71
+
72
+ ::-webkit-scrollbar-thumb {
73
+ background: #cbd5e1;
74
+ border-radius: 4px;
75
+ }
76
+
77
+ ::-webkit-scrollbar-thumb:hover {
78
+ background: #94a3b8;
79
+ }
80
+
81
+ /* Progress Bar - Blue Theme */
82
+ .progress-bar {
83
+ background: #e2e8f0;
84
+ border: 1px solid #cbd5e1;
85
+ height: 20px;
86
+ position: relative;
87
+ overflow: hidden;
88
+ border-radius: 6px;
89
+ }
90
+
91
+ .progress-fill {
92
+ background: linear-gradient(90deg, #3b82f6, #2563eb);
93
+ height: 100%;
94
+ width: 0%;
95
+ transition: width 0.3s ease;
96
+ box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
97
+ }
98
+
99
+ /* Blink Animation */
100
+ .blink {
101
+ animation: blink 1s infinite;
102
+ }
103
+
104
+ @keyframes blink {
105
+ 0%, 50% { opacity: 1; }
106
+ 51%, 100% { opacity: 0; }
107
+ }
108
+
109
+ /* Typing Effect */
110
+ .typing::after {
111
+ content: '▋';
112
+ animation: cursor 1s infinite;
113
+ color: var(--primary);
114
+ }
115
+
116
+ @keyframes cursor {
117
+ 0%, 50% { opacity: 1; }
118
+ 51%, 100% { opacity: 0; }
119
+ }
120
+
121
+ /* Warning Pulse - Red Theme */
122
+ .warning-pulse {
123
+ animation: warningPulse 2s infinite;
124
+ }
125
+
126
+ @keyframes warningPulse {
127
+ 0%, 100% {
128
+ box-shadow: 0 0 5px rgba(220, 38, 38, 0.3);
129
+ border-color: rgba(220, 38, 38, 0.5);
130
+ }
131
+ 50% {
132
+ box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
133
+ border-color: rgba(220, 38, 38, 0.8);
134
+ }
135
+ }
136
+
137
+ /* Input Styling */
138
+ input, select {
139
+ background: #ffffff;
140
+ border: 1px solid #cbd5e1;
141
+ color: #0f172a;
142
+ transition: all 0.2s;
143
+ }
144
+
145
+ input:focus, select:focus {
146
+ outline: none;
147
+ border-color: #3b82f6;
148
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
149
+ }
150
+
151
+ /* Button Styling */
152
+ .btn-primary {
153
+ background: linear-gradient(135deg, #3b82f6, #2563eb);
154
+ color: white;
155
+ border: none;
156
+ transition: all 0.3s;
157
+ box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
158
+ }
159
+
160
+ .btn-primary:hover {
161
+ transform: translateY(-1px);
162
+ box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
163
+ }
164
+
165
+ /* Terminal Text */
166
+ .terminal-text {
167
+ font-family: 'Share Tech Mono', monospace;
168
+ color: #334155;
169
+ }
170
+
171
+ /* Header Styling */
172
+ header {
173
+ background: rgba(255, 255, 255, 0.95);
174
+ backdrop-filter: blur(12px);
175
+ border-bottom: 1px solid #e2e8f0;
176
+ }
177
+
178
+ /* Status Indicators */
179
+ .status-dot {
180
+ width: 8px;
181
+ height: 8px;
182
+ border-radius: 50%;
183
+ display: inline-block;
184
+ margin-left: 6px;
185
+ }
186
+
187
+ .status-active {
188
+ background: #10b981;
189
+ box-shadow: 0 0 8px #10b981;
190
+ }
191
+
192
+ /* Hex Pattern */
193
+ .hex-pattern {
194
+ position: absolute;
195
+ font-size: 12px;
196
+ opacity: 0.1;
197
+ pointer-events: none;
198
+ font-family: monospace;
199
+ color: #64748b;
200
+ }
201
+
202
+ /* Log Entry */
203
+ .log-entry {
204
+ border-right: 3px solid transparent;
205
+ padding: 4px 8px;
206
+ margin: 2px 0;
207
+ font-size: 0.85rem;
208
+ transition: all 0.2s;
209
+ }
210
+
211
+ .log-entry:hover {
212
+ background: rgba(241, 245, 249, 0.8);
213
+ border-right-color: #3b82f6;
214
+ }
215
+
216
+ .log-success { color: #059669; }
217
+ .log-warning { color: #d97706; }
218
+ .log-error { color: #dc2626; }
219
+ .log-info { color: #2563eb; }
220
+
221
+ /* Smooth transitions */
222
+ * {
223
+ transition: background-color 0.3s, border-color 0.3s;
224
+ }
225
+ </style>
226
+ </head>
227
+
228
+ <body>
229
+ <div class="grid-bg"></div>
230
+
231
+ <!-- Header -->
232
+ <header class="relative z-10 p-4 sticky top-0">
233
+ <div class="container mx-auto flex justify-between items-center flex-wrap gap-4">
234
+ <div class="flex items-center gap-4">
235
+ <div class="w-12 h-12 bg-blue-600 rounded-lg flex items-center justify-center text-white shadow-lg">
236
+ <i class="fas fa-shield-alt text-2xl"></i>
237
+ </div>
238
+ <div>
239
+ <h1 class="text-2xl font-bold text-slate-800 tracking-tight">نظام الاختراق المتقدم</h1>
240
+ <p class="text-xs text-slate-500 font-medium">Advanced Penetration Testing Framework v9.0.1</p>
241
+ </div>
242
+ </div>
243
+
244
+ <div class="flex items-center gap-6 text-sm">
245
+ <div class="hidden md:flex items-center bg-white px-4 py-2 rounded-full border border-slate-200 shadow-sm">
246
+ <span class="text-slate-500 ml-2">IP:</span>
247
+ <span class="font-mono text-slate-700 font-semibold" id="userIp">192.168.1.105</span>
248
+ </div>
249
+ <div class="hidden md:flex items-center bg-white px-4 py-2 rounded-full border border-slate-200 shadow-sm">
250
+ <span class="text-slate-500 ml-2">STATUS:</span>
251
+ <span class="flex items-center text-emerald-600 font-semibold">
252
+ <span class="status-dot status-active"></span>
253
+ CONNECTED
254
+ </span>
255
+ </div>
256
+ <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank"
257
+ class="px-4 py-2 bg-slate-800 text-white rounded-lg hover:bg-slate-700 transition-all text-xs font-medium shadow-lg hover:shadow-xl">
258
+ Built with anycoder
259
+ </a>
260
+ </div>
261
+ </div>
262
+ </header>
263
+
264
+ <!-- Main Interface -->
265
+ <main class="relative z-10 container mx-auto p-4 h-[calc(100vh-80px)] flex flex-col lg:flex-row gap-4">
266
+
267
+ <!-- Left Panel - Controls -->
268
+ <aside class="lg:w-1/4 flex flex-col gap-4">
269
+ <!-- Target Input -->
270
+ <div class="glass-panel p-5">
271
+ <h3 class="text-lg mb-4 text-slate-800 font-bold border-b border-slate-200 pb-3 flex items-center">
272
+ <i class="fas fa-crosshairs ml-2 text-blue-600"></i>
273
+ الهدف المستهدف
274
+ </h3>
275
+ <div class="space-y-4">
276
+ <div>
277
+ <label class="text-xs text-slate-500 block mb-2 font-semibold uppercase tracking-wider">عنوان IP / نطاق</label>
278
+ <input type="text" id="targetInput" placeholder="192.168.1.1"
279
+ class="w-full rounded-lg p-3 font-mono text-sm bg-slate-50">
280
+ </div>
281
+ <div>
282
+ <label class="text-xs text-slate-500 block mb-2 font-semibold uppercase tracking-wider">نوع الهجوم</label>
283
+ <select id="attackType" class="w-full rounded-lg p-3 text-sm bg-slate-50 cursor-pointer">
284
+ <option value="brute">Brute Force</option>
285
+ <option value="ddos">DDoS Simulation</option>
286
+ <option value="injection">SQL Injection</option>
287
+ <option value="mitm">Man in the Middle</option>
288
+ <option value="ransomware">Ransomware Deploy</option>
289
+ </select>
290
+ </div>
291
+ <button onclick="startHack()" class="w-full btn-primary py-3 rounded-lg font-bold text-sm uppercase tracking-wider flex items-center justify-center gap-2">
292
+ <i class="fas fa-play"></i>
293
+ بدء العملية
294
+ </button>
295
+ </div>
296
+ </div>
297
+
298
+ <!-- System Stats -->
299
+ <div class="glass-panel p-5 flex-1">
300
+ <h3 class="text-lg mb-4 text-slate-800 font-bold border-b border-slate-200 pb-3 flex items-center">
301
+ <i class="fas fa-microchip ml-2 text-blue-600"></i>
302
+ موارد النظام
303
+ </h3>
304
+ <div class="space-y-5">
305
+ <div>
306
+ <div class="flex justify-between text-xs mb-2 font-semibold text-slate-600">
307
+ <span>CPU Usage</span>
308
+ <span id="cpuPercent" class="font-mono text-blue-600">0%</span>
309
+ </div>
310
+ <div class="progress-bar">
311
+ <div id="cpuBar" class="progress-fill"></div>
312
+ </div>
313
+ </div>
314
+ <div>
315
+ <div class="flex justify-between text-xs mb-2 font-semibold text-slate-600">
316
+ <span>Memory</span>
317
+ <span id="memPercent" class="font-mono text-blue-600">0%</span>
318
+ </div>
319
+ <div class="progress-bar">
320
+ <div id="memBar" class="progress-fill"></div>
321
+ </div>
322
+ </div>
323
+ <div>
324
+ <div class="flex justify-between text-xs mb-2 font-semibold text-slate-600">
325
+ <span>Network</span>
326
+ <span id="netPercent" class="font-mono text-blue-600">0%</span>
327
+ </div>
328
+ <div class="progress-bar">
329
+ <div id="netBar" class="progress-fill"></div>
330
+ </div>
331
+ </div>
332
+ </div>
333
+
334
+ <!-- Active Connections -->
335
+ <div class="mt-6">
336
+ <h4 class="text-sm mb-3 text-slate-600 font-semibold border-b border-slate-100 pb-2">الاتصالات النشطة</h4>
337
+ <div id="connectionsList" class="space-y-2 max-h-40 overflow-y-auto text-xs font-mono">
338
+ <div class="flex justify-between items-center p-2 bg-slate-50 rounded border border-slate-100">
339
+ <span class="text-slate-600">192.168.1.1:443</span>
340
+ <span class="text-emerald-600 font-bold">ESTABLISHED</span>
341
+ </div>
342
+ <div class="flex justify-between items-center p-2 bg-slate-50 rounded border border-slate-100">
343
+ <span class="text-slate-600">10.0.0.5:22</span>
344
+ <span class="text-emerald-600 font-bold">ESTABLISHED</span>
345
+ </div>
346
+ <div class="flex justify-between items-center p-2 bg-slate-50 rounded border border-slate-100">
347
+ <span class="text-slate-600">172.16.0.1:8080</span>
348
+ <span class="text-amber-600 font-bold">PENDING</span>
349
+ </div>
350
+ </div>
351
+ </div>
352
+ </div>
353
+ </aside>
354
+
355
+ <!-- Center Panel - Terminal -->
356
+ <section class="lg:w-1/2 flex flex-col gap-4">
357
+ <div class="glass-panel flex-1 flex flex-col overflow-hidden">
358
+ <div class="bg-slate-100 border-b border-slate-200 p-3 flex justify-between items-center">
359
+ <div class="flex items-center gap-2">
360
+ <div class="flex gap-1.5">
361
+ <div class="w-3 h-3 rounded-full bg-red-400"></div>
362
+ <div class="w-3 h-3 rounded-full bg-amber-400"></div>
363
+ <div class="w-3 h-3 rounded-full bg-emerald-400"></div>
364
+ </div>
365
+ <span class="text-xs text-slate-500 font-mono ml-3">terminal — bash — 80x24</span>
366
+ </div>
367
+ <div class="flex gap-2">
368
+ <button onclick="clearTerminal()" class="text-xs text-slate-500 hover:text-slate-700 px-2 py-1 rounded hover:bg-slate-200 transition-colors">
369
+ <i class="fas fa-trash-alt"></i>
370
+ </button>
371
+ <button onclick="copyTerminal()" class="text-xs text-slate-500 hover:text-slate-700 px-2 py-1 rounded hover:bg-slate-200 transition-colors">
372
+ <i class="fas fa-copy"></i>
373
+ </button>
374
+ </div>
375
+ </div>
376
+ <div id="terminal" class="flex-1 p-4 overflow-y-auto font-mono text-sm bg-white/50 terminal-text space-y-1">
377
+ <div class="log-entry log-info">[INFO] System initialized successfully...</div>
378
+ <div class="log-entry log-info">[INFO] Loading penetration testing modules...</div>
379
+ <div class="log-entry log-success">[OK] Modules loaded: 156/156</div>
380
+ <div class="log-entry log-info">[INFO] Waiting for target specification...</div>
381
+ <div class="typing text-slate-400 mt-2">root@white-hat:~# <span class="text-slate-600">_</span></div>
382
+ </div>
383
+ </div>
384
+
385
+ <!-- Quick Actions -->
386
+ <div class="glass-panel p-4">
387
+ <h3 class="text-sm font-bold text-slate-700 mb-3 uppercase tracking-wider">أدوات سريعة</h3>
388
+ <div class="grid grid-cols-4 gap-2">
389
+ <button onclick="runTool('nmap')" class="p-3 bg-slate-50 hover:bg-blue-50 border border-slate-200 hover:border-blue-300 rounded-lg transition-all group">
390
+ <i class="fas fa-network-wired text-slate-400 group-hover:text-blue-600 text-lg mb-1 block"></i>
391
+ <span class="text-xs text-slate-600 font-medium">Nmap</span>
392
+ </button>
393
+ <button onclick="runTool('metasploit')" class="p-3 bg-slate-50 hover:bg-blue-50 border border-slate-200 hover:border-blue-300 rounded-lg transition-all group">
394
+ <i class="fas fa-bug text-slate-400 group-hover:text-blue-600 text-lg mb-1 block"></i>
395
+ <span class="text-xs text-slate-600 font-medium">Metasploit</span>
396
+ </button>
397
+ <button onclick="runTool('wireshark')" class="p-3 bg-slate-50 hover:bg-blue-50 border border-slate-200 hover:border-blue-300 rounded-lg transition-all group">
398
+ <i class="fas fa-shark text-slate-400 group-hover:text-blue-600 text-lg mb-1 block"></i>
399
+ <span class="text-xs text-slate-600 font-medium">Wireshark</span>
400
+ </button>
401
+ <button onclick="runTool('burp')" class="p-3 bg-slate-50 hover:bg-blue-50 border border-slate-200 hover:border-blue-300 rounded-lg transition-all group">
402
+ <i class="fas fa-search text-slate-400 group-hover:text-blue-600 text-lg mb-1 block"></i>
403
+ <span class="text-xs text-slate-600 font-medium">Burp Suite</span>
404
+ </button>
405
+ </div>
406
+ </div>
407
+ </section>
408
+
409
+ <!-- Right Panel - Results -->
410
+ <aside class="lg:w-1/4 flex flex-col gap-4">
411
+ <!-- Vulnerability Scanner -->
412
+ <div class="glass-panel p-5 flex-1">
413
+ <h3 class="text-lg mb-4 text-slate-800 font-bold border-b border-slate-200 pb-3 flex items-center">
414
+ <i class="fas fa-bug ml-2 text-red-500"></i>
415
+ الثغرات المكتشفة
416
+ </h3>
417
+ <div id="vulnerabilities" class="space-y-3 overflow-y-auto max-h-96">
418
+ <div class="p-3 bg-red-50 border border-red-100 rounded-lg warning-pulse">
419
+ <div class="flex items-center gap-2 mb-1">
420
+ <i class="fas fa-exclamation-triangle text-red-600"></i>
421
+ <span class="font-bold text-red-700 text-sm">CVE-2023-38408</span>
422
+ </div>
423
+ <p class="text-xs text-red-600 leading-relaxed">OpenSSH Forwarded SSH-Agent Remote Code Execution</p>
424
+ <div class="mt-2 flex gap-2">
425
+ <span class="text-xs bg-red-200 text-red-800 px-2 py-0.5 rounded font-bold">CVSS: 9.8</span>
426
+ <span class="text-xs bg-red-100 text-red-700 px-2 py-0.5 rounded">Critical</span>
427
+ </div>
428
+ </div>
429
+
430
+ <div class="p-3 bg-amber-50 border border-amber-100 rounded-lg">
431
+ <div class="flex items-center gap-2 mb-1">
432
+ <i class="fas fa-exclamation-circle text-amber-600"></i>
433
+ <span class="font-bold text-amber-700 text-sm">CVE-2023-29357</span>
434
+ </div>
435
+ <p class="text-xs text-amber-700 leading-relaxed">Microsoft SharePoint Server Elevation of Privilege</p>
436
+ <div class="mt-2 flex gap-2">
437
+ <span class="text-xs bg-amber-200 text-amber-800 px-2 py-0.5 rounded font-bold">CVSS: 8.8</span>
438
+ <span class="text-xs bg-amber-100 text-amber-700 px-2 py-0.5 rounded">High</span>
439
+ </div>
440
+ </div>
441
+
442
+ <div class="p-3 bg-blue-50 border border-blue-100 rounded-lg">
443
+ <div class="flex items-center gap-2 mb-1">
444
+ <i class="fas fa-info-circle text-blue-600"></i>
445
+ <span class="font-bold text-blue-700 text-sm">CVE-2023-36884</span>
446
+ </div>
447
+ <p class="text-xs text-blue-700 leading-relaxed">Office and Windows HTML Remote Code Execution</p>
448
+ <div class="mt-2 flex gap-2">
449
+ <span class="text-xs bg-blue-200 text-blue-800 px-2 py-0.5 rounded font-bold">CVSS: 7.5</span>
450
+ <span class="text-xs bg-blue-100 text-blue-700 px-2 py-0.5 rounded">Medium</span>
451
+ </div>
452
+ </div>
453
+ </div>
454
+ </div>
455
+
456
+ <!-- Network Map -->
457
+ <div class="glass-panel p-5">
458
+ <h3 class="text-lg mb-4 text-slate-800 font-bold border-b border-slate-200 pb-3 flex items-center">
459
+ <i class="fas fa-project-diagram ml-2 text-blue-600"></i>
460
+ خريطة الشبكة
461
+ </h3>
462
+ <div class="relative h-48 bg-slate-50 rounded-lg border border-slate-200 overflow-hidden">
463
+ <canvas id="networkCanvas" class="w-full h-full"></canvas>
464
+ <div class="absolute bottom-2 right-2 text-xs text-slate-400 bg-white/80 px-2 py-1 rounded backdrop-blur">
465
+ Live Topology
466
+ </div>
467
+ </div>
468
+ </div>
469
+ </aside>
470
+
471
+ </main>
472
+
473
+ <script>
474
+ // System Stats Simulation
475
+ function updateStats() {
476
+ const cpu = Math.floor(Math.random() * 30) + 20;
477
+ const mem = Math.floor(Math.random() * 20) + 40;
478
+ const net = Math.floor(Math.random() * 50) + 10;
479
+
480
+ document.getElementById('cpuPercent').textContent = cpu + '%';
481
+ document.getElementById('cpuBar').style.width = cpu + '%';
482
+
483
+ document.getElementById('memPercent').textContent = mem + '%';
484
+ document.getElementById('memBar').style.width = mem + '%';
485
+
486
+ document.getElementById('netPercent').textContent = net + '%';
487
+ document.getElementById('netBar').style.width = net + '%';
488
+ }
489
+
490
+ setInterval(updateStats, 2000);
491
+ updateStats();
492
+
493
+ // Terminal Functions
494
+ function addLog(message, type = 'info') {
495
+ const terminal = document.getElementById('terminal');
496
+ const entry = document.createElement('div');
497
+ entry.className = `log-entry log-${type}`;
498
+
499
+ const timestamp = new Date().toLocaleTimeString('en-US', { hour12: false });
500
+ entry.textContent = `[${timestamp}] ${message}`;
501
+
502
+ terminal.insertBefore(entry, terminal.lastElementChild);
503
+ terminal.scrollTop = terminal.scrollHeight;
504
+ }
505
+
506
+ function clearTerminal() {
507
+ const terminal = document.getElementById('terminal');
508
+ terminal.innerHTML = '<div class="typing text-slate-400 mt-2">root@white-hat:~# <span class="text-slate-600">_</span></div>';
509
+ }
510
+
511
+ function copyTerminal() {
512
+ const terminal = document.getElementById('terminal');
513
+ const text = terminal.innerText;
514
+ navigator.clipboard.writeText(text);
515
+ addLog('Terminal content copied to clipboard', 'success');
516
+ }
517
+
518
+ // Attack Simulation
519
+ function startHack() {
520
+ const target = document.getElementById('targetInput').value || '192.168.1.1';
521
+ const type = document.getElementById('attackType').value;
522
+
523
+ addLog(`Initializing ${type} attack on ${target}...`, 'warning');
524
+
525
+ let steps = 0;
526
+ const maxSteps = 5;
527
+
528
+ const interval = setInterval(() => {
529
+ steps++;
530
+ const progress = (steps / maxSteps) * 100;
531
+
532
+ if (steps === 1) addLog('Establishing secure connection...', 'info');
533
+ if (steps === 2) addLog('Bypassing firewall rules...', 'warning');
534
+ if (steps === 3) addLog('Exploiting vulnerability...', 'warning');
535
+ if (steps === 4) addLog('Deploying payload...', 'error');
536
+ if (steps === 5) {
537
+ addLog('Attack completed successfully!', 'success');
538
+ addLog(`Access gained to ${target}`, 'success');
539
+ clearInterval(interval);
540
+ }
541
+ }, 1500);
542
+ }
543
+
544
+ function runTool(tool) {
545
+ addLog(`Launching ${tool}...`, 'info');
546
+ setTimeout(() => {
547
+ addLog(`${tool} initialized successfully`, 'success');
548
+ }, 800);
549
+ }
550
+
551
+ // Network Canvas Animation
552
+ const canvas = document.getElementById('networkCanvas');
553
+ const ctx = canvas.getContext('2d');
554
+
555
+ function resizeCanvas() {
556
+ canvas.width = canvas.offsetWidth;
557
+ canvas.height = canvas.offsetHeight;
558
+ }
559
+ resizeCanvas();
560
+ window.addEventListener('resize', resizeCanvas);
561
+
562
+ const nodes = [];
563
+ for (let i = 0; i < 8; i++) {
564
+ nodes.push({
565
+ x: Math.random() * canvas.width,
566
+ y: Math.random() * canvas.height,
567
+ vx: (Math.random() - 0.5) * 0.5,
568
+ vy: (Math.random() - 0.5) * 0.5
569
+ });
570
+ }
571
+
572
+ function drawNetwork() {
573
+ ctx.clearRect(0, 0, canvas.width, canvas.height);
574
+
575
+ // Draw connections
576
+ ctx.strokeStyle = 'rgba(148, 163, 184, 0.3)';
577
+ ctx.lineWidth = 1;
578
+ for (let i = 0; i < nodes.length; i++) {
579
+ for (let j = i + 1; j < nodes.length; j++) {
580
+ const dx = nodes[i].x - nodes[j].x;
581
+ const dy = nodes[i].y - nodes[j].y;
582
+ const dist = Math.sqrt(dx * dx + dy * dy);
583
+ if (dist < 100) {
584
+ ctx.beginPath();
585
+ ctx.moveTo(nodes[i].x, nodes[i].y);
586
+ ctx.lineTo(nodes[j].x, nodes[j].y);
587
+ ctx.stroke();
588
+ }
589
+ }
590
+ }
591
+
592
+ // Draw nodes
593
+ nodes.forEach(node => {
594
+ node.x += node.vx;
595
+ node.y += node.vy;
596
+
597
+ if (node.x < 0 || node.x > canvas.width) node.vx *= -1;
598
+ if (node.y < 0 || node.y > canvas.height) node.vy *= -1;
599
+
600
+ ctx.beginPath();
601
+ ctx.arc(node.x, node.y, 4, 0, Math.PI * 2);
602
+ ctx.fillStyle = '#3b82f6';
603
+ ctx.fill();
604
+ });
605
+
606
+ requestAnimationFrame(drawNetwork);
607
+ }
608
+ drawNetwork();
609
+
610
+ // Add random hex patterns
611
+ function addHexPatterns() {
612
+ const container = document.body;
613
+ for (let i = 0; i < 20; i++) {
614
+ const hex = document.createElement('div');
615
+ hex.className = 'hex-pattern';
616
+ hex.style.left = Math.random() * 100 + '%';
617
+ hex.style.top = Math.random() * 100 + '%';
618
+ hex.textContent = Math.random().toString(16).substr(2, 8).toUpperCase();
619
+ container.appendChild(hex);
620
+ }
621
+ }
622
+ addHexPatterns();
623
+ </script>
624
+ </body>
625
+
626
+ </html>