stnw
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

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 :)

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));

Package Sidebar

Install

npm i stnw

Weekly Downloads

18

Version

1.0.10

License

ISC

Unpacked Size

19 kB

Total Files

13

Last publish

Collaborators

  • yasha-ops