Registry / networking / ruby-nmap

ruby-nmap

JSON →
library1.0.3rbrubygemsunverified

A Ruby API to nmap, the exploration tool and security / port scanner. Allows automating nmap and parsing nmap XML files.

gem install ruby-nmap
INSTALL
IMPORT
SIG · RUBY-NMAP
R
ruby-nmap
networkingrubyv1.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Nmap
require 'nmap'

Run an nmap scan and parse the XML output.

require 'nmap' Nmap::Program.scan do |nmap| nmap.syn_scan = true nmap.service_scan = true nmap.os_fingerprint = true nmap.xml = 'scan.xml' nmap.ports = [80, 443] nmap.targets = '192.168.1.1' end Nmap::XML.new('scan.xml') do |xml| xml.each_host do |host| puts host.ip end end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.3latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources