Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pipebits/nmap.js
A package to interact with nmap from code!
https://github.com/pipebits/nmap.js
Last synced: about 2 months ago
JSON representation
A package to interact with nmap from code!
- Host: GitHub
- URL: https://github.com/pipebits/nmap.js
- Owner: pipebits
- Created: 2021-08-28T03:49:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-28T21:57:50.000Z (over 3 years ago)
- Last Synced: 2023-12-25T19:02:09.837Z (about 1 year ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nmap node
A package to interact with nmap from code!
## Instalation
For this package to work you need [nmap](https://nmap.org) and [node](https://nodejs.org/es/) installed in your machine.
```
npm:
npm install nmap-node
```## Usage
```js
//Import the module
const scanner = require("nmap-node");//Create a new client and define the target
let Client = new scanner("10.0.0.1");//Run the scan
Client.regularScan();//On raw data print it
Client.on("raw", (output) => {
console.log(output);
});Client.on("error", (error) => {
console.log(error);
});
```