Project

nmapr

0.0
No commit activity in last 3 years
No release in over 3 years
Your friendly neighborhood Ruby DSL to Nmap for network explortation.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.15
~> 10.0
~> 3.0
 Project Readme

Nmapr

A friendly Ruby DSL to nmap.

Installation

$ gem install nmapr

Usage

Build a nmap scan command in friendly, readable way.

Nmapr.scan :cmd do
  target '192.168.0.2'
  ports :common
  sequential
  detect :os
  verbose
end
# => "nmap 192.168.0.2 -p 1-1024 -r -O -v"

Run those commands.

result = Nmapr.scan :run do
  targets 'localhost'
  ports 22, 24
  detect :version
end

# Check stdout, stderr and status of command.
result[:stdout]
result[:stderr]
result[:status]

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Nmapr project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.