Diff
1diff --git a/plugins/nmap/README.md b/plugins/nmap/README.md
2index 5cd6462771e8e03fe9ce1677853c0ff314f7c0c7..0a60068c218f607c317c44125df026845aef3251 100644
3--- a/plugins/nmap/README.md
4+++ b/plugins/nmap/README.md
5@@ -1,37 +1,27 @@
6-# Nmap aliases plugin
7+# Nmap plugin
8
9-Adds some useful aliases for nmap similar to the profiles in zenmap.
10+Adds some useful aliases for [Nmap](https://nmap.org/) similar to the profiles in zenmap.
11
12-Nmap options are:
13- * -sS - TCP SYN scan
14- * -v - verbose
15- * -T1 - timing of scan. Options are paranoid (0), sneaky (1), polite (2), normal (3), aggressive (4), and insane (5)
16- * -sF - FIN scan (can sneak through non-stateful firewalls)
17- * -PE - ICMP echo discovery probe
18- * -PP - timestamp discovery probe
19- * -PY - SCTP init ping
20- * -g - use given number as source port
21- * -A - enable OS detection, version detection, script scanning, and traceroute (aggressive)
22- * -O - enable OS detection
23- * -sA - TCP ACK scan
24- * -F - fast scan
25- * --script=vulscan - also access vulnerabilities in target
26+To use it, add `nmap` to the plugins array in your zshrc file:
27
28-## Aliases explained
29+```zsh
30+plugins=(... nmap)
31+```
32
33- * nmap_open_ports - Scan for open ports on target
34- * nmap_list_interfaces - List all network interfaces on host where the command runs
35- * nmap_slow - Slow scan that avoids to spam the targets logs
36- * nmap_fin - Scan to see if hosts are up with TCP FIN scan
37- * nmap_full - Aggressive full scan that scans all ports, tries to determine OS and service versions
38- * nmap_check_for_firewall - TCP ACK scan to check for firewall existence
39- * nmap_ping_through_firewall - Host discovery with SYN and ACK probes instead of just pings to avoid firewall
40- restrictions
41- * nmap_fast - Fast scan of the top 300 popular ports
42- * nmap_detect_versions - Detects versions of services and OS, runs on all ports
43- * nmap_check_for_vulns - Uses vulscan script to check target services for vulnerabilities
44- * nmap_full_udp - Same as full but via UDP
45- * nmap_traceroute - Try to traceroute using the most common ports
46- * nmap_full_with_scripts - Same as nmap_full but also runs all the scripts
47- * nmap_web_safe_osscan - Little "safer" scan for OS version as connecting to only HTTP and HTTPS ports doesn't look so attacking.
48+## Aliases
49
50+- `nmap_open_ports`: scan for open ports on target.
51+- `nmap_list_interfaces`: list all network interfaces on host where the command runs.
52+- `nmap_slow`: slow scan that avoids to spam the targets logs.
53+- `nmap_fin`: scan to see if hosts are up with TCP FIN scan.
54+- `nmap_full`: aggressive full scan that scans all ports, tries to determine OS and service versions.
55+- `nmap_check_for_firewall`: TCP ACK scan to check for firewall existence.
56+- `nmap_ping_through_firewall`: host discovery with SYN and ACK probes instead of just pings to avoid firewall restrictions.
57+- `nmap_fast`: fast scan of the top 300 popular ports.
58+- `nmap_detect_versions`: detects versions of services and OS, runs on all ports.
59+- `nmap_check_for_vulns`: uses vulscan script to check target services for vulnerabilities.
60+- `nmap_full_udp`: same as full but via UDP.
61+- `nmap_traceroute`: try to traceroute using the most common ports.
62+- `nmap_full_with_scripts`: same as nmap_full but also runs all the scripts.
63+- `nmap_web_safe_osscan`: little "safer" scan for OS version as connecting to only HTTP and HTTPS ports doesn't look so attacking.
64+- `nmap_ping_scan`: ICMP scan for active hosts.
65diff --git a/plugins/nmap/nmap.plugin.zsh b/plugins/nmap/nmap.plugin.zsh
66index 8c691bdaa3c095a6edb2b70bd37ac3f9f21bb676..406870f0017290ae30e305e44cd7f2a2ac0c51e3 100644
67--- a/plugins/nmap/nmap.plugin.zsh
68+++ b/plugins/nmap/nmap.plugin.zsh
69@@ -29,4 +29,4 @@ alias nmap_full_udp="sudo nmap -sS -sU -T4 -A -v -PE -PS22,25,80 -PA21,23,80,443
70 alias nmap_traceroute="sudo nmap -sP -PE -PS22,25,80 -PA21,23,80,3389 -PU -PO --traceroute "
71 alias nmap_full_with_scripts="sudo nmap -sS -sU -T4 -A -v -PE -PP -PS21,22,23,25,80,113,31339 -PA80,113,443,10042 -PO --script all "
72 alias nmap_web_safe_osscan="sudo nmap -p 80,443 -O -v --osscan-guess --fuzzy "
73-
74+alias nmap_ping_scan="nmap -n -sP"