File size: 53,172 Bytes
bc3fc41
 
 
 
 
 
 
 
51a13f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc3fc41
51a13f5
bc3fc41
51a13f5
 
 
bc3fc41
51a13f5
bc3fc41
51a13f5
bc3fc41
 
51a13f5
 
 
bc3fc41
 
51a13f5
bc3fc41
51a13f5
 
bc3fc41
 
 
 
 
51a13f5
 
bc3fc41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51a13f5
bc3fc41
 
 
 
 
51a13f5
bc3fc41
 
 
51a13f5
 
 
 
 
 
bc3fc41
 
51a13f5
 
bc3fc41
 
51a13f5
 
 
bc3fc41
 
 
51a13f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc3fc41
51a13f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc3fc41
51a13f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc3fc41
 
 
51a13f5
 
 
 
 
 
 
 
 
 
 
bc3fc41
 
51a13f5
bc3fc41
51a13f5
 
 
 
 
 
bc3fc41
51a13f5
 
bc3fc41
51a13f5
 
 
 
 
 
 
bc3fc41
51a13f5
 
 
 
 
bc3fc41
51a13f5
 
 
 
bc3fc41
51a13f5
 
bc3fc41
51a13f5
 
 
 
 
 
 
bc3fc41
51a13f5
 
 
 
 
 
bc3fc41
 
51a13f5
bc3fc41
51a13f5
 
 
 
 
 
 
 
 
 
 
 
 
bc3fc41
51a13f5
bc3fc41
51a13f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc3fc41
 
51a13f5
 
 
 
 
 
 
 
 
bc3fc41
 
 
51a13f5
 
 
 
 
 
 
bc3fc41
 
51a13f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc3fc41
51a13f5
 
 
 
 
 
 
 
 
 
 
 
bc3fc41
51a13f5
 
 
 
 
 
 
 
 
bc3fc41
51a13f5
 
 
 
 
 
 
 
 
bc3fc41
 
51a13f5
bc3fc41
 
 
51a13f5
 
 
 
 
bc3fc41
 
 
51a13f5
 
 
 
 
 
 
 
bc3fc41
51a13f5
bc3fc41
51a13f5
 
 
 
 
bc3fc41
51a13f5
bc3fc41
51a13f5
 
 
 
 
bc3fc41
51a13f5
bc3fc41
51a13f5
 
 
 
 
bc3fc41
51a13f5
bc3fc41
51a13f5
 
 
 
 
bc3fc41
51a13f5
bc3fc41
51a13f5
 
 
 
 
bc3fc41
51a13f5
bc3fc41
 
 
 
 
 
51a13f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc3fc41
 
 
51a13f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc3fc41
51a13f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc3fc41
51a13f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc3fc41
51a13f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc3fc41
51a13f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc3fc41
51a13f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc3fc41
51a13f5
 
 
 
 
 
 
 
 
 
 
bc3fc41
51a13f5
 
 
 
 
bc3fc41
51a13f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc3fc41
51a13f5
 
 
bc3fc41
51a13f5
 
 
 
bc3fc41
51a13f5
 
 
 
 
 
 
 
 
 
 
 
 
bc3fc41
51a13f5
bc3fc41
51a13f5
 
 
bc3fc41
 
51a13f5
 
 
 
bc3fc41
51a13f5
 
 
 
 
 
bc3fc41
51a13f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc3fc41
51a13f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bc3fc41
51a13f5
 
bc3fc41
51a13f5
bc3fc41
 
 
51a13f5
 
 
 
 
 
 
 
 
 
 
 
 
 
bc3fc41
 
51a13f5
 
 
 
 
 
 
 
 
bc3fc41
51a13f5
 
 
 
 
 
 
 
bc3fc41
 
51a13f5
 
 
bc3fc41
 
51a13f5
 
 
 
 
 
bc3fc41
51a13f5
 
 
 
 
 
 
 
 
 
