文本命令行网络抓包分析器
提示词主题封面

文本

命令行网络抓包分析器

用 C 和 libpcap 构建具备协议解析、流量统计与告警功能的网络分析工具。

Prompt

Create a command-line network packet analyzer in C using libpcap. Implement packet capture from network interfaces with filtering options. Add protocol analysis for common protocols (TCP, UDP, HTTP, DNS, etc.). Include traffic statistics with bandwidth usage and connection counts. Implement packet decoding with detailed header information. Add export functionality in PCAP and CSV formats. Include alert system for suspicious traffic patterns. Implement connection tracking with state information. Add geolocation lookup for IP addresses. Include command-line arguments for all options with sensible defaults. Implement color-coded output for better readability.

使用建议

可按需删减协议解析或导出功能,先生成可编译的基础版本。

信息

类型
文本
来源
f
许可
CC0-1.0

反馈这条内容