ngrep

A command-line packet capture tool that matches network payloads against regular or hexadecimal expressions.

These buttons open the developer's own site, repository or store listing in a new tab. wares.gg does not host downloads.

1 more ways to get ngrep

Package managers

About ngrep

ngrep applies the idea of GNU grep to the network layer. Built on pcap, it lets you give an extended regular expression or hexadecimal pattern and prints the packets whose data payloads match.

It understands IPv4 and IPv6, TCP, UDP, ICMP, IGMP and raw packets across many interface types, and accepts BPF filter expressions in the same way as tcpdump. It suits administrators and developers who want to spot specific strings in live traffic without opening a full packet analyser.

Strengths

  • Grep-style matching on packet payloads
  • Accepts tcpdump-style BPF filters
  • Supports IPv4, IPv6 and common transport protocols
  • Lightweight single command-line tool

Limitations

  • Text output only, with no protocol decoding like Wireshark
  • Capturing traffic usually needs root or administrator rights

Details

Pricing
FreeFree open-source software.
License
Open source, license not stated
Developer
Jordan Ritter
Platforms
Windows, Linux, Command line
How it runs
Downloadable app
Account
Not required
Works offline
Yes
Best suited for
Quickly finding specific strings in live network traffic from a terminal
Last verified
Added
Provenance
Facts checked against the developer's own pages and store listings, 1 sources on file.

Alternatives to ngrep

Compare all

Software that can replace ngrep for an important use case, and what changes if you switch.

  • tcpdump

    The classic command-line packet capture and analysis tool.

    tcpdump is the standard BSD-licensed command-line capture tool that writes pcap files for other tools, though it lacks ngrep's grep-style payload matching.

  • Termshark

    Terminal interface for tshark that feels like Wireshark.

    Termshark gives a Wireshark-like terminal interface with full protocol decoding through tshark, running on macOS and Linux rather than Windows.

  • Wireshark

    The network protocol analyser: capture traffic and read it packet by packet, with dissectors for hundreds of protocols.

    Wireshark adds a graphical interface with dissectors for hundreds of protocols and display filters, replacing text-only output with readable decoded packets.

Similar software

Related functionality, not necessarily a direct replacement.

Report a wrong fact or a dead link on this listing