ruby-nmap
ruby-nmap copied to clipboard
A Ruby interface to nmap, the exploration tool and security / port scanner. Allows automating nmap and parsing nmap XML files.
https://github.com/postmodern/ruby-nmap/blob/43e851324f9f725ad6e51b88a1e80a5f4c5ae98e/lib/nmap/host.rb#L266-L276 The above method checks if `uptime` exists within an nmap report and then parses the `lastboot` attribute as a timestamp. This fails if `lastboot` is the empty string and...
Replace the `Nmap::Scripts` module with a `Nmap::XML::Script` class that wraps around the `script` element. It must provide access to the `output` attribute as a String, and the child elements as...
Add missing spec. `OS#each` just calls `#each_match`.
The following methods are missing specs: - `#mac` (requires `//host/address[@addrtype='mac']`) - `#ipv6` (requires `//host/address[@addrtype='ipv6']`) - `#each` (just calls `each_open_port`) - `#scripts` (requires //host/hostscript/script`) - `#traceroute` (requires `//host/trace`)
The following methods do not have specs: - `#ssl?` (requires `//service[@tunnel="ssl"]`) - `#protocol` (requires `//service[@proto]`) - `#extra_info` (requires `//service[@extrainfo]`) - `#hostname` (requires `//service[@hostname]`) - `#os_type` (requires `//service[@ostype]`) - `#device_type` (requires...