https://github.com/picatz/nmapr
🗺 Your friendly neighborhood Ruby DSL to Nmap for network exploration.
https://github.com/picatz/nmapr
dsl gem nmap ruby
Last synced: about 1 year ago
JSON representation
🗺 Your friendly neighborhood Ruby DSL to Nmap for network exploration.
- Host: GitHub
- URL: https://github.com/picatz/nmapr
- Owner: picatz
- License: mit
- Created: 2017-07-16T00:02:12.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-23T15:53:48.000Z (almost 9 years ago)
- Last Synced: 2024-08-10T11:25:04.466Z (over 1 year ago)
- Topics: dsl, gem, nmap, ruby
- Language: Ruby
- Homepage:
- Size: 15.6 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Nmapr
A friendly Ruby DSL to [nmap](https://nmap.org/).
## Installation
$ gem install nmapr
## Usage
Build a `nmap` scan command in friendly, readable way.
```ruby
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.
```ruby
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](http://opensource.org/licenses/MIT).
## 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](https://github.com/[USERNAME]/nmapr/blob/master/CODE_OF_CONDUCT.md).