Skip to content
/ nmapr Public

🗺 Your friendly neighborhood Ruby DSL to Nmap for network exploration.

License

Notifications You must be signed in to change notification settings

picatz/nmapr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

🗺 Your friendly neighborhood Ruby DSL to Nmap for network exploration.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published