1.1.2 • Published 2 years ago

stenoread v1.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

stenoRead.js

Stenographer API packet reader in Node, piping out steaming hot PCAP data


Requirements

  • stenographer
    • configuration in /etc/stenographer/config
    • pem certificates in certPath

Setup

npm install -g stenoread

CLI Usage

stenoread.js "port 5060 and after 1m ago" | tshark -r /dev/stdin

WEB/API Usage

A simple UI can be served to run http/s queries via web

stenoserve.js --port 443 --token 1234pcap --certPath /etc/letsencrypt/live/my.domain

Usage Examples

     _                     __                _    _     
 ___| |_ ___ _ __   ___   /__\ ___  __ _  __| |  (_)___ 
/ __| __/ _ \ '_ \ / _ \ / \/// _ \/ _` |/ _` |  | / __|
\__ \ ||  __/ | | | (_) / _  \  __/ (_| | (_| |_ | \__ \
|___/\__\___|_| |_|\___/\/ \_/\___|\__,_|\__,_(_)/ |___/
                                               |__/     
                                               
QueryUsecase
host 8.8.8.8Single IP address (hostnames not allowed)
net 10.0.0.0/8Network with CIDR
port 23Port number (UDP or TCP)
icmpSpecific protocol
before 2019-04-01T11:05:00ZPackets before a specific time (UTC)
after 2019-04-01T11:05:00-0700Packets after a specific time (with TZ)
before 45m agoPackets before a relative time
after 10m agoPackets after a relative time

API

PCAP data can be requested via insecure GET/POST requests

/{query}/pcap

Examples:

POST
curl 'http://localhost:1235/query' --data-raw 'query=port 22 and after 1m ago' | tshark -r /dev/stdin
GET
wget -qO- "http://localhost:1235/port 22 and after 1m ago/pcap | tshark -r /dev/stdin
Credits
1.1.1

2 years ago

1.1.2

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago