You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-3Lines changed: 13 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -113,18 +113,24 @@ Remove all ports found in `scan-before.xml` from `scan-after.xml` and write the
113
113
Extracts a list of extra information about the given port in the following format:
114
114
port;service name;http title
115
115
116
+
ports-reachable
117
+
Generates a comma-separated list of all reachable ports (open and closed, unfiltered). Can be used to verify if ports reachable from another host or generate port lists for specific environments.
118
+
116
119
ports
117
-
Generates a comma-separated list of all ports. Can be used to verify if open/closed ports reachable from another host or generate port lists for specific environments. Filter closed/filtered ports.
120
+
Generates a comma-separated list of all open ports. Can be used to verify if open ports reachable from another host or generate port lists for specific environments. Closed/filtered ports are not shown in the list.
118
121
119
122
product
120
123
Extracts all detected product names.
121
124
122
125
service-names
123
-
Extracts all detected service names.
126
+
Extracts all detected service names (on open ports).
124
127
125
128
service [service-name]
126
129
Extracts a list of all *open* ports with a specific service (e.g. http, ms-wbt-server, smtp) in host:port format.
127
130
131
+
show-comments
132
+
Shows comments added by the comment-* commands.
133
+
128
134
ssl-common-name
129
135
Extracts a list of TLS/SSL ports with the commonName and Subject Alternative Name in the following format:
130
136
host:port commonName X509v3 Subject Alternative Name
@@ -196,10 +202,14 @@ Remove all ports found in `scan-before.xml` from `scan-after.xml` and write the
196
202
197
203
Misc Commands:
198
204
199
-
[v1.4.4]
205
+
[v1.4.5]
200
206
201
207
## Changelog
202
208
209
+
* v1.4.5
210
+
* Show only service-names of open ports
211
+
* Splitted ports command in: ports and ports-reachable
212
+
* Added show-comments command
203
213
* v1.4.4
204
214
* Fixed bug in [bash completion](_nmap-parse-output) when installed system-wide
Generates a comma-separated list of all reachable ports (open and closed, unfiltered). Can be used to verify if ports reachable from another host or generate port lists for specific environments.
4
+
</npo:comment>
5
+
<npo:category>extract</npo:category>
6
+
7
+
<xsl:outputmethod="text" />
8
+
<xsl:strip-spaceelements="*" />
9
+
10
+
<xsl:keyname="portid"match="/nmaprun/host/ports/port/state[@state = 'open' or @state = 'closed' or @state = 'unfiltered']/../@portid"use="." />
11
+
12
+
<xsl:templatematch="/">
13
+
<!-- distinct port numbers, see https://stackoverflow.com/questions/2291567/how-to-use-xslt-to-create-distinct-values -->
14
+
<xsl:for-eachselect="/nmaprun/host/ports/port/state[@state = 'open' or @state = 'closed' or @state = 'unfiltered']/../@portid[generate-id() = generate-id(key('portid',.)[1])]">
Generates a comma-separated list of all ports. Can be used to verify if open/closed ports reachable from another host or generate port lists for specific environments. Filter closed/filtered ports.
3
+
Generates a comma-separated list of all open ports. Can be used to verify if open ports reachable from another host or generate port lists for specific environments. Closed/filtered ports are not shown in the list.
0 commit comments