@cyberok-org/shodan
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-alpha1 • Public • Published

@cyberok-org/shodan

The JavaScript client for Shodan

Highlights

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

Install

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

Usage

The wrapper supports following filters:

  • asn – filter search by asn.
  • hostname – filter search by hostname.
  • ip – filter search by ip.
  • org –filter search by organization.
import Shodan, { ShodanQuery } from '@cyberok-org/shodan'

const client = new Shodan('API_KEY')

// ASN
const result = await client.search(ShodanQuery.asn('ASN_NAME'))

// Country
const result = await client.search(ShodanQuery.country('country'))

// Hostname
const result = await client.search(ShodanQuery.hostname('HOST'))

// IP
const result = await client.search(ShodanQuery.ip('IP'))

// Organization
const result = await client.search(ShodanQuery.org('ORGANIZATION_STRING'))

Readme

Keywords

none

Package Sidebar

Install

npm i @cyberok-org/shodan

Weekly Downloads

3

Version

1.0.0-alpha1

License

none

Unpacked Size

10.9 kB

Total Files

4

Last publish

Collaborators

  • khmm12
  • cyberok