Diff
1diff --git a/plugins/nmap/README.md b/plugins/nmap/README.md
2new file mode 100644
3index 0000000000000000000000000000000000000000..8bb8e0648957ef488c01cdcc0b6e8fbc9a433167
4--- /dev/null
5+++ b/plugins/nmap/README.md
6@@ -0,0 +1,32 @@
7+# Nmap aliases plugin
8+
9+Adds some useful aliases for nmap similar to the profiles in zenmap.
10+
11+Nmap options are:
12+ * -sS - TCP SYN scan
13+ * -v - verbose
14+ * -T1 - timing of scan. Options are paranoid (0), sneaky (1), polite (2), normal (3), aggressive (4), and insane (5)
15+ * -sF - FIN scan (can sneak through non-stateful firewalls)
16+ * -PE - ICMP echo discovery probe
17+ * -PP - timestamp discovery probe
18+ * -PY - SCTP init ping
19+ * -g - use given number as source port
20+ * -A - enable OS detection, version detection, script scanning, and traceroute (aggressive)
21+ * -O - enable OS detection
22+ * -sA - TCP ACK scan
23+ * -F - fast scan
24+ * --script=vulscan - also access vulnerabilities in target
25+
26+## Aliases explained
27+
28+ * nmap_open_ports - scan for open ports on target
29+ * nmap_list_interfaces - list all network interfaces on host where the command runs
30+ * nmap_slow - slow scan that avoids to spam the targets logs
31+ * nmap_fin - scan to see if hosts are up with TCP FIN scan
32+ * nmap_full - aggressive full scan that scans all ports, tries to determine OS and service versions
33+ * nmap_check_for_firewall - TCP ACK scan to check for firewall existence
34+ * nmap_ping_through_firewall - Host discovery with SYN and ACK probes instead of just pings to avoid firewall
35+ restrictions
36+ * nmap_fast - Fast scan of the top 300 popular ports
37+ * nmap_detect_versions - detects versions of services and OS, runs on all ports
38+ * nmap_check_for_vulns - uses vulscan script to check target services for vulnerabilities
39diff --git a/plugins/nmap/nmap.plugin.zsh b/plugins/nmap/nmap.plugin.zsh
40new file mode 100644
41index 0000000000000000000000000000000000000000..f3603f6222097dcb0d35900ebe0cc504937687d6
42--- /dev/null
43+++ b/plugins/nmap/nmap.plugin.zsh
44@@ -0,0 +1,28 @@
45+# Some useful nmap aliases for scan modes
46+
47+# Nmap options are:
48+# -sS - TCP SYN scan
49+# -v - verbose
50+# -T1 - timing of scan. Options are paranoid (0), sneaky (1), polite (2), normal (3), aggressive (4), and insane (5)
51+# -sF - FIN scan (can sneak through non-stateful firewalls)
52+# -PE - ICMP echo discovery probe
53+# -PP - timestamp discovery probe
54+# -PY - SCTP init ping
55+# -g - use given number as source port
56+# -A - enable OS detection, version detection, script scanning, and traceroute (aggressive)
57+# -O - enable OS detection
58+# -sA - TCP ACK scan
59+# -F - fast scan
60+# --script=vulscan - also access vulnerabilities in target
61+
62+alias nmap_open_ports="nmap --open"
63+alias nmap_list_interfaces="nmap --iflist"
64+alias nmap_slow="nmap -sS -v -T1"
65+alias nmap_fin="nmap -sF -v"
66+alias nmap_full="nmap -sS -T4 -PE -PP -PS80,443 -PY -g 53 -A -p1-65535 -v"
67+alias nmap_check_for_firewall="nmap -sA -p1-65535 -v -T4"
68+alias nmap_ping_through_firewall="nmap -PS -PA"
69+alias nmap_fast="nmap -F -T5 --top-ports 300"
70+alias nmap_detect_versions="nmap -sV -p1-65535 -O --osscan-guess -T4 -Pn"
71+alias nmap_check_for_vulns="nmap --script=vulscan"
72+