macOS
brew install libnetlocal Homebrew formula metadata
sudo port install libnetMacPorts ports tree · net/libnet/Portfile · 来源: api.github.com
安装
brew install libnetlocal Homebrew formula metadata
sudo port install libnetMacPorts ports tree · net/libnet/Portfile · 来源: api.github.com
sudo apk add libnetAlpine Linux edge package indexes · libnet · 来源: dl-cdn.alpinelinux.org
sudo dnf install libnetFedora Rawhide package metadata · libnet · 来源: dl.fedoraproject.org
nix profile install nixpkgs#libnetnixpkgs package indexes · pkgs/by-name/li/libnet/package.nix · 来源: api.github.com
sudo pacman -S libnetArch Linux sync databases · libnet · 来源: geo.mirror.pkgbuild.com
sudo apt install libnet1Debian stable package indexes · libnet1 · 来源: deb.debian.org
sudo zypper install libnet-developenSUSE Tumbleweed package metadata · libnet-devel · 来源: download.opensuse.org
概览
C library for creating IP packets
历史
libnet is a C library for constructing and injecting network packets. It occupies the low-level packet-building side of the classic libpcap/libnet pairing: libpcap captures packets, while libnet gives test tools, scanners, and protocol experiments a portable API for emitting packets with controlled headers.
The project traces its 1.1 line to Mike D. Schiffman's Packetfactory-era work, with project materials crediting libnet 1.1 to 1998-2004. The maintained 1.1.3-and-later line was revived by Sam Roberts starting in 2009 after the older Packetfactory-hosted code had become unmaintained.
The 1.1 API was a significant break from 1.0.x code. The migration guide describes the change as a simplification from a five-step packet workflow to initialization, packet building, and packet writing, and the README warns that libnet 1.0.x code is incompatible with libnet 1.1.x and later.
libnet spread through security and networking tools because it hides byte ordering, buffer management, and link/IP layer packet assembly details while still allowing deliberate packet shaping. The official README names packaged tools such as arping, ettercap, nemesis, packit, tcptraceroute, and yersinia as libnet users.
Developers include libnet through libnet.h and link with -lnet. The project retained libnet-config for compatibility but moved new integration guidance toward pkg-config, with libnet.pc replacing the older helper in modern builds.
For package maintainers, libnet is notable because it is tiny in concept but sits on privileged and platform-specific network interfaces. Its ABI break between 1.0.x and 1.1.x, the revival from an abandoned upstream, and the long-lived libnet-config compatibility shim are exactly the sort of details that explain why distributions keep careful split packages and rebuild notes for it.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
libnet-config | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/libnet/libnet
安装元数据
| 软件包键 | brew:libnet |
|---|---|
| 版本 | 1.3 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/libnet |
| 主页 | https://codedocs.xyz/libnet/libnet/ |
| 仓库 | https://github.com/libnet/libnet |
| 上游文档 | https://codedocs.xyz/libnet/libnet |
| 许可证 | BSD-2-Clause |
| 源码归档 | https://github.com/libnet/libnet/releases/download/v1.3/libnet-1.3.tar.gz |
| 最后更新 | 2026-06-15T10:20:20-04:00 |
| Pulse | updated |
| 构建依赖 | doxygen |
| Bottle | 可用 (于 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | libnet |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
libnet1 1.3+dfsg-2
library for the construction and handling of network packets
https://github.com/libnet/libnet/
sudo apt install libnet1libnet1-dev 1.3+dfsg-2
development files for libnet
https://github.com/libnet/libnet/
sudo apt install libnet1-devlibnet1-doc 1.3+dfsg-2
developers documentation files for libnet
https://github.com/libnet/libnet/
sudo apt install libnet1-doclibnet
nix profile install nixpkgs#libnetlibnet1 1.1.6+dfsg-3.2build1
library for the construction and handling of network packets
http://libnet-dev.sourceforge.net/
sudo apt install libnet1libnet1-dbg 1.1.6+dfsg-3.2build1
debugging symbols for libnet
http://libnet-dev.sourceforge.net/
sudo apt install libnet1-dbglibnet1-dev 1.1.6+dfsg-3.2build1
development files for libnet
http://libnet-dev.sourceforge.net/
sudo apt install libnet1-devlibnet1-doc 1.1.6+dfsg-3.2build1
developers documentation files for libnet
http://libnet-dev.sourceforge.net/
sudo apt install libnet1-doclibnet 1.3-r0
A generic networking API that provides access to several protocols.
https://sourceforge.net/projects/libnet-dev/
sudo apk add libnetlibnet-dev 1.3-r0
A generic networking API that provides access to several protocols. (development files)
https://sourceforge.net/projects/libnet-dev/
sudo apk add libnet-devlibnet-doc 1.3-r0
A generic networking API that provides access to several protocols. (documentation)
https://sourceforge.net/projects/libnet-dev/
sudo apk add libnet-doclibnet-static 1.3-r0
A generic networking API that provides access to several protocols. (static library)
https://sourceforge.net/projects/libnet-dev/
sudo apk add libnet-staticlibnet 1.3-7.fc44
C library for portable packet creation and injection
https://github.com/libnet/libnet
sudo dnf install libnetlibnet-devel 1.3-7.fc44
Development files for the libnet library
https://github.com/libnet/libnet
sudo dnf install libnet-devellibnet-doc 1.3-7.fc44
Documentation files for the libnet library
https://github.com/libnet/libnet
sudo dnf install libnet-doclibnet 2:1.3-2
A library which provides API for commonly used low-level net functions
https://github.com/libnet/libnet
sudo pacman -S libnet来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.