Improve support of the '-p' option #96
-
Hello, The nmap option '-p' allow us to specify whether we want the port to use TCP or UDP like:
Would it be possible to upgrade the gem to follow this comportement? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
postmodern
Jan 25, 2024
Replies: 1 comment 1 reply
-
The nmap.ports = {tcp: [1,2,3,100..200], udp: [1,2,3,100..200]} You can also specify the raw String: nmap.ports = "U:102,T:502" |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
postmodern
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
ports
attribute can already accept a Hash of port numbers and Ranges grouped by protocol:You can also specify the raw String: