stnw
v1.0.10
Published
A simple typescript nmap wrapper to perform basic nmap operations
Downloads
11
Readme
STNW - (Simple Typescript Nmap Wrapper)
A simple typescript nmap wrapper to perform basic nmap operations
Github repository
For any request please add an issue to the git repo. It'll be a pleasure :)
- https://github.com/Yasha-ops/STNW
Before everything...
Some commands require root priviliges. So to bypass this follow this tutorial here
Installation
npm i stnw
Example usage
import NmapScanner from "nmap";
// Example usage:
const scanner = new NmapScanner("example.com");
scanner
.quickScan()
.then((result) => console.log("Quick Scan Result:\n", result));
scanner
.scanPort(80)
.then((result) => console.log("Port Scan Result:\n", result));
scanner.isHostUp().then((result) => console.log("Host Up Result:\n", result));
scanner.getOs().then((result) => console.log("OS Detection Result:\n", result));
scanner
.scanServices()
.then((result) => console.log("Service Scan Result:\n", result));