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.

networking
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.

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 footguns

No known footguns recorded.

Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
9 hits · last 30 days
claudebot
3
ahrefsbot
1
Resources