🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

dns-hijacking

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dns-hijacking

Node.js DNS hijacking tool.

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
3
-25%
Maintainers
1
Weekly downloads
 
Created
Source

dns-hijacking

Node.js DNS hijacking tool.

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Installation

$ npm install dns-hijacking --save

Quick start

  const DNSHijacking = require('dns-hijacking');
  const hosts = { 'nodejs.org': '127.0.0.1' }; // also support IPV6. e.g: { 'nodejs.org': '2607:f8b0:4003:c18::65' }
  const dNSHijacking = new DNSHijacking(hosts);

  // doing logic under the hijacking
  dNSHijacking.setup();

  // reset the hijacking
  dNSHijacking.reset();

API

DNSHijacking

  • constructor(hosts) hosts this hijacking host config.
  • config setter custuom config the hijacking host.
  • setup() start hijacking.
  • reset() stop hijacking.
  • resetConfig() reset the hijacking host.

License

MIT

Keywords

dns

FAQs

Package last updated on 01 Oct 2016

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