-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
270 lines (252 loc) · 15.1 KB
/
index.html
File metadata and controls
270 lines (252 loc) · 15.1 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Generate command line commands for any OS without any knowledge of the tool or framework. Supports Windows, macOS, and Linux.">
<title>CMDLine Command Generator</title>
<link rel="stylesheet" href="styles/style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
</head>
<body>
<div class="background-gradient"></div>
<!-- Header -->
<header class="header">
<div class="header-content">
<div class="logo">
<svg class="logo-icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="2" y="3" width="20" height="18" rx="2" stroke="currentColor" stroke-width="2"/>
<path d="M6 9L10 12L6 15" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M12 15H18" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
</svg>
<span class="logo-text">CMDLine</span>
</div>
<nav class="nav-links">
<a href="#generator" class="nav-link">Generator</a>
<a href="#examples" class="nav-link">Examples</a>
<a href="https://github.com/mantreshkhurana/cmdline-command-generator" class="nav-link github-link" target="_blank">
<svg viewBox="0 0 24 24" fill="currentColor" width="20" height="20">
<path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/>
</svg>
</a>
</nav>
</div>
</header>
<!-- Hero Section -->
<section class="hero">
<div class="hero-content">
<h1 class="hero-title">
Generate Commands
<span class="gradient-text">Without the Learning Curve</span>
</h1>
<p class="hero-subtitle">
Create command line commands for any operating system without any knowledge of the tool or framework.
Just describe what you want to do.
</p>
<div class="hero-badges">
<span class="badge">
<img src="assets/windows.png" alt="Windows" class="badge-icon">
Windows
</span>
<span class="badge">
<img src="assets/macos.png" alt="macOS" class="badge-icon">
macOS
</span>
<span class="badge">
<img src="assets/linux.png" alt="Linux" class="badge-icon">
Linux
</span>
</div>
</div>
</section>
<!-- Generator Section -->
<section id="generator" class="generator-section">
<div class="generator-container">
<div class="generator-card">
<div class="card-header">
<h2 class="card-title">Command Generator</h2>
<p class="card-description">Describe what you want to accomplish, select your OS, and get the command instantly.</p>
</div>
<div class="generator-form">
<!-- OS Selection -->
<div class="form-group">
<label class="form-label">Select Operating System</label>
<div class="os-selector">
<button class="os-btn active" data-os="macos">
<img src="assets/macos.png" alt="macOS" class="os-icon">
<span>macOS</span>
</button>
<button class="os-btn" data-os="linux">
<img src="assets/linux.png" alt="Linux" class="os-icon">
<span>Linux</span>
</button>
<button class="os-btn" data-os="windows">
<img src="assets/windows.png" alt="Windows" class="os-icon">
<span>Windows</span>
</button>
</div>
</div>
<!-- Category Selection -->
<div class="form-group">
<label class="form-label">Category</label>
<div class="category-selector">
<select id="category-select" class="select-input">
<option value="">Choose a category...</option>
<optgroup label="General">
<option value="file">File Operations</option>
<option value="directory">Directory Operations</option>
<option value="system">System Information</option>
<option value="network">Networking</option>
<option value="process">Process Management</option>
<option value="package">Package Management</option>
<option value="permissions">Permissions & Ownership</option>
<option value="search">Search & Find</option>
<option value="compression">Compression & Archives</option>
<option value="text">Text Processing</option>
</optgroup>
<optgroup label="Development">
<option value="git">Git Commands</option>
<option value="docker">Docker Commands</option>
</optgroup>
<optgroup label="Security & Pentesting">
<option value="security">Security & Penetration Testing</option>
<option value="netsecurity">Network Security & Analysis</option>
<option value="websecurity">Web Security Testing</option>
<option value="wireless">Wireless Security</option>
<option value="crypto">Cryptography & Hashing</option>
<option value="passwordtest">Password & Authentication Testing</option>
<option value="exploitation">Exploitation Tools</option>
<option value="forensics">Forensics & Recovery</option>
</optgroup>
</select>
</div>
</div>
<!-- Action Selection -->
<div class="form-group">
<label class="form-label">What do you want to do?</label>
<div class="action-selector">
<select id="action-select" class="select-input" disabled>
<option value="">First select a category...</option>
</select>
</div>
</div>
<!-- Parameters -->
<div class="form-group parameters-group" id="parameters-group" style="display: none;">
<label class="form-label">Parameters</label>
<div id="parameters-container" class="parameters-container">
<!-- Dynamic parameters will be inserted here -->
</div>
</div>
<!-- Generate Button -->
<button id="generate-btn" class="generate-btn" disabled>
<svg class="btn-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M13 10V3L4 14h7v7l9-11h-7z"/>
</svg>
Generate Command
</button>
</div>
<!-- Output Section -->
<div class="output-section" id="output-section" style="display: none;">
<div class="output-header">
<span class="output-label">Generated Command</span>
<button class="copy-btn" id="copy-btn">
<svg class="copy-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="9" y="9" width="13" height="13" rx="2" ry="2"/>
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/>
</svg>
Copy
</button>
</div>
<div class="output-command" id="output-command">
<code id="command-text"></code>
</div>
<div class="output-explanation" id="output-explanation">
<h4>Explanation</h4>
<p id="explanation-text"></p>
</div>
</div>
</div>
</div>
</section>
<!-- Examples Section -->
<section id="examples" class="examples-section">
<div class="examples-container">
<h2 class="section-title">Common Examples</h2>
<p class="section-subtitle">Quick reference for frequently used commands</p>
<div class="examples-grid">
<div class="example-card" data-category="file" data-action="create">
<div class="example-icon">📄</div>
<h3>Create a File</h3>
<p>Create a new empty file</p>
<div class="example-commands">
<div class="example-cmd"><span class="os-tag macos">macOS</span><code>touch filename.txt</code></div>
<div class="example-cmd"><span class="os-tag linux">Linux</span><code>touch filename.txt</code></div>
<div class="example-cmd"><span class="os-tag windows">Windows</span><code>type nul > filename.txt</code></div>
</div>
</div>
<div class="example-card" data-category="directory" data-action="list">
<div class="example-icon">📁</div>
<h3>List Files</h3>
<p>Show directory contents</p>
<div class="example-commands">
<div class="example-cmd"><span class="os-tag macos">macOS</span><code>ls -la</code></div>
<div class="example-cmd"><span class="os-tag linux">Linux</span><code>ls -la</code></div>
<div class="example-cmd"><span class="os-tag windows">Windows</span><code>dir /a</code></div>
</div>
</div>
<div class="example-card" data-category="search" data-action="find-file">
<div class="example-icon">🔍</div>
<h3>Find Files</h3>
<p>Search for files by name</p>
<div class="example-commands">
<div class="example-cmd"><span class="os-tag macos">macOS</span><code>find . -name "*.txt"</code></div>
<div class="example-cmd"><span class="os-tag linux">Linux</span><code>find . -name "*.txt"</code></div>
<div class="example-cmd"><span class="os-tag windows">Windows</span><code>dir /s /b *.txt</code></div>
</div>
</div>
<div class="example-card" data-category="system" data-action="disk-usage">
<div class="example-icon">💾</div>
<h3>Disk Usage</h3>
<p>Check disk space usage</p>
<div class="example-commands">
<div class="example-cmd"><span class="os-tag macos">macOS</span><code>df -h</code></div>
<div class="example-cmd"><span class="os-tag linux">Linux</span><code>df -h</code></div>
<div class="example-cmd"><span class="os-tag windows">Windows</span><code>wmic logicaldisk get size,freespace,caption</code></div>
</div>
</div>
<div class="example-card" data-category="network" data-action="ip-address">
<div class="example-icon">🌐</div>
<h3>IP Address</h3>
<p>Show network IP address</p>
<div class="example-commands">
<div class="example-cmd"><span class="os-tag macos">macOS</span><code>ifconfig | grep inet</code></div>
<div class="example-cmd"><span class="os-tag linux">Linux</span><code>ip addr show</code></div>
<div class="example-cmd"><span class="os-tag windows">Windows</span><code>ipconfig</code></div>
</div>
</div>
<div class="example-card" data-category="process" data-action="list-processes">
<div class="example-icon">⚙️</div>
<h3>List Processes</h3>
<p>Show running processes</p>
<div class="example-commands">
<div class="example-cmd"><span class="os-tag macos">macOS</span><code>ps aux</code></div>
<div class="example-cmd"><span class="os-tag linux">Linux</span><code>ps aux</code></div>
<div class="example-cmd"><span class="os-tag windows">Windows</span><code>tasklist</code></div>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="footer">
<div class="footer-content">
<p>Built with ❤️ by <a href="https://github.com/mantreshkhurana" target="_blank">Mantresh Khurana</a></p>
<p class="footer-note">Generate commands for any OS command line without any prior knowledge</p>
</div>
</footer>
<script src="scripts/commands.js"></script>
<script src="scripts/app.js"></script>
</body>
</html>