{"id":13826576,"url":"https://github.com/hurley25/sniffer","last_synced_at":"2025-04-30T05:22:19.887Z","repository":{"id":6714434,"uuid":"7960123","full_name":"hurley25/sniffer","owner":"hurley25","description":"一个跨平台的网络数据嗅探\u0026抓包程序，基于Qt 4.x 以及 libpcap 库（Linux下）和 Winpcap库（Windows 下）。","archived":false,"fork":false,"pushed_at":"2017-09-02T06:59:15.000Z","size":899,"stargazers_count":99,"open_issues_count":1,"forks_count":44,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-30T13:04:05.288Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hurley25.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-zh.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-01T15:07:03.000Z","updated_at":"2025-03-21T11:01:22.000Z","dependencies_parsed_at":"2022-08-31T20:11:14.611Z","dependency_job_id":null,"html_url":"https://github.com/hurley25/sniffer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hurley25%2Fsniffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hurley25%2Fsniffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hurley25%2Fsniffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hurley25%2Fsniffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hurley25","download_url":"https://codeload.github.com/hurley25/sniffer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251645987,"owners_count":21620847,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T09:01:40.555Z","updated_at":"2025-04-30T05:22:19.856Z","avatar_url":"https://github.com/hurley25.png","language":"C++","funding_links":[],"categories":["\u003ca id=\"7bf0f5839fb2827fdc1b93ae6ac7f53d\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"32739127f0c38d61b14448c66a797098\"\u003e\u003c/a\u003e嗅探\u0026\u0026Sniff"],"readme":"﻿sniffer\n=======\n\n一个跨平台的网络数据嗅探\u0026抓包程序，基于Qt 4.x 以及 libpcap 库（Linux下）和 Winpcap库（Windows 下）。\n\n * 关于TCP协议发送的数据的解析也许会有乱码，一是暂时没有处理编码，二来有加密数据\n\n编译方法：\n\n\u003c一\u003e Windows 平台：\n\n        1. 下载 WinPcap 驱动和DLL安装包并安装\n\n            http://www.winpcap.org/install/bin/WinPcap_4_1_2.exe\n\n        2. 下载解压缩 Winpcap 开发包\n\n            http://www.winpcap.org/install/bin/WpdPack_4_1_2.zip\n           \n           并将Windows平台的项目文件sniffer_win32.pro中的\n\n                INCLUDEPATH += winpcap\n                LIBS += lib/Packet.lib lib/wpcap.lib\n\n           两行修改到正确的指向，或者直接放置头文件的 pcap 目录和 lib 目录放到代码源文件目录\n\n        3. 需要安装配置 Qt 开发环境，详请请自行参照官网，建议使用 Qt 4.8.x 版本\n\n        4. 编译步骤：\n                1) 打开开始菜单中的 \"Visual Studio with Qt 4.8.x\" 快捷方式\n                2) 输入 \"qmake sniffer_win32.pro\" （不含引号）以生成 makefile 文件\n                3) 执行 \"nmake\" 或 \"nmake release\" 命令以调用 VS 的 nmake 工具编译\n                4) 在源码的 debug 或者 release 目录会生成可执行文件\n\n\u003c二\u003e Linux平台（以fedora为例，其余系统类似）：\n\n        * 代码在Windows下编写，头文件部分为GBK编码，Linux下请自行转换为UTF-8编码\n\n        1. 安装 libpcap 库和开发包，如 sudo yum install libpcap libpcap-dev\n\n        2. 安装 Qt 相关组件，详请请自行参照官网\n\n        3. 执行 \"qmake-qt4 sniffer_linux.pro\" 生成 Makefile 文件\n\n        4. 执行 \"make\" 命令编译\n\n        5. 源码目录下会有可执行文件 sniffer_linux，注意必须以root权限运行才能正常工作","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhurley25%2Fsniffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhurley25%2Fsniffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhurley25%2Fsniffer/lists"}