cheat_sheets_nmap
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cheat_sheets_nmap [2022/11/06 20:11] – [Scan Target IPs] gman | cheat_sheets_nmap [2023/11/05 21:38] (current) – [Common Switches] gman | ||
---|---|---|---|
Line 5: | Line 5: | ||
* **Find scripts on your system:** '' | * **Find scripts on your system:** '' | ||
- | ====== | + | ====== |
- | **Usage:** | + | ===== Syntax ===== |
< | < | ||
Line 14: | Line 14: | ||
</ | </ | ||
- | **Standard Go-To Examples:** | + | ===== Standard Go-To Examples |
- | * Note: '' | + | |
< | < | ||
Line 27: | Line 26: | ||
</ | </ | ||
- | **Common Switches:** | + | ===== Common Switches |
^ Switch | ^ Switch | ||
Line 34: | Line 33: | ||
| **-sT** | | **-sT** | ||
| **-sU** | | **-sU** | ||
- | | **-sV** | + | | **-sV** |
- | | **-T[0-5]** | + | | **-T[0-5]** |
| **-p-** | | **-p-** | ||
| **-p [csv]** | | **-p [csv]** | ||
| **-O** | | **-O** | ||
- | | **-A** | + | | **-A** |
| **-vv** | | **-vv** | ||
| **--reason** | | **--reason** | ||
| **--script=vuln** | | **--script=vuln** | ||
+ | ---- | ||
+ | |||
+ | ====== Most Common Commands ====== | ||
The following is a list and description of the 30 most common basic commands in nmap (for beginners). | The following is a list and description of the 30 most common basic commands in nmap (for beginners). | ||
* **Source:** [[https:// | * **Source:** [[https:// | ||
- | ---- | ||
===== Target Selection ===== | ===== Target Selection ===== | ||
Line 58: | Line 59: | ||
| 04 | Scan a subnet | '' | | 04 | Scan a subnet | '' | ||
| 05 | Scan targets from text file | '' | | 05 | Scan targets from text file | '' | ||
- | |||
- | ---- | ||
===== Port Selection ===== | ===== Port Selection ===== | ||
Line 69: | Line 68: | ||
| 09 | Scan all ports| '' | | 09 | Scan all ports| '' | ||
| 10 | Specify UDP or TCP scan| '' | | 10 | Specify UDP or TCP scan| '' | ||
- | |||
- | ---- | ||
===== Scan Types ===== | ===== Scan Types ===== | ||
Line 79: | Line 76: | ||
| 13 | Scan UDP ports| '' | | 13 | Scan UDP ports| '' | ||
| 14 | Scan, Ignore Discovery (Ping not)| '' | | 14 | Scan, Ignore Discovery (Ping not)| '' | ||
- | |||
- | ---- | ||
===== Service and OS Detection ===== | ===== Service and OS Detection ===== | ||
Line 88: | Line 83: | ||
| 16 | Standard service detection| '' | | 16 | Standard service detection| '' | ||
| 17 | Aggressive service detection| '' | | 17 | Aggressive service detection| '' | ||
- | |||
- | ---- | ||
===== Output Formats ===== | ===== Output Formats ===== | ||
Line 101: | Line 94: | ||
---- | ---- | ||
- | ====== Common Switches ====== | ||
- | |||
- | ^ Switch | ||
- | | **-Pn** | ||
- | | **-sS** | ||
- | | **-sT** | ||
- | | **-sU** | ||
- | | **-sV** | ||
- | | **-T[0-5]** | ||
- | | **-p-** | ||
- | | **-p [csv]** | ||
- | | **-O** | ||
- | | **-A** | ||
- | | **-vv** | ||
- | | **--reason** | ||
- | | **--script=vuln** | ||
- | |||
- | ---- | ||
====== Nmap Scripting Engine ====== | ====== Nmap Scripting Engine ====== | ||
Line 132: | Line 107: | ||
| 24 | Scan using a specific script| '' | | 24 | Scan using a specific script| '' | ||
| 25 | Update script database| '' | | 25 | Update script database| '' | ||
- | |||
- | ---- | ||
===== Useful NSE Scripts ===== | ===== Useful NSE Scripts ===== | ||
Line 144: | Line 117: | ||
| 30 | Find exposed Netbios servers| '' | | 30 | Find exposed Netbios servers| '' | ||
- | ---- | ||
===== Script Categories ===== | ===== Script Categories ===== | ||
Line 164: | Line 136: | ||
| **version** | | **version** | ||
| **vuln** | | **vuln** | ||
- | |||
- | **Example: | ||
- | |||
- | < | ||
- | nmap -Pn -p [csv, | ||
- | </ | ||
- | |||
- | ---- | ||
===== Examples & Reference ===== | ===== Examples & Reference ===== | ||
Line 222: | Line 186: | ||
# script scan without host discovery or a port scan. | # script scan without host discovery or a port scan. | ||
# All hosts are assumed up and only host scripts are eligible to run. | # All hosts are assumed up and only host scripts are eligible to run. | ||
- | </ | ||
- | ---- | + | ## Common Go-To Example: |
+ | nmap -Pn -p [csv, | ||
+ | |||
+ | </ | ||
cheat_sheets_nmap.1667765514.txt.gz · Last modified: by gman