如何以编程方式从被动嗅探收集数据包? [英] How do I programatically collect packets from passively sniffing?
问题描述
我想测试我刚刚在中间攻击中针对人写的服务器的漏洞。
如何(在Mac OS X上)分析数据包。 (我会检查他们去哪里,如果他们正在前往我的服务器,并查看所有可用的信息),然后我会找出一种方式加密一切...但首先的事情。
任何有关数据包嗅探的帮助将非常感谢。
我的首选语言是java。
但我可以做C ++。
所以,我的问题是:有什么类型的API /库,我可以与? >
喜欢,如果我能做PacketSniffer ps = new PacketSniffer();
最好的可移植库是 libpcap 。甚至还有 java封装容器可供使用。
I want to test the vulnerability of the server I just wrote against man in the middle attacks.
How (on Mac OS X) do I analyze packets. (I'll be checking where they are going, pulling information from if they are heading to my server, and seeing what all is available) Then I'll figure out a way to encrypt everything... but first things first.
Any help on packet sniffing would be greatly appreciated.
My preferred language is java. But I can do C++.
so, my question is: "Is there any sort of API / library that I can interface with?"
Like, if I could do PacketSniffer ps = new PacketSniffer(); that would be amazing.
The best portable library for this is libpcap. There's even a java wrapper available for it.
这篇关于如何以编程方式从被动嗅探收集数据包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!