Socket
Book a DemoInstallSign in
Socket

@cyberok-org/amass

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cyberok-org/amass

latest
npmnpm
Version
1.0.0
Version published
Maintainers
2
Created
Source

@cyberok-org/amass

The JavaScript wrapper around OWASP Amass

Highlights

  • TypeScript support.
  • ESM modules only.
  • Node.js >=14 support.

Install

$ yarn add @cyberok-org/amass
# or
$ npm install @cyberok-org/amass

Configuration

The package provides 2 ways to configure amss binary path:

  • Environment variable $PATH. It works out of box.
  • Environment variable $AMASS_BIN_PATH. You should provide absolute path to amass.

Usage

Basic

  • The wrapper supports following amass modes:
    • intel – discover targets for enumerations.
    • enum – perform enumerations and network mapping.
  • A command parameters are chained.
import Amass from '@cyberok/amass'

// Intel
const domains = await Amass.intel()
  .domain('cyberok.ru')
  .execute()

// Enum
const results = await Amass.enum()
  .active()
  .domain('cyberok.ru')
  .execute()

// OR: conditional usage of enum parameters
const command = Amass.enum().domain('cyberok.ru')
if (shouldBeActive) command.active()
const results = command.execute()

AbortSignal

A command can be aborted. For that purpose the wrapper supports AbortSignal.

const abortController = new AbortController()

const results = await Amass.enum()
  .active()
  .domain('cyberok.ru')
  .execute({ signal: abortController.signal })

FAQs

Package last updated on 08 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.