# snort

> Packet sniffing utility

Latest version **1.2.2** (published 2022-01-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install snort
pnpm add snort
yarn add snort
bun add snort
```

Provides the command `snort`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2022-01-27 |
| First published | 2018-10-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| Author | camwhite |
| Maintainers | camwhite |
| Keywords | packet, sniffer |

## Links

- npm: https://www.npmjs.com/package/snort
- npm.io page: https://npm.io/package/snort

## Dependencies (3)

- [chalk](https://npm.io/package/chalk.md) ^1.1.3
- [yargs](https://npm.io/package/yargs.md) ^12.0.2
- [stream-json](https://npm.io/package/stream-json.md) ^1.1.3

## Recent versions

- 1.2.2 (latest) — 2022-01-27
- 1.1.2 — 2019-02-21
- 1.1.1 — 2018-11-01
- 1.0.1 — 2018-10-31
- 1.0.0 — 2018-10-31

## README

# Snort

*Sniff dissected packets to JSON*

### Requirements

1. [tshark](https://www.wireshark.org/download.html)

```bash
# debian linux
sudo apt install tshark

# macos
brew install tshark
```
### Installation

`npm i -g snort`

### Usage

Flags

- `-i` the interface to sniff on (required)
- `-d` the sniff duration (required)
- `-k` absolute path to an ssl keylog file for encrypted sniffing (optional)

- `--monitor` sniff in monitor mode (optional)
- `-s` a wireless network ssid (optional)
- `-p` a wpa2 password (optional)

Examples

```bash
# Sniff https packets for 30 seconds on your localhost
snort -i lo -d 30 -k sslkeys.txt

# Sniff all http packets on an insecure network
snort -i wlp2s0 -d 30 --monitor
```

> launch firefox like `SSLKEYLOGFILE=sslkeys.txt firefox` to generate the keylog file

---
_Source: https://npm.io/package/snort · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
