ngrep is like GNU grep applied to the 网络 layer. It's a PCAP-based 工具
that allows you to specify an extended regular or hexadecimal expression to
match against data payloads of packets. It understands many kinds of protocols,
including IPv4/6, TCP, UDP, ICMPv4/6, IGMP and Raw, across a wide of
interface types, and understands BPF filter logic in the same fashion as more
common packet sniffing tools, such as tcpdump and snoop.
* Container name resolution for Docker/Podman (-r flag)
* Support display of UTF8 data when -u is specified
* Upgrade to PCRE2 (default on MacOS/homebrew and Windows builds)
* Add additional level of quiet for certain filtering scenarios
* Update to latest autotools for ngrep and regex-0.12 (2.72, 2023)
* Update manpage for missing options and typos
* Fix BPF DLT_ type detections within libpcap (e.g. DLT_LINUX_SLL)
* Allow for specifying location of PCRE2 includes
* Eliminate non-fatal build warnings (e.g. pcap_lookupdev deprecation)
* Fix ./configure --disable-tcpkill
* 源码 cleanup (nuke old files, unused vars, missing refs, etc)
* WinXX: -d allows de now (e.g. \Device\...)
* WinXX: Removed delay_socket hack in favor of Sleep()
* WinXX: Build with PCRE2 by default
* WinXX: Add new dedicated build script (build.ps1)
* WinXX: Builds on both x86_64 and ARM64 cpu architectures
The easiest way to run ngrep is :
See DOCKER for detailed Docker usage instructions.
Download pre-built binaries from the Releases page.
See INSTALL for build instructions.
ngrep was originally de to:
* debug plaintext 协议 interactions such as HTTP, IMAP, DNS, SIP, etc.
* identify and analyze anomalous 网络 communications such as those between
malware, zombies and
* store, read and reprocess pcap dump files while looking for specific data
patterns
As well, it could be used to do plaintext credential collection, as with HTTP
Basic Authentication, FTP or POP3 authentication. Like all useful tools, it can
be used for good and for bad.
Visit EXAMPLES to learn more about how ngrep works and can be
le to see all sorts of neat things.
ngrep was ported extensively to a multitude of platforms, but over time access to
them diminished. The list below is the original list; for a current list of
confirmed working platforms, see our autobuilds,
which includes the most popular OSes, compiler toolchains and cpu architectures.
* Linux 2.0+ (RH6+, SuSE, TurboLinux, Debian, Gentoo, Ubuntu, Mandrake, Slackware)/x86, RedHat/alpha, Cobalt (Qube2), Linux/MIPS
* Solaris 2.5.1, 2.6/SPARC, Solaris 7, Solaris 8/SPARC, Solaris 9/SPARC
* FreeBSD 2.2.5, 3.1, 3.2, 3.4-RC, 3.4-RELEASE, 4.0, 5.0
* OpenBSD 2.4 (after upgrading pcap from 0.2), 2.9, 3.0, 3.1+
* NetBSD 1.5/SPARC
* Digital Unix V4.0D (OSF/1), Tru64 5.0, Tru64 5.1A
* HPUX 11
* IRIX
* AIX 4.3.3.0/PowerPC
* BeOS R5
* Mac OS X 10+
* GNU HURD
* Windows 95, 98, NT, 2000, XP, 2003/x86, 7, 8, 8.1, 10
If you need help, ha feedback, or would like to submit a patch,
please visit ngrep's project at GitHub and use the online tools there. It will
help the author better manage the requests and patches so that nothing
is lost or missed (as has been the case in the past, unfortunately).
* Issues:
* Patches:
Please see CREDITS for a partial list of the many people who helped make ngrep
what it is today. Also, please note that ngrep is released under a simple
BSD-style license, though depending on which regex library you compile
against, you'll either get the GPL (GNU regex) or BSD (PCRE2).
Over the decades (!), ngrep has been included de facto in many popular distributions,
several of which ha package maintainers. Many of them ha
fielded issues reported by users of their distributions, and have e patches
to ngrep -- but I am seldom made aware. Every few years I have to hunt down what bug
reports and patches may exist, in often arcane tracking systems, so
that I can incorporate them for e's benefit. And sometimes I don't find them
all.
If you are a package maintainer for an OS or distribution, and find yourself
fielding a bug report or writing a patch for ngrep, *please* at minimum CC me so
that I can track (and possibly solve) the issue. Ideally, send me a link to a
patch or pull request so that I can review it and merge it in.
The way I see it, at the end of the day it's my 代码, so it's my responsibility, but
I can't be e to see e. I need your help to do a good job.
Thank you, sincerely, for all that you have done, and all that you will do. 🙏
开发语言:C
Star 数:1023
该项目属于黑客技术方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕ngrep is like GNU grep applied to the 网络 layer. It's a PCAP-based 工具 that allows you to specify an extended regular or hexadecimal expression to match against data payloads of packets. It understands many kinds of protocols, including IPv4/6, TCP, UDP, ICMPv4/6, IGMP and Raw, across a wide of interface types, and understands BPF filter logic in the same fashion as more common packet sniffing tools, such as tcpdump and snoop.展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。
从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。
1. 下载源码压缩包,解压到本地环境。
2. 根据项目类型准备对应的运行环境与依赖。
3. 按照 README 中的步骤完成配置与部署。
4. 在隔离的测试环境中运行验证,避免影响生产系统。
本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。
| 资源标题 | ngrep - ngrep is like GNU grep applied to the network laye |
| 所属分类 | 黑客技术 |
| 发布作者 | admin |
| 发布时间 | 2026-10-05 22:13:48 |
| 下载权限 | 免费下载 |
| 附件数量 | 2 个下载链接 |
| 浏览次数 | 516 |
| 讨论数量 | 0 |
| 主题状态 | 正常讨论中 |