Skip to content

Netife网络探针器,负责捕获网络请求,并提供流模式的功能

License

Notifications You must be signed in to change notification settings

Netife/NetifeProbe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NetifeProbe

Netife网络探针器,负责捕获网络请求,并提供流模式的功能

关于开发

  • 使用 MSVC 编译器
  • 使用 vcpkg 进行包管理
  • 使用 C++17 标准
  • 使用 Cmake 进行文件组织构建
  • 使用 Clion 进行开发,但由于 WinDivert 的特殊性,同时使用 vs2022 和 vscode 进行调试

目标功能

  • 利用 MITM(中间人攻击)的方式截获数据包,提供对 http 、ws 、https 、wss 请求响应的编辑支持

(时间有限,上述功能仍在实现中......)

部分实现思路

  • 利用 WinDivert 提供的 api 编辑 tcp/ip 头部字段(源、目的ip;源、目的端口)以实现重定向

  • 利用 mkcert 根 CA 颁发自签名证书解决浏览器警告

  • MITM:

image-20230524231336717

相关依赖

  • grpc,用于和其他模块对接,用于扩展。可通过 vcpkg 下载
  • WinDivert,已将头文件和 dll 放到了项目的相应位置,无需额外下载
  • mkcert,用于为 Https 代理服务器生成证书,已打包为工具 exe 放入项目目录
  • (mswsock 库是微软提供的扩展库,windows操作系统自带

依赖链接

grpc:https://github.com/grpc/grpc

WinDivert:https://github.com/basil00/Divert

mkcert:https://github.com/FiloSottile/mkcert

About

Netife网络探针器,负责捕获网络请求,并提供流模式的功能

Resources

License

Stars

Watchers

Forks

Packages

No packages published