How do I programatically collect packets from passively sniffing? [closed]

我的梦境 提交于 2019-11-27 23:19:03

The best portable library for this is libpcap. There's even a java wrapper available for it.

No need to write your own - Download Wireshark from http://www.wireshark.org/

Wireshark and KisMAC both offer source code downloads and run on MacOS X. You can strip the needed code from there (if it's just for your internal use).

You should take a look to libcrafter: http://code.google.com/p/libcrafter/

The library has a Sniffer class with an interface very easy to use:

http://code.google.com/p/libcrafter/wiki/SnifferIntroduction

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!