https://github.com/re-ops/re-scan
A Clojure-fied Nmap Wrapper
https://github.com/re-ops/re-scan
clojure nmap re-ops wrapper
Last synced: 8 months ago
JSON representation
A Clojure-fied Nmap Wrapper
- Host: GitHub
- URL: https://github.com/re-ops/re-scan
- Owner: re-ops
- Created: 2018-02-18T09:16:38.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-30T01:35:50.000Z (about 7 years ago)
- Last Synced: 2024-07-31T19:06:10.109Z (over 1 year ago)
- Topics: clojure, nmap, re-ops, wrapper
- Language: Clojure
- Size: 4.88 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Intro
A Clojure-fied Nmap wrapper.
[](https://travis-ci.org/re-ops/re-scan)
# Usage
In your Lein project:
```clojure
[re-scan "0.1.0"]
```
Within the REPL:
```clojure
user=> (use 're-scan.core)
user=> (pprint (open-ports (nmap "/usr/bin/" "-T5" "foo")))
({"foo"
({:protocol "tcp",
:portid "22",
:state "open",
:reason "syn-ack",
:reason_ttl "64",
:name "ssh",
:method "table",
:conf "3"}
...
```
# Prerequisite
* JDK 8
* lein
* password-less sudo Nmap access
# Copyright and license
Copyright [2018] [Ronen Narkis]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.