-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnmap.cheat
More file actions
53 lines (36 loc) · 1.04 KB
/
Copy pathnmap.cheat
File metadata and controls
53 lines (36 loc) · 1.04 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
% nmap, scanning, recon
# Quick SYN scan (top 1000 ports)
nmap -sS <target>
# Full port scan (all 65535)
nmap -sS -p- <target>
# Service version detection
nmap -sV <target>
# OS detection
nmap -O <target>
# Aggressive scan (OS, version, scripts, traceroute)
nmap -A <target>
# UDP scan (top ports)
nmap -sU --top-ports 20 <target>
# Script scan (default scripts)
nmap -sC <target>
# Vulnerability scan
nmap --script vuln <target>
# SMB enumeration
nmap --script smb-enum-shares,smb-enum-users -p 445 <target>
# HTTP enumeration
nmap --script http-enum -p 80,443 <target>
# Full comprehensive scan
nmap -sS -sV -sC -O -p- -oA scan_<target> <target>
# Scan multiple targets from file
nmap -iL <targets_file>
# Fast scan (top 100 ports)
nmap -F <target>
# Ping sweep (host discovery)
nmap -sn <network_cidr>
# Skip ping (scan even if host appears down)
nmap -Pn <target>
# Output all formats
nmap -sS -sV -oA output_<target> <target>
$ target: echo ""
$ targets_file: find . -name "*.txt" -type f 2>/dev/null
$ network_cidr: echo "192.168.1.0/24"