bc3fc41
 
 
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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>IPTF AbuAliAQ June 2025 WebApp</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">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#1e40af',
                        secondary: '#1e3a8a',
                        dark: '#0f172a',
                        light: '#f8fafc',
                        danger: '#dc2626',
                        success: '#16a34a',
                        warning: '#d97706'
                    }
                }
            }
        }
    </script>
    <style>
        .console-output {
            font-family: 'Courier New', monospace;
            background-color: #0f172a;
            color: #f8fafc;
            height: 300px;
            overflow-y: auto;
            padding: 1rem;
            border-radius: 0.5rem;
            white-space: pre-wrap;
        }
        
        .tool-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }
        
        .network-visualization {
            height: 400px;
            background-color: #0f172a;
            border-radius: 0.5rem;
            position: relative;
        }
        
        .node {
            position: absolute;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .node:hover {
            transform: scale(1.1);
        }
        
        .connection {
            position: absolute;
            height: 2px;
            background-color: #3b82f6;
            transform-origin: 0 0;
        }
        
        .progress-bar {
            height: 5px;
            background-color: #3b82f6;
            transition: width 0.3s ease;
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }
        
        .blink {
            animation: blink 1s infinite;
        }
        
        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
    </style>
</head>
<body class="bg-gray-100 text-gray-900">
    <!-- Login Modal -->
    <div id="loginModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
        <div class="bg-white p-8 rounded-lg shadow-xl w-full max-w-md">
            <div class="text-center mb-6">
                <h2 class="text-2xl font-bold text-primary">IPTF AbuAliAQ</h2>
                <p class="text-gray-600">June 2025 WebApp</p>
            </div>
            <form id="loginForm">
                <div class="mb-4">
                    <label for="username" class="block text-gray-700 mb-2">Username</label>
                    <input type="text" id="username" class="w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-primary" placeholder="admin" required>
                </div>
                <div class="mb-6">
                    <label for="password" class="block text-gray-700 mb-2">Password</label>
                    <input type="password" id="password" class="w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-primary" placeholder="admin@123" required>
                </div>
                <button type="submit" class="w-full bg-primary text-white py-2 px-4 rounded-lg hover:bg-secondary transition duration-200">Login</button>
            </form>
            <div class="mt-4 text-center text-sm text-gray-600">
                <p>Default credentials: admin / admin@123</p>
            </div>
        </div>
    </div>

    <!-- Main App (hidden until login) -->
    <div id="mainApp" class="hidden">
        <!-- Header -->
        <header class="bg-dark text-white shadow-lg">
            <div class="container mx-auto px-4 py-3 flex justify-between items-center">
                <div class="flex items-center space-x-2">
                    <i class="fas fa-shield-alt text-2xl text-primary"></i>
                    <h1 class="text-xl font-bold">IPTF AbuAliAQ <span class="text-sm font-normal">June 2025 WebApp</span></h1>
                </div>
                <div class="flex items-center space-x-4">
                    <div class="relative">
                        <button id="notificationsBtn" class="p-2 rounded-full hover:bg-gray-700 relative">
                            <i class="fas fa-bell"></i>
                            <span class="absolute top-0 right-0 bg-danger text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">3</span>
                        </button>
                        <div id="notificationsDropdown" class="hidden absolute right-0 mt-2 w-64 bg-white text-gray-800 rounded-lg shadow-xl z-50">
                            <div class="p-3 border-b">
                                <h3 class="font-bold">Notifications</h3>
                            </div>
                            <div class="max-h-60 overflow-y-auto">
                                <a href="#" class="block p-3 hover:bg-gray-100 border-b">
                                    <div class="text-sm font-medium">New CVE Database Update</div>
                                    <div class="text-xs text-gray-500">5 minutes ago</div>
                                </a>
                                <a href="#" class="block p-3 hover:bg-gray-100 border-b">
                                    <div class="text-sm font-medium">Tool Update Available</div>
                                    <div class="text-xs text-gray-500">2 hours ago</div>
                                </a>
                                <a href="#" class="block p-3 hover:bg-gray-100">
                                    <div class="text-sm font-medium">Scan Completed</div>
                                    <div class="text-xs text-gray-500">Yesterday</div>
                                </a>
                            </div>
                        </div>
                    </div>
                    <div class="relative">
                        <button id="userMenuBtn" class="flex items-center space-x-2 p-2 rounded-full hover:bg-gray-700">
                            <img src="https://ui-avatars.com/api/?name=Admin&background=1e40af&color=fff" alt="User" class="h-8 w-8 rounded-full">
                            <span>Admin</span>
                        </button>
                        <div id="userMenuDropdown" class="hidden absolute right-0 mt-2 w-48 bg-white text-gray-800 rounded-lg shadow-xl z-50">
                            <a href="#" class="block px-4 py-2 hover:bg-gray-100">Profile</a>
                            <a href="#" class="block px-4 py-2 hover:bg-gray-100">Settings</a>
                            <a href="#" id="logoutBtn" class="block px-4 py-2 hover:bg-gray-100 text-danger">Logout</a>
                        </div>
                    </div>
                </div>
            </div>
        </header>

        <!-- Main Content -->
        <main class="container mx-auto px-4 py-6">
            <!-- Dashboard Overview -->
            <div class="grid grid-cols-1 md:grid-cols-4 gap-4 mb-6">
                <div class="bg-white p-4 rounded-lg shadow">
                    <div class="flex items-center justify-between">
                        <div>
                            <p class="text-gray-500">Active Scans</p>
                            <h3 class="text-2xl font-bold">8</h3>
                        </div>
                        <div class="bg-blue-100 p-3 rounded-full">
                            <i class="fas fa-search text-primary text-xl"></i>
                        </div>
                    </div>
                </div>
                <div class="bg-white p-4 rounded-lg shadow">
                    <div class="flex items-center justify-between">
                        <div>
                            <p class="text-gray-500">Vulnerabilities</p>
                            <h3 class="text-2xl font-bold">127</h3>
                        </div>
                        <div class="bg-red-100 p-3 rounded-full">
                            <i class="fas fa-bug text-danger text-xl"></i>
                        </div>
                    </div>
                </div>
                <div class="bg-white p-4 rounded-lg shadow">
                    <div class="flex items-center justify-between">
                        <div>
                            <p class="text-gray-500">CVEs Detected</p>
                            <h3 class="text-2xl font-bold">42</h3>
                        </div>
                        <div class="bg-yellow-100 p-3 rounded-full">
                            <i class="fas fa-database text-warning text-xl"></i>
                        </div>
                    </div>
                </div>
                <div class="bg-white p-4 rounded-lg shadow">
                    <div class="flex items-center justify-between">
                        <div>
                            <p class="text-gray-500">Tools Installed</p>
                            <h3 class="text-2xl font-bold">312</h3>
                        </div>
                        <div class="bg-green-100 p-3 rounded-full">
                            <i class="fas fa-tools text-success text-xl"></i>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Tabs Navigation -->
            <div class="bg-white rounded-lg shadow mb-6">
                <div class="border-b border-gray-200">
                    <nav class="flex flex-wrap">
                        <button class="tab-btn active px-4 py-3 font-medium text-primary border-b-2 border-primary" data-tab="dashboard">Dashboard</button>
                        <button class="tab-btn px-4 py-3 font-medium text-gray-500 hover:text-primary" data-tab="reconnaissance">1. Reconnaissance</button>
                        <button class="tab-btn px-4 py-3 font-medium text-gray-500 hover:text-primary" data-tab="scanning">2. Scanning</button>
                        <button class="tab-btn px-4 py-3 font-medium text-gray-500 hover:text-primary" data-tab="gaining-access">3. Gaining Access</button>
                        <button class="tab-btn px-4 py-3 font-medium text-gray-500 hover:text-primary" data-tab="maintaining-access">4. Maintaining Access</button>
                        <button class="tab-btn px-4 py-3 font-medium text-gray-500 hover:text-primary" data-tab="covering-tracks">5. Covering Tracks</button>
                        <button class="tab-btn px-4 py-3 font-medium text-gray-500 hover:text-primary" data-tab="reporting">6. Reporting</button>
                        <button class="tab-btn px-4 py-3 font-medium text-gray-500 hover:text-primary" data-tab="automation">7. Automation</button>
                    </nav>
                </div>
            </div>

            <!-- Tab Contents -->
            <div class="tab-content active" id="dashboard-tab">
                <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
                    <!-- Target Input Console -->
                    <div class="lg:col-span-2 bg-white p-4 rounded-lg shadow">
                        <h2 class="text-lg font-bold mb-4">Target Input Console</h2>
                        <div class="mb-4">
                            <label for="targetInput" class="block text-gray-700 mb-2">Enter Target</label>
                            <div class="flex">
                                <select class="bg-gray-100 border border-r-0 rounded-l-lg px-3 py-2 focus:outline-none">
                                    <option>http://</option>
                                    <option>https://</option>
                                    <option>tcp://</option>
                                    <option>udp://</option>
                                </select>
                                <input type="text" id="targetInput" class="flex-1 border px-3 py-2 focus:outline-none" placeholder="example.com or 192.168.1.1">
                                <button id="scanBtn" class="bg-primary text-white px-4 py-2 rounded-r-lg hover:bg-secondary">Scan</button>
                            </div>
                        </div>
                        <div class="mb-4">
                            <label class="block text-gray-700 mb-2">Scan Type</label>
                            <div class="flex flex-wrap gap-2">
                                <button class="bg-gray-100 hover:bg-gray-200 px-3 py-1 rounded-lg text-sm">Quick Scan</button>
                                <button class="bg-gray-100 hover:bg-gray-200 px-3 py-1 rounded-lg text-sm">Full Scan</button>
                                <button class="bg-gray-100 hover:bg-gray-200 px-3 py-1 rounded-lg text-sm">Vulnerability Scan</button>
                                <button class="bg-gray-100 hover:bg-gray-200 px-3 py-1 rounded-lg text-sm">Web App Scan</button>
                                <button class="bg-gray-100 hover:bg-gray-200 px-3 py-1 rounded-lg text-sm">Network Scan</button>
                                <button class="bg-gray-100 hover:bg-gray-200 px-3 py-1 rounded-lg text-sm">Custom</button>
                            </div>
                        </div>
                        <div>
                            <label class="block text-gray-700 mb-2">Console Output</label>
                            <div class="console-output" id="consoleOutput">
                                <span class="text-success">[+]</span> IPTF AbuAliAQ June 2025 WebApp initialized
                                <br><span class="text-success">[+]</span> Loading 312 pentesting tools...
                                <br><span class="text-success">[+]</span> CVE Database connected (updated: 2025-06-15)
                                <br><span class="text-success">[+]</span> Ready for target input
                                <br><span class="text-primary blink">_</span>
                            </div>
                        </div>
                    </div>

                    <!-- Recent Scans -->
                    <div class="bg-white p-4 rounded-lg shadow">
                        <h2 class="text-lg font-bold mb-4">Recent Scans</h2>
                        <div class="space-y-3">
                            <div class="p-3 border rounded-lg hover:bg-gray-50 cursor-pointer">
                                <div class="flex justify-between items-center">
                                    <div>
                                        <h3 class="font-medium">192.168.1.105</h3>
                                        <p class="text-sm text-gray-500">Full Network Scan</p>
                                    </div>
                                    <span class="bg-success text-white text-xs px-2 py-1 rounded-full">Completed</span>
                                </div>
                                <div class="mt-2 text-xs text-gray-500">15 minutes ago</div>
                            </div>
                            <div class="p-3 border rounded-lg hover:bg-gray-50 cursor-pointer">
                                <div class="flex justify-between items-center">
                                    <div>
                                        <h3 class="font-medium">example.com</h3>
                                        <p class="text-sm text-gray-500">Web App Scan</p>
                                    </div>
                                    <span class="bg-warning text-white text-xs px-2 py-1 rounded-full">In Progress</span>
                                </div>
                                <div class="mt-2 text-xs text-gray-500">1 hour ago</div>
                                <div class="w-full bg-gray-200 rounded-full h-1.5 mt-2">
                                    <div class="bg-primary h-1.5 rounded-full" style="width: 45%"></div>
                                </div>
                            </div>
                            <div class="p-3 border rounded-lg hover:bg-gray-50 cursor-pointer">
                                <div class="flex justify-between items-center">
                                    <div>
                                        <h3 class="font-medium">10.0.0.2</h3>
                                        <p class="text-sm text-gray-500">Vulnerability Scan</p>
                                    </div>
                                    <span class="bg-danger text-white text-xs px-2 py-1 rounded-full">Failed</span>
                                </div>
                                <div class="mt-2 text-xs text-gray-500">3 hours ago</div>
                            </div>
                            <div class="p-3 border rounded-lg hover:bg-gray-50 cursor-pointer">
                                <div class="flex justify-between items-center">
                                    <div>
                                        <h3 class="font-medium">api.example.org</h3>
                                        <p class="text-sm text-gray-500">API Security Scan</p>
                                    </div>
                                    <span class="bg-success text-white text-xs px-2 py-1 rounded-full">Completed</span>
                                </div>
                                <div class="mt-2 text-xs text-gray-500">Yesterday</div>
                            </div>
                        </div>
                        <button class="mt-4 w-full bg-gray-100 hover:bg-gray-200 py-2 rounded-lg text-sm">View All Scans</button>
                    </div>
                </div>

                <!-- Network Visualization -->
                <div class="mt-6 bg-white p-4 rounded-lg shadow">
                    <h2 class="text-lg font-bold mb-4">Network Visualization</h2>
                    <div class="network-visualization" id="networkVisualization">
                        <!-- Nodes will be added dynamically -->
                    </div>
                </div>

                <!-- Quick Tools -->
                <div class="mt-6">
                    <h2 class="text-lg font-bold mb-4">Quick Tools</h2>
                    <div class="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-4">
                        <div class="tool-card bg-white p-4 rounded-lg shadow cursor-pointer transition duration-300">
                            <div class="text-center">
                                <div class="bg-blue-100 p-3 rounded-full inline-block mb-2">
                                    <i class="fas fa-globe text-primary text-xl"></i>
                                </div>
                                <h3 class="font-medium">Whois Lookup</h3>
                            </div>
                        </div>
                        <div class="tool-card bg-white p-4 rounded-lg shadow cursor-pointer transition duration-300">
                            <div class="text-center">
                                <div class="bg-green-100 p-3 rounded-full inline-block mb-2">
                                    <i class="fas fa-network-wired text-success text-xl"></i>
                                </div>
                                <h3 class="font-medium">Ping</h3>
                            </div>
                        </div>
                        <div class="tool-card bg-white p-4 rounded-lg shadow cursor-pointer transition duration-300">
                            <div class="text-center">
                                <div class="bg-yellow-100 p-3 rounded-full inline-block mb-2">
                                    <i class="fas fa-route text-warning text-xl"></i>
                                </div>
                                <h3 class="font-medium">Traceroute</h3>
                            </div>
                        </div>
                        <div class="tool-card bg-white p-4 rounded-lg shadow cursor-pointer transition duration-300">
                            <div class="text-center">
                                <div class="bg-purple-100 p-3 rounded-full inline-block mb-2">
                                    <i class="fas fa-search text-purple-600 text-xl"></i>
                                </div>
                                <h3 class="font-medium">Port Scanner</h3>
                            </div>
                        </div>
                        <div class="tool-card bg-white p-4 rounded-lg shadow cursor-pointer transition duration-300">
                            <div class="text-center">
                                <div class="bg-red-100 p-3 rounded-full inline-block mb-2">
                                    <i class="fas fa-lock text-danger text-xl"></i>
                                </div>
                                <h3 class="font-medium">SSL Checker</h3>
                            </div>
                        </div>
                        <div class="tool-card bg-white p-4 rounded-lg shadow cursor-pointer transition duration-300">
                            <div class="text-center">
                                <div class="bg-indigo-100 p-3 rounded-full inline-block mb-2">
                                    <i class="fas fa-code text-indigo-600 text-xl"></i>
                                </div>
                                <h3 class="font-medium">DNS Lookup</h3>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Other Tabs (initially hidden) -->
            <div class="tab-content" id="reconnaissance-tab">
                <div class="bg-white p-4 rounded-lg shadow">
                    <h2 class="text-lg font-bold mb-4">Reconnaissance Tools</h2>
                    <p>This phase involves gathering information about the target system. Tools available:</p>
                    
                    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 mt-4">
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Maltego</h3>
                            <p class="text-sm text-gray-600 mb-3">For open-source intelligence (OSINT) and forensics</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">theHarvester</h3>
                            <p class="text-sm text-gray-600 mb-3">Gather emails, subdomains, hosts, employee names</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Recon-ng</h3>
                            <p class="text-sm text-gray-600 mb-3">Web reconnaissance framework</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">SpiderFoot</h3>
                            <p class="text-sm text-gray-600 mb-3">Automated OSINT collection</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Shodan</h3>
                            <p class="text-sm text-gray-600 mb-3">Search engine for Internet-connected devices</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">FOCA</h3>
                            <p class="text-sm text-gray-600 mb-3">Fingerprinting Organizations with Collected Archives</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                    </div>
                </div>
            </div>

            <div class="tab-content" id="scanning-tab">
                <div class="bg-white p-4 rounded-lg shadow">
                    <h2 class="text-lg font-bold mb-4">Scanning Tools</h2>
                    <p>This phase involves identifying open ports, services, and vulnerabilities.</p>
                    
                    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 mt-4">
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Nmap</h3>
                            <p class="text-sm text-gray-600 mb-3">Network discovery and security auditing</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Nessus</h3>
                            <p class="text-sm text-gray-600 mb-3">Vulnerability scanner</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">OpenVAS</h3>
                            <p class="text-sm text-gray-600 mb-3">Vulnerability assessment system</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Nikto</h3>
                            <p class="text-sm text-gray-600 mb-3">Web server scanner</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">WPScan</h3>
                            <p class="text-sm text-gray-600 mb-3">WordPress vulnerability scanner</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">ZAP</h3>
                            <p class="text-sm text-gray-600 mb-3">OWASP Zed Attack Proxy</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                    </div>
                </div>
            </div>

            <div class="tab-content" id="gaining-access-tab">
                <div class="bg-white p-4 rounded-lg shadow">
                    <h2 class="text-lg font-bold mb-4">Gaining Access Tools</h2>
                    <p>This phase involves exploiting vulnerabilities to gain access to systems.</p>
                    
                    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 mt-4">
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Metasploit</h3>
                            <p class="text-sm text-gray-600 mb-3">Penetration testing framework</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">SQLmap</h3>
                            <p class="text-sm text-gray-600 mb-3">SQL injection tool</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Burp Suite</h3>
                            <p class="text-sm text-gray-600 mb-3">Web application security testing</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Hydra</h3>
                            <p class="text-sm text-gray-600 mb-3">Password cracking tool</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">John the Ripper</h3>
                            <p class="text-sm text-gray-600 mb-3">Password cracker</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">BeEF</h3>
                            <p class="text-sm text-gray-600 mb-3">Browser Exploitation Framework</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                    </div>
                </div>
            </div>

            <div class="tab-content" id="maintaining-access-tab">
                <div class="bg-white p-4 rounded-lg shadow">
                    <h2 class="text-lg font-bold mb-4">Maintaining Access Tools</h2>
                    <p>This phase involves maintaining access to the compromised system.</p>
                    
                    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 mt-4">
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Meterpreter</h3>
                            <p class="text-sm text-gray-600 mb-3">Metasploit's advanced payload</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Cobalt Strike</h3>
                            <p class="text-sm text-gray-600 mb-3">Post-exploitation framework</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Empire</h3>
                            <p class="text-sm text-gray-600 mb-3">Post-exploitation framework</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Powersploit</h3>
                            <p class="text-sm text-gray-600 mb-3">PowerShell post-exploitation framework</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Netcat</h3>
                            <p class="text-sm text-gray-600 mb-3">Network utility for reading/writing network connections</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">SSH</h3>
                            <p class="text-sm text-gray-600 mb-3">Secure Shell for remote access</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                    </div>
                </div>
            </div>

            <div class="tab-content" id="covering-tracks-tab">
                <div class="bg-white p-4 rounded-lg shadow">
                    <h2 class="text-lg font-bold mb-4">Covering Tracks Tools</h2>
                    <p>This phase involves removing evidence of the penetration.</p>
                    
                    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 mt-4">
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Timestomp</h3>
                            <p class="text-sm text-gray-600 mb-3">Modify file timestamps</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Clearev</h3>
                            <p class="text-sm text-gray-600 mb-3">Clear event logs</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Slacker</h3>
                            <p class="text-sm text-gray-600 mb-3">Hide files in slack space</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">BleachBit</h3>
                            <p class="text-sm text-gray-600 mb-3">System cleaner</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">CCleaner</h3>
                            <p class="text-sm text-gray-600 mb-3">System optimization and cleaning</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">LogCleaner</h3>
                            <p class="text-sm text-gray-600 mb-3">Clean system logs</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                    </div>
                </div>
            </div>

            <div class="tab-content" id="reporting-tab">
                <div class="bg-white p-4 rounded-lg shadow">
                    <h2 class="text-lg font-bold mb-4">Reporting Tools</h2>
                    <p>This phase involves documenting findings and creating reports.</p>
                    
                    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 mt-4">
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Dradis</h3>
                            <p class="text-sm text-gray-600 mb-3">Collaboration and reporting framework</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Faraday</h3>
                            <p class="text-sm text-gray-600 mb-3">Collaborative pentest IDE</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Serpico</h3>
                            <p class="text-sm text-gray-600 mb-3">Pentest reporting tool</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Pandoc</h3>
                            <p class="text-sm text-gray-600 mb-3">Document converter</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">ReportGenerator</h3>
                            <p class="text-sm text-gray-600 mb-3">Automated report generation</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">MagicTree</h3>
                            <p class="text-sm text-gray-600 mb-3">Data collaboration and reporting</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                    </div>
                </div>
            </div>

            <div class="tab-content" id="automation-tab">
                <div class="bg-white p-4 rounded-lg shadow">
                    <h2 class="text-lg font-bold mb-4">Automation Tools</h2>
                    <p>This phase involves automating the penetration testing process.</p>
                    
                    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 mt-4">
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">AutoSploit</h3>
                            <p class="text-sm text-gray-600 mb-3">Automated exploitation</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">AutoRecon</h3>
                            <p class="text-sm text-gray-600 mb-3">Automated reconnaissance</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Pentest Automation</h3>
                            <p class="text-sm text-gray-600 mb-3">Custom automation scripts</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Robot Framework</h3>
                            <p class="text-sm text-gray-600 mb-3">Test automation</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Ansible</h3>
                            <p class="text-sm text-gray-600 mb-3">Configuration management</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                        <div class="border rounded-lg p-4">
                            <h3 class="font-bold mb-2">Custom Scripts</h3>
                            <p class="text-sm text-gray-600 mb-3">Python, Perl, Ruby, GoLang</p>
                            <button class="bg-primary text-white px-3 py-1 rounded text-sm">Run</button>
                        </div>
                    </div>
                </div>
            </div>
        </main>

        <!-- Footer -->
        <footer class="bg-dark text-white py-4">
            <div class="container mx-auto px-4">
                <div class="flex flex-col md:flex-row justify-between items-center">
                    <div class="mb-4 md:mb-0">
                        <p>IPTF AbuAliAQ June 2025 WebApp</p>
                        <p class="text-sm text-gray-400">Version 2.5.1 | Last updated: 2025-06-15</p>
                    </div>
                    <div class="flex space-x-4">
                        <a href="#" class="hover:text-primary"><i class="fab fa-github"></i></a>
                        <a href="#" class="hover:text-primary"><i class="fab fa-twitter"></i></a>
                        <a href="#" class="hover:text-primary"><i class="fab fa-discord"></i></a>
                        <a href="#" class="hover:text-primary"><i class="fas fa-book"></i></a>
                    </div>
                </div>
                <div class="mt-4 text-center md:text-left text-sm text-gray-400">
                    <p>For authorized penetration testing only. Use responsibly and ethically.</p>
                </div>
            </div>
        </footer>
    </div>

    <script>
        // Login functionality
        document.getElementById('loginForm').addEventListener('submit', function(e) {
            e.preventDefault();
            const username = document.getElementById('username').value;
            const password = document.getElementById('password').value;
            
            if (username === 'admin' && password === 'admin@123') {
                document.getElementById('loginModal').classList.add('hidden');
                document.getElementById('mainApp').classList.remove('hidden');
                initializeNetworkVisualization();
                simulateConsoleOutput();
            } else {
                alert('Invalid credentials. Try admin / admin@123');
            }
        });

        // Logout functionality
        document.getElementById('logoutBtn').addEventListener('click', function() {
            document.getElementById('loginModal').classList.remove('hidden');
            document.getElementById('mainApp').classList.add('hidden');
            document.getElementById('username').value = '';
            document.getElementById('password').value = '';
        });

        // Notifications dropdown
        document.getElementById('notificationsBtn').addEventListener('click', function() {
            document.getElementById('notificationsDropdown').classList.toggle('hidden');
        });

        // User menu dropdown
        document.getElementById('userMenuBtn').addEventListener('click', function() {
            document.getElementById('userMenuDropdown').classList.toggle('hidden');
        });

        // Tab switching
        const tabButtons = document.querySelectorAll('.tab-btn');
        tabButtons.forEach(button => {
            button.addEventListener('click', function() {
                // Remove active class from all buttons and contents
                tabButtons.forEach(btn => btn.classList.remove('active', 'text-primary', 'border-primary'));
                tabButtons.forEach(btn => btn.classList.add('text-gray-500'));
                
                // Add active class to clicked button
                this.classList.add('active', 'text-primary', 'border-primary');
                this.classList.remove('text-gray-500');
                
                // Hide all tab contents
                document.querySelectorAll('.tab-content').forEach(content => {
                    content.classList.remove('active');
                });
                
                // Show the selected tab content
                const tabId = this.getAttribute('data-tab');
                document.getElementById(`${tabId}-tab`).classList.add('active');
            });
        });

        // Scan button functionality
        document.getElementById('scanBtn').addEventListener('click', function() {
            const target = document.getElementById('targetInput').value;
            if (target) {
                const consoleOutput = document.getElementById('consoleOutput');
                consoleOutput.innerHTML += `<br><span class="text-primary">[+]</span> Starting scan on ${target}...`;
                consoleOutput.scrollTop = consoleOutput.scrollHeight;
                
                // Simulate scan progress
                setTimeout(() => {
                    consoleOutput.innerHTML += `<br><span class="text-primary">[+]</span> Running reconnaissance...`;
                    consoleOutput.scrollTop = consoleOutput.scrollHeight;
                }, 1000);
                
                setTimeout(() => {
                    consoleOutput.innerHTML += `<br><span class="text-primary">[+]</span> Scanning ports...`;
                    consoleOutput.scrollTop = consoleOutput.scrollHeight;
                }, 3000);
                
                setTimeout(() => {
                    consoleOutput.innerHTML += `<br><span class="text-success">[+]</span> Scan completed. Found 5 open ports and 3 vulnerabilities.`;
                    consoleOutput.scrollTop = consoleOutput.scrollHeight;
                    
                    // Update network visualization with new nodes
                    addNodeToVisualization(target);
                }, 6000);
            }
        });

        // Initialize network visualization
        function initializeNetworkVisualization() {
            const networkVis = document.getElementById('networkVisualization');
            
            // Clear any existing nodes
            networkVis.innerHTML = '';
            
            // Add central node (the pentester)
            addNode(networkVis, 'Pentester', 50, 50, 'bg-primary');
            
            // Add some sample nodes
            addNode(networkVis, 'Gateway', 200, 50, 'bg-secondary');
            addNode(networkVis, 'Web Server', 350, 150, 'bg-warning');
            addNode(networkVis, 'Database', 350, 250, 'bg-danger');
            addNode(networkVis, 'Firewall', 200, 350, 'bg-success');
            
            // Draw connections
            drawConnection(networkVis, 75, 75, 200, 75);
            drawConnection(networkVis, 225, 75, 350, 175);
            drawConnection(networkVis, 225, 75, 350, 275);
            drawConnection(networkVis, 225, 75, 225, 375);
        }
        
        function addNode(container, label, x, y, bgColor) {
            const node = document.createElement('div');
            node.className = `node ${bgColor}`;
            node.style.left = `${x}px`;
            node.style.top = `${y}px`;
            node.textContent = label;
            container.appendChild(node);
            
            // Add click event to show node details
            node.addEventListener('click', function() {
                alert(`Node details: ${label}\nIP: 192.168.1.${Math.floor(Math.random() * 255)}\nOS: Linux/Windows`);
            });
        }
        
        function drawConnection(container, x1, y1, x2, y2) {
            const connection = document.createElement('div');
            connection.className = 'connection';
            
            // Calculate length and angle
            const length = Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));
            const angle = Math.atan2(y2 - y1, x2 - x1) * 180 / Math.PI;
            
            connection.style.width = `${length}px`;
            connection.style.left = `${x1}px`;
            connection.style.top = `${y1}px`;
            connection.style.transform = `rotate(${angle}deg)`;
            
            container.appendChild(connection);
        }
        
        function addNodeToVisualization(target) {
            const networkVis = document.getElementById('networkVisualization');
            const width = networkVis.clientWidth;
            const height = networkVis.clientHeight;
            
            // Generate random position (not too close to edges)
            const x = 100 + Math.random() * (width - 200);
            const y = 100 + Math.random() * (height - 200);
            
            // Add the new node
            addNode(networkVis, target, x, y, 'bg-purple-600');
            
            // Connect to a random existing node
            const nodes = document.querySelectorAll('.node');
            if (nodes.length > 1) {
                const randomNode = nodes[Math.floor(Math.random() * (nodes.length - 1)) + 1];
                const rect = randomNode.getBoundingClientRect();
                const parentRect = networkVis.getBoundingClientRect();
                
                const nodeX = rect.left - parentRect.left + rect.width / 2;
                const nodeY = rect.top - parentRect.top + rect.height / 2;
                
                drawConnection(networkVis, x + 25, y + 25, nodeX, nodeY);
            }
        }
        
        // Simulate console output
        function simulateConsoleOutput() {
            const consoleOutput = document.getElementById('consoleOutput');
            const messages = [
                "[+] Loading Python tools: sqlmap, Scapy, Impacket...",
                "[+] Loading Perl tools: Nikto, W3af...",
                "[+] Loading Ruby tools: Metasploit Framework, Arachni...",
                "[+] Loading GoLang tools: Gobuster, Amass, Subfinder...",
                "[+] Initializing CVE Database connection...",
                "[+] CVE Database synchronized (2025-06-15)",
                "[+] Automated update check complete - all tools up to date",
                "[+] Modular tool integration system ready",
                "[+] Ethical hacking disclaimer loaded",
                "[+] Ready for target input"
            ];
            
            let i = 0;
            const interval = setInterval(() => {
                if (i < messages.length) {
                    consoleOutput.innerHTML += `<br><span class="text-primary">${messages[i]}</span>`;
                    consoleOutput.scrollTop = consoleOutput.scrollHeight;
                    i++;
                } else {
                    clearInterval(interval);
                    consoleOutput.innerHTML += `<br><span class="text-primary blink">_</span>`;
                }
            }, 500);
        }
        
        // Tool card hover effects
        document.querySelectorAll('.tool-card').forEach(card => {
            card.addEventListener('mouseenter', function() {
                this.style.transform = 'translateY(-5px)';
                this.style.boxShadow = '0 10px 25px rgba(0, 0, 0, 0.2)';
            });
            
            card.addEventListener('mouseleave', function() {
                this.style.transform = '';
                this.style.boxShadow = '';
            });
            
            // Add click event to show tool details
            card.addEventListener('click', function() {
                const toolName = this.querySelector('h3').textContent;
                alert(`Launching ${toolName}...\nThis would execute the actual tool in a real implementation.`);
            });
        });
        
        // Close dropdowns when clicking outside
        document.addEventListener('click', function(e) {
            if (!e.target.closest('#notificationsBtn') && !e.target.closest('#notificationsDropdown')) {
                document.getElementById('notificationsDropdown').classList.add('hidden');
            }
            
            if (!e.target.closest('#userMenuBtn') && !e.target.closest('#userMenuDropdown')) {
                document.getElementById('userMenuDropdown').classList.add('hidden');
            }
        });
    </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=abuali1973/iptf" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>