portprobe
v1.0.2
Published
Simple portscanning NPM library
Downloads
2
Readme
PortProbe
Table of Contents
About
PortProbe is a very easy to use port scanning NPM module that is lightweight.
Getting Started
This is how you could add PortProbe to your existing project.
Install package
npm install portprobe
Import module
const PortProbe = require('portprobe');
Usage
Scan single port
PortProbe.scanPort(${address}, ${port})
Function Paramaters
| Parameter | Type | Required | Default Value | |------------- |--------- |---------- |--------------- | | IP address | String | True | N/A | | Port Number | Integer | True | N/A | | Timeout | Integer | False | 3000 |
Scan common ports
PortProbe.scanCommonPorts(${address})
Function Paramaters
| Parameter | Type | Required | Default Value | |------------- |--------- |---------- |--------------- | | IP address | String | True | N/A | | Timeout | Integer | False | 3000 | | Additional Ports | List | False | [] |
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Authors
- Andrew Abercrombie @AndrewAbercrombie