Socket
Socket
Sign inDemoInstall

peacap

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

peacap

Cross-platform Python-based NPM module for sniffing system-wide TCP packets.


Version published
Weekly downloads
5
Maintainers
1
Weekly downloads
 
Created
Source

Peacap

Cross-platform Python-based NPM module for sniffing system-wide TCP packets.

Prerequisites   ·   Installation   ·   Usage   ·   Contribute

Prerequisites

  • You must have Python installed, and available at the python command on Windows, and python3 on Windows & Linux.
  • If scapy, the dependent python library isn't successfully installed when you install the peacap dependency, you can optionally install scapy using pip.

Installation

Simply install using your favourite Node.js package manager.

yarn add peacap
npm install peacap

Usage

Usage is simple, simply instantiate the PacketSniffer constructor, and observe.

import { PacketSniffer } from "peacap";

const sniffer = new PacketSniffer();
sniffer.on("packet", console.log);
/**
 * {
 *   source: "10.0.0.2",
 *   destination: "10.0.0.3",
 *   outgoing: true,
 *   size: 420,
 *   packet: <Buffer 00 00 00 ...>
 * }
 */

Contribute

Feel free to contribute to the repository. Pull requests and issues with feature requests are super welcome!

Keywords

FAQs

Package last updated on 04 Sep 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc