Upgrading Guide¶ ↑
0.10.0 -> 1.0.0¶ ↑
Nmap::Program
/Namp::Task
-> Nmap::Command
¶ ↑
-
Replace all method calls to
Nmap::Program.scan
withNmap::Command.run
. -
Replace all method calls to
Nmap::Program.sudo_scan
withNmap::Command.sudo
. -
Rename all instances of
raw_ip
withsend_ip
. -
Rename all instances of
raw_ethernet
tosend_eth
. -
Rename all instances of
disable_stylesheet
tono_stylesheet
. -
Rename all instances of
nmap_stylesheet
towebxml
. -
Rename all instances of
append
toappend_output
. -
Rename all instances of
save
tooutput_normal
. -
Rename all instances of
grepable
tooutput_grepable
. -
Rename all instances of
skiddie
tooutput_skiddie
. -
Rename all instances of
xml
tooutput_xml
. -
Rename all instances of
script_params
toscript_args
. -
Remove any instances of the
:interactive
option ornmap.interactive
, as the--interactive
option is no longer supported by nmap.
Nmap::XML
¶ ↑
-
Nmap::XML.new
now only accepts a parsedNokogiri::XML::Document
object. UseNmap::XML.open
orNmap::XML.parse
if you wish to parse XML files or strings. -
Replace any method calls to
Nmap::XML.load
with {Nmap::XML.parse}. -
Rename any method calls to ‘
to
tcp_sequence`. -
Rename any method calls to
tcpsequence
totcp_sequence
. -
Rename any method calls to
ipidsequence
toip_id_sequence
. -
Rename any method calls to
tcptssequence
totcp_ts_sequence
. -
Rename any method calls to
prescripts
toprescript
. -
Rename any method calls to
postscripts
topostscript
. -
The scripts method now returns an Array of Nmap::XML::Script objects, instead of raw script output Strings. In order to access the raw script output Strings, call the output method on each returned Nmap::XML::Script objects instead.
-
The
script_data
method has been removed. In order to get the script’s structured data, call the [data] method on each returned Nmap::XML::Script objects instead. -
Rename any method calls to
extrainfo
toextra_info
.