can you make this a dedicated nmap cheat sheet
Browse files- index.html +16 -20
- nmap.html +205 -0
index.html
CHANGED
|
@@ -47,10 +47,15 @@
|
|
| 47 |
<header class="mb-8 text-center no-print">
|
| 48 |
<h1 class="text-4xl font-bold text-primary mb-2">Security+ QuickCheat Pro</h1>
|
| 49 |
<p class="text-lg text-secondary">Your printable CompTIA Security+ knowledge checklist</p>
|
| 50 |
-
<
|
| 51 |
-
<
|
| 52 |
-
|
| 53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
<!-- Main Content -->
|
| 56 |
<main class="bg-white shadow-lg rounded-lg p-6 print:p-0">
|
|
@@ -187,23 +192,14 @@
|
|
| 187 |
<div>
|
| 188 |
<h3 class="font-semibold text-secondary mb-2">Basic Nmap Examples</h3>
|
| 189 |
<div class="font-mono bg-gray-800 text-gray-100 p-4 rounded-lg text-sm">
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
</
|
| 194 |
-
<
|
| 195 |
-
|
| 196 |
-
<span class="text-blue-400">nmap</span> -F 192.168.1.1
|
| 197 |
-
</div>
|
| 198 |
-
<div class="mb-2">
|
| 199 |
-
<span class="text-green-400"># Service version detection</span><br>
|
| 200 |
-
<span class="text-blue-400">nmap</span> -sV 192.168.1.1
|
| 201 |
-
</div>
|
| 202 |
-
<div>
|
| 203 |
-
<span class="text-green-400"># Scan specific port range</span><br>
|
| 204 |
-
<span class="text-blue-400">nmap</span> -p 80-443 192.168.1.1
|
| 205 |
-
</div>
|
| 206 |
</div>
|
|
|
|
| 207 |
</div>
|
| 208 |
</div>
|
| 209 |
</section>
|
|
|
|
| 47 |
<header class="mb-8 text-center no-print">
|
| 48 |
<h1 class="text-4xl font-bold text-primary mb-2">Security+ QuickCheat Pro</h1>
|
| 49 |
<p class="text-lg text-secondary">Your printable CompTIA Security+ knowledge checklist</p>
|
| 50 |
+
<div class="flex justify-center gap-4 mt-4">
|
| 51 |
+
<button onclick="window.print()" class="px-6 py-2 bg-primary text-white rounded-lg hover:bg-blue-700 transition flex items-center">
|
| 52 |
+
<i data-feather="printer" class="mr-2"></i> Print Checklist
|
| 53 |
+
</button>
|
| 54 |
+
<a href="nmap.html" class="px-6 py-2 bg-secondary text-white rounded-lg hover:bg-green-700 transition flex items-center">
|
| 55 |
+
<i data-feather="code" class="mr-2"></i> Nmap Cheat Sheet
|
| 56 |
+
</a>
|
| 57 |
+
</div>
|
| 58 |
+
</header>
|
| 59 |
|
| 60 |
<!-- Main Content -->
|
| 61 |
<main class="bg-white shadow-lg rounded-lg p-6 print:p-0">
|
|
|
|
| 192 |
<div>
|
| 193 |
<h3 class="font-semibold text-secondary mb-2">Basic Nmap Examples</h3>
|
| 194 |
<div class="font-mono bg-gray-800 text-gray-100 p-4 rounded-lg text-sm">
|
| 195 |
+
<div class="mb-2">
|
| 196 |
+
<span class="text-green-400"># Basic Nmap examples (see full </span>
|
| 197 |
+
<a href="nmap.html" class="text-blue-400 underline">Nmap Cheat Sheet</a><span class="text-green-400">)</span><br>
|
| 198 |
+
<span class="text-blue-400">nmap</span> -sT 192.168.1.1 <span class="text-gray-400"># TCP connect scan</span><br>
|
| 199 |
+
<span class="text-blue-400">nmap</span> -sS 192.168.1.1 <span class="text-gray-400"># SYN stealth scan (root)</span><br>
|
| 200 |
+
<span class="text-blue-400">nmap</span> -A 192.168.1.1 <span class="text-gray-400"># Aggressive scan</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 201 |
</div>
|
| 202 |
+
</div>
|
| 203 |
</div>
|
| 204 |
</div>
|
| 205 |
</section>
|
nmap.html
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Nmap Cheat Sheet | Security+ QuickCheat Pro</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 9 |
+
<style>
|
| 10 |
+
@media print {
|
| 11 |
+
.no-print {
|
| 12 |
+
display: none !important;
|
| 13 |
+
}
|
| 14 |
+
body {
|
| 15 |
+
padding: 0;
|
| 16 |
+
margin: 0;
|
| 17 |
+
background: white;
|
| 18 |
+
color: black;
|
| 19 |
+
}
|
| 20 |
+
.print-section {
|
| 21 |
+
page-break-inside: avoid;
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
.code-block {
|
| 25 |
+
background-color: #1e293b;
|
| 26 |
+
color: #f8fafc;
|
| 27 |
+
border-radius: 0.5rem;
|
| 28 |
+
font-family: monospace;
|
| 29 |
+
}
|
| 30 |
+
</style>
|
| 31 |
+
</head>
|
| 32 |
+
<body class="bg-gray-50 text-gray-800 font-sans">
|
| 33 |
+
<div class="container mx-auto px-4 py-8 max-w-4xl">
|
| 34 |
+
<!-- Header -->
|
| 35 |
+
<header class="mb-8 text-center no-print">
|
| 36 |
+
<h1 class="text-4xl font-bold text-blue-600 mb-2">Nmap Cheat Sheet</h1>
|
| 37 |
+
<p class="text-lg text-green-600">Comprehensive Nmap scanning reference</p>
|
| 38 |
+
<div class="flex justify-center gap-4 mt-4">
|
| 39 |
+
<button onclick="window.print()" class="px-6 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition flex items-center">
|
| 40 |
+
<i data-feather="printer" class="mr-2"></i> Print Cheat Sheet
|
| 41 |
+
</button>
|
| 42 |
+
<a href="index.html" class="px-6 py-2 bg-gray-600 text-white rounded-lg hover:bg-gray-700 transition flex items-center">
|
| 43 |
+
<i data-feather="arrow-left" class="mr-2"></i> Back to Main
|
| 44 |
+
</a>
|
| 45 |
+
</div>
|
| 46 |
+
</header>
|
| 47 |
+
|
| 48 |
+
<!-- Main Content -->
|
| 49 |
+
<main class="bg-white shadow-lg rounded-lg p-6 print:p-0">
|
| 50 |
+
<!-- Basic Scans Section -->
|
| 51 |
+
<section class="mb-10 print-section">
|
| 52 |
+
<h2 class="text-2xl font-bold text-blue-600 border-b-2 border-blue-600 pb-2 mb-4 flex items-center">
|
| 53 |
+
<i data-feather="search" class="mr-2"></i> Basic Scans
|
| 54 |
+
</h2>
|
| 55 |
+
<div class="grid grid-cols-1 gap-4">
|
| 56 |
+
<div class="code-block p-4">
|
| 57 |
+
<span class="text-green-300"># Basic TCP connect scan (no root required)</span><br>
|
| 58 |
+
<span class="text-blue-300">nmap</span> -sT <target>
|
| 59 |
+
</div>
|
| 60 |
+
<div class="code-block p-4">
|
| 61 |
+
<span class="text-green-300"># Quick scan (top 100 ports)</span><br>
|
| 62 |
+
<span class="text-blue-300">nmap</span> -F <target>
|
| 63 |
+
</div>
|
| 64 |
+
<div class="code-block p-4">
|
| 65 |
+
<span class="text-green-300"># Standard scan (top 1000 ports)</span><br>
|
| 66 |
+
<span class="text-blue-300">nmap</span> <target>
|
| 67 |
+
</div>
|
| 68 |
+
<div class="code-block p-4">
|
| 69 |
+
<span class="text-green-300"># Ping scan (host discovery only)</span><br>
|
| 70 |
+
<span class="text-blue-300">nmap</span> -sn <target>
|
| 71 |
+
</div>
|
| 72 |
+
</div>
|
| 73 |
+
</section>
|
| 74 |
+
|
| 75 |
+
<!-- Advanced Scans Section -->
|
| 76 |
+
<section class="mb-10 print-section">
|
| 77 |
+
<h2 class="text-2xl font-bold text-blue-600 border-b-2 border-blue-600 pb-2 mb-4 flex items-center">
|
| 78 |
+
<i data-feather="zap" class="mr-2"></i> Advanced Scans (Root Required)
|
| 79 |
+
</h2>
|
| 80 |
+
<div class="grid grid-cols-1 gap-4">
|
| 81 |
+
<div class="code-block p-4">
|
| 82 |
+
<span class="text-green-300"># SYN scan (stealth scan, default for root)</span><br>
|
| 83 |
+
<span class="text-blue-300">nmap</span> -sS <target>
|
| 84 |
+
</div>
|
| 85 |
+
<div class="code-block p-4">
|
| 86 |
+
<span class="text-green-300"># UDP scan (often missed in assessments)</span><br>
|
| 87 |
+
<span class="text-blue-300">nmap</span> -sU <target>
|
| 88 |
+
</div>
|
| 89 |
+
<div class="code-block p-4">
|
| 90 |
+
<span class="text-green-300"># Comprehensive scan (all ports, OS/service detection)</span><br>
|
| 91 |
+
<span class="text-blue-300">nmap</span> -p- -A <target>
|
| 92 |
+
</div>
|
| 93 |
+
<div class="code-block p-4">
|
| 94 |
+
<span class="text-green-300"># Aggressive scan (OS/service detection, scripts, traceroute)</span><br>
|
| 95 |
+
<span class="text-blue-300">nmap</span> -A <target>
|
| 96 |
+
</div>
|
| 97 |
+
</div>
|
| 98 |
+
</section>
|
| 99 |
+
|
| 100 |
+
<!-- Port Specification Section -->
|
| 101 |
+
<section class="mb-10 print-section">
|
| 102 |
+
<h2 class="text-2xl font-bold text-blue-600 border-b-2 border-blue-600 pb-2 mb-4 flex items-center">
|
| 103 |
+
<i data-feather="hash" class="mr-2"></i> Port Specification
|
| 104 |
+
</h2>
|
| 105 |
+
<div class="grid grid-cols-1 gap-4">
|
| 106 |
+
<div class="code-block p-4">
|
| 107 |
+
<span class="text-green-300"># Scan specific ports</span><br>
|
| 108 |
+
<span class="text-blue-300">nmap</span> -p 22,80,443 <target>
|
| 109 |
+
</div>
|
| 110 |
+
<div class="code-block p-4">
|
| 111 |
+
<span class="text-green-300"># Scan port range</span><br>
|
| 112 |
+
<span class="text-blue-300">nmap</span> -p 1-1024 <target>
|
| 113 |
+
</div>
|
| 114 |
+
<div class="code-block p-4">
|
| 115 |
+
<span class="text-green-300"># Scan top ports</span><br>
|
| 116 |
+
<span class="text-blue-300">nmap</span> --top-ports 50 <target>
|
| 117 |
+
</div>
|
| 118 |
+
<div class="code-block p-4">
|
| 119 |
+
<span class="text-green-300"># Scan all ports (slow)</span><br>
|
| 120 |
+
<span class="text-blue-300">nmap</span> -p- <target>
|
| 121 |
+
</div>
|
| 122 |
+
</div>
|
| 123 |
+
</section>
|
| 124 |
+
|
| 125 |
+
<!-- Output Options Section -->
|
| 126 |
+
<section class="mb-10 print-section">
|
| 127 |
+
<h2 class="text-2xl font-bold text-blue-600 border-b-2 border-blue-600 pb-2 mb-4 flex items-center">
|
| 128 |
+
<i data-feather="file-text" class="mr-2"></i> Output Options
|
| 129 |
+
</h2>
|
| 130 |
+
<div class="grid grid-cols-1 gap-4">
|
| 131 |
+
<div class="code-block p-4">
|
| 132 |
+
<span class="text-green-300"># Save to normal format</span><br>
|
| 133 |
+
<span class="text-blue-300">nmap</span> -oN output.txt <target>
|
| 134 |
+
</div>
|
| 135 |
+
<div class="code-block p-4">
|
| 136 |
+
<span class="text-green-300"># Save to XML format</span><br>
|
| 137 |
+
<span class="text-blue-300">nmap</span> -oX output.xml <target>
|
| 138 |
+
</div>
|
| 139 |
+
<div class="code-block p-4">
|
| 140 |
+
<span class="text-green-300"># Save to all formats</span><br>
|
| 141 |
+
<span class="text-blue-300">nmap</span> -oA output <target>
|
| 142 |
+
</div>
|
| 143 |
+
<div class="code-block p-4">
|
| 144 |
+
<span class="text-green-300"># Verbose output</span><br>
|
| 145 |
+
<span class="text-blue-300">nmap</span> -v <target>
|
| 146 |
+
</div>
|
| 147 |
+
</div>
|
| 148 |
+
</section>
|
| 149 |
+
|
| 150 |
+
<!-- Scripting Engine Section -->
|
| 151 |
+
<section class="print-section">
|
| 152 |
+
<h2 class="text-2xl font-bold text-blue-600 border-b-2 border-blue-600 pb-2 mb-4 flex items-center">
|
| 153 |
+
<i data-feather="code" class="mr-2"></i> NSE Scripting Engine
|
| 154 |
+
</h2>
|
| 155 |
+
<div class="grid grid-cols-1 gap-4 mb-6">
|
| 156 |
+
<div class="code-block p-4">
|
| 157 |
+
<span class="text-green-300"># Run default scripts</span><br>
|
| 158 |
+
<span class="text-blue-300">nmap</span> -sC <target>
|
| 159 |
+
</div>
|
| 160 |
+
<div class="code-block p-4">
|
| 161 |
+
<span class="text-green-300"># Run specific script</span><br>
|
| 162 |
+
<span class="text-blue-300">nmap</span> --script=http-vuln-cve2017-5638 <target>
|
| 163 |
+
</div>
|
| 164 |
+
<div class="code-block p-4">
|
| 165 |
+
<span class="text-green-300"># Run script category</span><br>
|
| 166 |
+
<span class="text-blue-300">nmap</span> --script=vuln <target>
|
| 167 |
+
</div>
|
| 168 |
+
<div class="code-block p-4">
|
| 169 |
+
<span class="text-green-300"># Run multiple scripts</span><br>
|
| 170 |
+
<span class="text-blue-300">nmap</span> --script=smb-enum*,http-title <target>
|
| 171 |
+
</div>
|
| 172 |
+
</div>
|
| 173 |
+
|
| 174 |
+
<div class="bg-blue-600 bg-opacity-10 p-4 rounded-lg">
|
| 175 |
+
<h3 class="font-semibold text-blue-600 mb-2">Common Script Categories:</h3>
|
| 176 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-2">
|
| 177 |
+
<div>
|
| 178 |
+
<span class="font-mono bg-white px-2 py-1 rounded">auth</span> - Authentication related<br>
|
| 179 |
+
<span class="font-mono bg-white px-2 py-1 rounded">default</span> - Default scripts<br>
|
| 180 |
+
<span class="font-mono bg-white px-2 py-1 rounded">discovery</span> - Service discovery<br>
|
| 181 |
+
<span class="font-mono bg-white px-2 py-1 rounded">dos</span> - Denial of service checks
|
| 182 |
+
</div>
|
| 183 |
+
<div>
|
| 184 |
+
<span class="font-mono bg-white px-2 py-1 rounded">exploit</span> - Exploit checks<br>
|
| 185 |
+
<span class="font-mono bg-white px-2 py-1 rounded">intrusive</span> - Potentially intrusive<br>
|
| 186 |
+
<span class="font-mono bg-white px-2 py-1 rounded">safe</span> - Safe scripts<br>
|
| 187 |
+
<span class="font-mono bg-white px-2 py-1 rounded">vuln</span> - Vulnerability checks
|
| 188 |
+
</div>
|
| 189 |
+
</div>
|
| 190 |
+
</div>
|
| 191 |
+
</section>
|
| 192 |
+
</main>
|
| 193 |
+
|
| 194 |
+
<!-- Footer -->
|
| 195 |
+
<footer class="mt-12 text-center text-sm text-gray-500 no-print">
|
| 196 |
+
<p>Nmap Cheat Sheet - Security+ QuickCheat Pro</p>
|
| 197 |
+
<p class="mt-1">For optimal printing, use Chrome/Firefox and select "Background graphics" in print settings</p>
|
| 198 |
+
</footer>
|
| 199 |
+
</div>
|
| 200 |
+
|
| 201 |
+
<script>
|
| 202 |
+
feather.replace();
|
| 203 |
+
</script>
|
| 204 |
+
</body>
|
| 205 |
+
</html>
|