File size: 10,819 Bytes
bf00bbe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Kali Linux + C2 Framework Development Guide</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>
        /* Custom scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: #1a202c;
        }
        ::-webkit-scrollbar-thumb {
            background: #4a5568;
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #718096;
        }
        
        /* Code block styling */
        pre {
            background-color: #2d3748;
            border-radius: 0.5rem;
            padding: 1rem;
            overflow-x: auto;
            margin: 1rem 0;
            position: relative;
        }
        
        pre code {
            color: #e2e8f0;
            font-family: 'Courier New', monospace;
            line-height: 1.5;
        }
        
        .copy-btn {
            position: absolute;
            right: 0.5rem;
            top: 0.5rem;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: white;
            padding: 0.25rem 0.5rem;
            border-radius: 0.25rem;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.2s;
        }
        
        pre:hover .copy-btn {
            opacity: 1;
        }
        
        /* Tab styling */
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
            animation: fadeIn 0.3s ease-in-out;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .tab-btn.active {
            border-bottom: 2px solid #4299e1;
            color: #4299e1;
        }
        
        /* Tooltip */
        .tooltip {
            position: relative;
            display: inline-block;
        }
        
        .tooltip .tooltip-text {
            visibility: hidden;
            width: 200px;
            background-color: #2d3748;
            color: #fff;
            text-align: center;
            border-radius: 6px;
            padding: 5px;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            margin-left: -100px;
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .tooltip:hover .tooltip-text {
            visibility: visible;
            opacity: 1;
        }
    </style>
</head>
<body class="bg-gray-900 text-gray-200 min-h-screen">
    <!-- Header -->
    <header class="bg-gray-800 py-6 shadow-lg">
        <div class="container mx-auto px-4">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="flex items-center mb-4 md:mb-0">
                    <i class="fas fa-shield-alt text-blue-400 text-3xl mr-3"></i>
                    <h1 class="text-2xl md:text-3xl font-bold bg-gradient-to-r from-blue-400 to-purple-500 bg-clip-text text-transparent">
                        Kali Linux + C2 Framework Development Guide
                    </h1>
                </div>
                <div class="flex space-x-2">
                    <a href="#kali" class="px-4 py-2 bg-blue-600 hover:bg-blue-700 rounded-md transition">Kali Setup</a>
                    <a href="#c2" class="px-4 py-2 bg-purple-600 hover:bg-purple-700 rounded-md transition">C2 Development</a>
                </div>
            </div>
        </div>
    </header>

    <!-- Main Content -->
    <main class="container mx-auto px-4 py-8">
        <!-- Introduction -->
        <section class="mb-12 bg-gray-800 rounded-xl p-6 shadow-lg">
            <h2 class="text-2xl font-bold mb-4 text-blue-400">Integrated Security Toolkit</h2>
            <p class="mb-4">
                This guide combines custom Kali Linux installation with C2 framework agent/plugin development to create a comprehensive offensive security toolkit.
            </p>
            <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                <div class="bg-gray-700 p-4 rounded-lg border-l-4 border-blue-500">
                    <h3 class="font-semibold text-lg mb-2"><i class="fas fa-linux mr-2 text-blue-400"></i> Kali Linux Customization</h3>
                    <p>Build a tailored Kali ISO with pre-installed tools, custom user setup, and optimized desktop environment for penetration testing.</p>
                </div>
                <div class="bg-gray-700 p-4 rounded-lg border-l-4 border-purple-500">
                    <h3 class="font-semibold text-lg mb-2"><i class="fas fa-code mr-2 text-purple-400"></i> C2 Framework Development</h3>
                    <p>Extend your capabilities by developing custom agents and plugins for popular C2 frameworks like Sliver, Havoc, Mythic, and Nimplant.</p>
                </div>
            </div>
        </section>

        <!-- Kali Linux Section -->
        <section id="kali" class="mb-12">
            <div class="flex items-center mb-6">
                <i class="fas fa-linux text-3xl mr-3 text-blue-400"></i>
                <h2 class="text-2xl font-bold">Part 1: Custom Kali Linux Installation</h2>
            </div>
            
            <div class="bg-gray-800 rounded-xl p-6 shadow-lg mb-6">
                <h3 class="text-xl font-semibold mb-4 text-blue-300">Goal</h3>
                <p class="mb-4">
                    Create a Kali Linux ISO with Burp Suite, OWASP ZAP, Nikto pre-installed, non-root sudo user, and XFCE desktop environment.
                </p>
                
                <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
                    <div class="bg-gray-700 p-3 rounded-lg">
                        <h4 class="font-medium mb-2"><i class="fas fa-check-circle mr-2 text-green-400"></i>Pre-installed Tools</h4>
                        <ul class="list-disc pl-5 text-sm">
                            <li>Burp Suite</li>
                            <li>OWASP ZAP</li>
                            <li>Nikto</li>
                        </ul>
                    </div>
                    <div class="bg-gray-700 p-3 rounded-lg">
                        <h4 class="font-medium mb-2"><i class="fas fa-user-shield mr-2 text-yellow-400"></i>Security</h4>
                        <ul class="list-disc pl-5 text-sm">
                            <li>Non-root user</li>
                            <li>Sudo privileges</li>
                            <li>Hardened config</li>
                        </ul>
                    </div>
                    <div class="bg-gray-700 p-3 rounded-lg">
                        <h4 class="font-medium mb-2"><i class="fas fa-desktop mr-2 text-blue-400"></i>Desktop</h4>
                        <ul class="list-disc pl-5 text-sm">
                            <li>XFCE environment</li>
                            <li>Custom themes</li>
                            <li>Optimized UI</li>
                        </ul>
                    </div>
                </div>
                
                <!-- Steps with Tabs -->
                <div class="mt-6">
                    <div class="flex overflow-x-auto mb-4">
                        <button class="tab-btn active px-4 py-2 mr-2 bg-gray-700 rounded-t-lg" onclick="openTab(event, 'step1')">Step 1</button>
                        <button class="tab-btn px-4 py-2 mr-2 bg-gray-700 rounded-t-lg" onclick="openTab(event, 'step2')">Step 2</button>
                        <button class="tab-btn px-4 py-2 mr-2 bg-gray-700 rounded-t-lg" onclick="openTab(event, 'step3')">Step 3</button>
                        <button class="tab-btn px-4 py-2 mr-2 bg-gray-700 rounded-t-lg" onclick="openTab(event, 'step4')">Step 4</button>
                        <button class="tab-btn px-4 py-2 mr-2 bg-gray-700 rounded-t-lg" onclick="openTab(event, 'step5')">Step 5</button>
                        <button class="tab-btn px-4 py-2 mr-2 bg-gray-700 rounded-t-lg" onclick="openTab(event, 'step6')">Step 6</button>
                    </div>
                    
                    <div id="step1" class="tab-content active bg-gray-700 p-4 rounded-b-lg rounded-tr-lg">
                        <h4 class="font-semibold mb-3">Preparing the Environment</h4>
                        <p class="mb-3">Download the Kali Linux ISO and verify its integrity:</p>
                        <pre class="relative">
                            <code>wget https://cdimage.kali.org/kali-rolling/amd64/iso/kali-linux-rolling-amd64.iso
sha256sum kali-linux-rolling-amd64.iso</code>
                            <button class="copy-btn" onclick="copyCode(this)"><i class="fas fa-copy"></i></button>
                        </pre>
                        <div class="bg-gray-600 p-3 rounded-lg mt-3">
                            <h5 class="font-medium text-yellow-300 mb-1"><i class="fas fa-lightbulb mr-2"></i>Best Practices</h5>
                            <ul class="list-disc pl-5 text-sm">
                                <li>Always verify ISO checksum</li>
                                <li>Use VM for initial tests before bare metal</li>
                                <li>Consider using Ventoy for multi-ISO USB</li>
                            </ul>
                        </div>
                    </div>
                    
                    <div id="step2" class="tab-content bg-gray-700 p-4 rounded-b-lg rounded-tr-lg">
                        <h4 class="font-semibold mb-3">Customizing Kali ISO with live-build</h4>
                        <p class="mb-3">Install live-build and set up the configuration:</p>
                        <pre class="relative">
                            <code>sudo apt install live-build
git clone https://gitlab.com/kalilinux/packages/live-build-config.git
cd live-build-config
cp -r config config-custom</code>
                            <button class="copy-btn" onclick="copyCode(this)"><i class="fas fa-copy"></i></button>
                        </pre>
                        <div class="bg-gray-600 p-3 rounded-lg mt-3">
                            <h5 class="font-medium text-yellow-300 mb-1"><i class="fas fa-lightbulb mr-2"></i>Best Practices</h5>
                            <ul class="list-disc pl-5 text-sm">
                                <li>Create a custom config directory</li>
                                <li>Edit <code>config/package-lists/kali.list.chroot</code> to add tools</li>
                                <li>Keep original config as backup</li>

</html>