{"id":27624272,"url":"https://github.com/ctkqiang/floodshield-sentinel","last_synced_at":"2025-04-23T11:27:06.388Z","repository":{"id":288963273,"uuid":"969678489","full_name":"ctkqiang/floodshield-sentinel","owner":"ctkqiang","description":"FloodShield Sentinel 是一个基于 C++ 开发的智能网络流量监控与分析系统，专门用于检测和防御网络攻击。本系统采用 libpcap 进行底层数据包捕获，实现实时流量分析和异常检测。","archived":false,"fork":false,"pushed_at":"2025-04-20T18:23:46.000Z","size":0,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-20T18:38:02.099Z","etag":null,"topics":["china","china-region","cpp","cybersecurity","ddos","monitoring-tool"],"latest_commit_sha":null,"homepage":"http://www.ctkqiang.xin/floodshield-sentinel/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ctkqiang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-20T17:36:44.000Z","updated_at":"2025-04-20T18:23:49.000Z","dependencies_parsed_at":"2025-04-20T18:48:18.585Z","dependency_job_id":null,"html_url":"https://github.com/ctkqiang/floodshield-sentinel","commit_stats":null,"previous_names":["ctkqiang/floodshield-sentinel"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctkqiang%2Ffloodshield-sentinel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctkqiang%2Ffloodshield-sentinel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctkqiang%2Ffloodshield-sentinel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctkqiang%2Ffloodshield-sentinel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctkqiang","download_url":"https://codeload.github.com/ctkqiang/floodshield-sentinel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250423800,"owners_count":21428240,"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":["china","china-region","cpp","cybersecurity","ddos","monitoring-tool"],"created_at":"2025-04-23T11:27:05.669Z","updated_at":"2025-04-23T11:27:06.371Z","avatar_url":"https://github.com/ctkqiang.png","language":"C++","funding_links":["https://ko-fi.com/F1F5VCZJU","https://www.paypal.com/paypalme/ctkqiang"],"categories":[],"sub_categories":[],"readme":"# 🛡️ FloodShield Sentinel 智能防汛预警系统\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/ctkqiang/floodshield-sentinel/9d46bb35e90330c2890ee7ff1cfa0f961e20f415/assets/logo.svg\" alt=\"FloodShield Sentinel Logo\" width=\"200\" height=\"200\" style=\"margin: 20px 0\"\u003e\n\u003c/div\u003e\n\n\u003cp\u003e\n    \u003cimg src=\"https://img.shields.io/badge/版本-1.0.0-blue.svg\" alt=\"version\"/\u003e\n    \u003cimg src=\"https://img.shields.io/badge/许可证-Mulan PSL-green.svg\" alt=\"license\"/\u003e\n    \u003cimg src=\"https://img.shields.io/badge/平台-MacOS%20%7C%20Linux | Windows-White.svg\" alt=\"platform\"/\u003e\n    \u003cimg src=\"https://img.shields.io/badge/语言-C++-red.svg\" alt=\"language\"/\u003e\n \u003c/p\u003e\n\n\n## 📋 项目简介\n\nFloodShield Sentinel 是一个基于 C++ 开发的智能网络流量监控与分析系统，专门用于检测和防御网络攻击。本系统采用 libpcap 进行底层数据包捕获，实现实时流量分析和异常检测。\n\n### 🎯 主要特点\n- 实时网络流量监控\n- TCP/UDP 协议分析\n- 智能异常流量检测\n- 多网卡接口支持\n- 终端可视化显示\n\n## 💡 核心功能\n\n### 1. 网络监控 📊\n- 实时数据包捕获\n- 协议类型识别（TCP/UDP）\n- 端口流量统计\n- IP 流量分析\n\n### 2. 异常检测 🚨\n- DDoS 攻击检测\n- 流量突发预警\n- 异常连接监控\n- 实时告警提示\n\n### 3. 数据分析 📈\n- 流量统计分析\n- 连接状态跟踪\n- 实时流量图表\n- 网络性能监控\n\n## 🔧 技术架构\n\n### 开发环境\n- C++ 17\n- libpcap\n- ANSI Terminal UI\n\n### 系统要求\n- MacOS/Linux 操作系统\n- 管理员/Root 权限\n- 支持 libpcap 的网络接口\n\n## 📌 编译要求\n\n### 依赖项\n- g++ 编译器 (支持 C++17)\n- libpcap 开发库\n- make 工具\n\n### 硬件要求\n\n- CPU: 双核处理器或更高\n- 内存: 最少 4GB RAM\n- 网卡: 支持混杂模式的网络接口\n- 存储: 最少 1GB 可用空间\n\n### 软件环境\n\n- 操作系统:\n  - MacOS 10.15+ (Catalina or later)\n  - Ubuntu 20.04 LTS+\n  - CentOS 8+\n- 编译器: g++ 8.0+ 或 clang++ 10.0+\n- libpcap: 1.9.0+\n- make: 3.8+\n\n### 网络要求\n\n- 支持的网络接口类型:\n  - en0: 以太网/Wi-Fi 接口\n  - lo0: 本地环回接口\n  - awdl0: 苹果无线直连接口\n  - bridge0: 网桥接口\n  - utun[0-9]: VPN/隧道接口\n- 网络接口必须支持混杂模式\n- 建议使用有线网络接口以获得最佳性能\n\n\n### MacOS 环境配置\n```bash\nbrew install libpcap\n````\n\n### Linux 环境配置\n\n```bash\nsudo apt-get install libpcap-dev  # Ubuntu/Debian\nsudo yum install libpcap-devel    # CentOS/RHEL\n```\n\n## 🚀 快速开始\n\n### 编译安装\n\n1. 克隆代码仓库\n\n```bash\ngit clone https://github.com/ctkqiang/floodshield-sentinel.git\n\n或\n\ngit clone https://gitcode.com/ctkqiang_sr/floodshield-sentinel.git\n\ncd floodshield-sentinel\n```\n\n2. 编译项目\n\n```bash\nmake\n```\n\n3. 运行程序（需要管理员权限）\n\n```bash\nsudo ./kanghongweishi\n```\n\n### 使用说明\n\n1. 启动后选择要监控的网络接口\n2. 程序将显示实时网络流量信息\n3. 根据流量异常程度显示不同级别的警告\n4. 按 Ctrl+C 退出程序\n\n## 📖 功能说明\n\n- 🟢 正常流量: \u003c 10 packets/sec\n- 🟡 警告流量: \u003e 10 packets/sec\n- 🔴 危险流量: \u003e 100 packets/sec\n\n## 📸 运行演示\n\n### 网络接口选择\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/ctkqiang/floodshield-sentinel/blob/main/assets/%E6%88%AA%E5%B1%8F2025-04-21%20%E4%B8%8A%E5%8D%881.24.04.png?raw=true\" alt=\"Network Interface Selection\" width=\"800\" style=\"max-width: 100%; margin: 20px 0; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1);\"\u003e\n\u003c/div\u003e\n\n```bash\n选择监听的网络接口 (Select Network Interface):\n\n1: ap1 [无线接入点]\n2: en0 [以太网/Wi-Fi 接口]\n3: awdl0 [苹果无线直连接口]\n4: llw0 [低延迟无线局域网]\n5: utun0 [VPN/隧道接口 0]\n6: utun1 [VPN/隧道接口]\n7: utun2 [VPN/隧道接口]\n8: utun3 [VPN/隧道接口]\n9: utun4 [VPN/隧道接口]\n10: utun5 [VPN/隧道接口]\n11: lo0 [本地环回接口]\n12: anpi0 [锚点网络接口]\n13: anpi1 [锚点网络接口]\n14: en3 [以太网接口]\n15: en4 [以太网接口]\n16: en1 [以太网接口]\n17: en2 [以太网接口]\n18: bridge0 [网桥接口]\n19: gif0 [通用隧道接口]\n20: stf0 [IPv6 隧道接口]\n\n```\n\n# 实时流量监控\n\n```bash\n🛡️ 正在监听 en0 上的流量...\n📦 192.168.1.100 ➜ 192.168.1.1 | TCP 443➜62091\n📦 71.18.1.198 ➜ 192.168.100.142 | TCP 443➜62092\n...\n```\n\n\n## 🤝 贡献指南\n\n欢迎提交 Pull Request 或 Issue。\n\n## 许可证\n\n本项目采用 **木兰宽松许可证 (Mulan PSL)** 进行许可。  \n有关详细信息，请参阅 [LICENSE](LICENSE) 文件。  \n（魔法契约要保管好哟~）\n\n[![License: Mulan PSL v2](https://img.shields.io/badge/License-Mulan%20PSL%202-blue.svg)](http://license.coscl.org.cn/MulanPSL2)\n\n## 🌟 开源项目赞助计划\n\n### 用捐赠助力发展\n\n感谢您使用本项目！您的支持是开源持续发展的核心动力。  \n每一份捐赠都将直接用于：  \n✅ 服务器与基础设施维护（魔法城堡的维修费哟~）  \n✅ 新功能开发与版本迭代（魔法技能树要升级哒~）  \n✅ 文档优化与社区建设（魔法图书馆要扩建呀~）\n\n点滴支持皆能汇聚成海，让我们共同打造更强大的开源工具！  \n（小仙子们在向你比心哟~）\n\n---\n\n### 🌐 全球捐赠通道\n\n#### 国内用户\n\n\u003cdiv align=\"center\" style=\"margin: 40px 0\"\u003e\n\n\u003cdiv align=\"center\"\u003e\n\u003ctable\u003e\n\u003ctr\u003e\n\u003ctd align=\"center\" width=\"300\"\u003e\n\u003cimg src=\"https://github.com/ctkqiang/ctkqiang/blob/main/assets/IMG_9863.jpg?raw=true\" width=\"200\" /\u003e\n\u003cbr /\u003e\n\u003cstrong\u003e🔵 支付宝\u003c/strong\u003e（小企鹅在收金币哟~）\n\u003c/td\u003e\n\u003ctd align=\"center\" width=\"300\"\u003e\n\u003cimg src=\"https://github.com/ctkqiang/ctkqiang/blob/main/assets/IMG_9859.JPG?raw=true\" width=\"200\" /\u003e\n\u003cbr /\u003e\n\u003cstrong\u003e🟢 微信支付\u003c/strong\u003e（小绿龙在收金币哟~）\n\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\u003c/div\u003e\n\u003c/div\u003e\n\n#### 国际用户\n\n\u003cdiv align=\"center\" style=\"margin: 40px 0\"\u003e\n  \u003ca href=\"https://qr.alipay.com/fkx19369scgxdrkv8mxso92\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Alipay-全球支付-00A1E9?style=flat-square\u0026logo=alipay\u0026logoColor=white\u0026labelColor=008CD7\"\u003e\n  \u003c/a\u003e\n  \n  \u003ca href=\"https://ko-fi.com/F1F5VCZJU\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Ko--fi-买杯咖啡-FF5E5B?style=flat-square\u0026logo=ko-fi\u0026logoColor=white\"\u003e\n  \u003c/a\u003e\n  \n  \u003ca href=\"https://www.paypal.com/paypalme/ctkqiang\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/PayPal-安全支付-00457C?style=flat-square\u0026logo=paypal\u0026logoColor=white\"\u003e\n  \u003c/a\u003e\n  \n  \u003ca href=\"https://donate.stripe.com/00gg2nefu6TK1LqeUY\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Stripe-企业级支付-626CD9?style=flat-square\u0026logo=stripe\u0026logoColor=white\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n---\n\n### 📌 开发者社交图谱\n\n#### 技术交流\n\n\u003cdiv align=\"center\" style=\"margin: 20px 0\"\u003e\n  \u003ca href=\"https://github.com/ctkqiang\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/GitHub-开源仓库-181717?style=for-the-badge\u0026logo=github\"\u003e\n  \u003c/a\u003e\n  \n  \u003ca href=\"https://stackoverflow.com/users/10758321/%e9%92%9f%e6%99%ba%e5%bc%ba\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Stack_Overflow-技术问答-F58025?style=for-the-badge\u0026logo=stackoverflow\"\u003e\n  \u003c/a\u003e\n  \n  \u003ca href=\"https://www.linkedin.com/in/ctkqiang/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/LinkedIn-职业网络-0A66C2?style=for-the-badge\u0026logo=linkedin\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n#### 社交互动\n\n\u003cdiv align=\"center\" style=\"margin: 20px 0\"\u003e\n  \u003ca href=\"https://www.instagram.com/ctkqiang\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Instagram-生活瞬间-E4405F?style=for-the-badge\u0026logo=instagram\"\u003e\n  \u003c/a\u003e\n  \n  \u003ca href=\"https://twitch.tv/ctkqiang\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Twitch-技术直播-9146FF?style=for-the-badge\u0026logo=twitch\"\u003e\n  \u003c/a\u003e\n  \n  \u003ca href=\"https://github.com/ctkqiang/ctkqiang/blob/main/assets/IMG_9245.JPG?raw=true\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/微信公众号-钟智强-07C160?style=for-the-badge\u0026logo=wechat\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctkqiang%2Ffloodshield-sentinel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctkqiang%2Ffloodshield-sentinel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctkqiang%2Ffloodshield-sentinel/lists"}