--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: parser
comment: 
- !ruby/struct:SM::Flow::P 
  body: Runs &quot;<tt>nmap</tt> -d <tt>args</tt> <tt>targets</tt>&quot;; returns a new Nmap::Parser object, and passes it to a block if one is given.
- !ruby/struct:SM::Flow::P 
  body: "<tt>nmap</tt> is here to allow you to do things like:"
- !ruby/struct:SM::Flow::P 
  body: parser = Nmap::Parser.parsescan(&quot;sudo ./nmap&quot;, ....)
- !ruby/struct:SM::Flow::P 
  body: and still make it easy for me to inject the options for XML output and debugging.
- !ruby/struct:SM::Flow::P 
  body: <tt>args</tt> can't contain arguments like -oA, -oX, etc. as these can interfere with Parser's processing. If you need that other output, just run Nmap yourself and pass -oX output to Parser via new. Or, you can use rawxml to grab the whole XML (as a String) and save it to a different file.
- !ruby/struct:SM::Flow::P 
  body: <tt>targets</tt> is an array of targets which will be split and appended to the command. It's optional and only for convenience because you can put any targets you want scanned in <tt>args</tt>.
full_name: Nmap::Parser::parsescan
is_singleton: true
name: parsescan
params: (nmap, args, targets = []) {|parser| ...}
visibility: public
