New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

pcap-tcpparse

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pcap-tcpparse

pcap parser files with a simple tcp stack, can display websocket frames as json, included masked ones

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Usage

npx pcap-websocket [yourfile.pcap] [protoHandler] [tcpfilter]

Filter a specific connection with both tcp endpoint, displaywith more readable json if payload are JSON strings

npx pcap-websocket yourfile.pcap ws 192.168.8.247:46286,192.168.8.219:8042 | jq '. | select(.opcode == 1) | .text = (.text | fromjson)' | less

Filter all connection on the websocket server port.

npx pcap-websocket yourfile.pcap ws 192.168.8.219:8042

Known limitation

  • Only a websocket handler for now, ws
  • Do not support TCP packet reordering. Mostly work on capture on local network
  • SSL not supported

Keywords

pcap

FAQs

Package last updated on 30 Nov 2021

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