在 Windows 上使用 nodejs 捕获数据包 [英] Capturing packets with nodejs on windows

查看:89
本文介绍了在 Windows 上使用 nodejs 捕获数据包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

node.js v0.8.0,XP/WIN7(非 Cygwin)

node.js v0.8.0 , XP / WIN7 (not Cygwin)

google 并找到 node_pcap ( https://github.com/mranney/node_pcap )

google and found node_pcap ( https://github.com/mranney/node_pcap )

但它只支持 osx 和 linux.

but it only support osx and linux.

有windows的模块吗?

is there any module for windows?

谢谢.

.

推荐答案

如果你想要更跨平台的东西(例如通过 WinPcap 与 Windows 兼容),我曾写过 cap 一段时间:https://github.com/mscdex/cap

If you want something that's more cross-platform (e.g. compatible with Windows via WinPcap), I wrote cap awhile back: https://github.com/mscdex/cap

这篇关于在 Windows 上使用 nodejs 捕获数据包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