Verbosity and Debugging Options
Sometimes you need tom verbosity or need to debug something.
Increase Verbosity Level
You can specify the level which you want to crank up the verbosity.
Nmapr.scan :cmd do
verbose 1
# or
verbose 2
# or
verbose 3
end
You can also specify the verbosity other ways.
Nmapr.scan :cmd do
verbose :slightly # 1
end
Nmapr.scan :cmd do
verbose :moderately # 2
end
Nmapr.scan :cmd do
verbose :very # 3
end
Debug
When even verbose mode doesn't provide sufficient data for you, debugging is available to flood you with much more!
Nmapr.scan :cmd do
debug
end
Show Open
Show only open (or possibly open) ports.
Nmapr.scan :cmd do
open
end
Packet Trace
Trace packets and data sent and received.
Nmapr.scan :cmd do
packet_trace
end
Show Reason
Shows the reason each port is set to a specific state and the reason each host is up or down.
Nmapr.scan :cmd do
reason
end
List Interfaces
Prints the interface list and system routes as detected by Nmap.
Nmapr.scan :cmd do
list_interfaces
end