WinPcap编程入门实践
2012-03-19 14:58
786 查看
WinPcap可能对大多数人都很陌生,我在这里就先简单介绍一下它是什么吧~~这里我们先看一下来自维基百科中对于pcap的解释吧!
In the field of computernetwork administration, pcap (packet capture) consists of an application programming interface(API) for capturing network traffic. Unix-like systems implement pcap in the libpcap library; Windows uses a port of libpcap known as WinPcap.
Monitoring software may use libpcap and/or WinPcap to capture packets travelling over a network and, in newer versions, to transmit packets on a network at the link layer, as well as to get a list of network interfaces for possible use with libpcap or WinPcap.
The implementers of the pcap API wrote it in C, so other languages such as Java, .NET languages, and scripting languagesgenerally use a wrapper; no such wrappers are provided by libpcap or WinPcap itself. C++ programs may link directly to the C API or use an object-oriented wrapper.
看完介绍之后大家肯定会很清楚了。对的,pcap其实就是一个用来捕捉网络流量的API。在类UNIX平台下有libpcap,而在Windows平台下有WinPcap。事实上WinPcap是在libpcap的基础之上开发的函数库。它是Windows平台下一个免费,公共的网路访问系统。开发WinPcap这个项目的目的在于为Win32应用程序提供访问网络底层的能力。著名软件tcpdump及snort都是基于libpcap编写的,而像WireShark则是利用WinPcap来获取网络数据包的,可见这套函数库还是很有价值的。
这篇博客的目的是提供一个目录的作用,上面会插入介绍WinPcap编程的博文地址,当然今后也会添加进一些关于WinPcap更深层次的博文地址。(吐槽一句,其实不太知道这类博文应该选取哪个分类,如果博客园可以提供“计算机网络”这个分类就好了!)
WinPcap编程入门教程(win7+codeblocks+mingw+winpcap)
1. 《获取本地适配器信息》
2. 《获取已安装设备的高级信息》 (包含如何配置codeblocks下winpcap编程环境)
3. 《打开适配器并捕获数据包》
4. 《不用回调方法捕获数据包》
5. 《过滤及分析数据包》
6. 《处理脱机dump文件(上)》
7. 《处理脱机dump文件(下)》
8. 《发送数据包》
9. 《收集并统计网络流量》
小结:《WinPcap编程常用函数和数据结构》
WinPcap编程实例
《WinPcap编程之HTTP协议还原》
《Jpcap过滤GTunnel程序数据包》
In the field of computernetwork administration, pcap (packet capture) consists of an application programming interface(API) for capturing network traffic. Unix-like systems implement pcap in the libpcap library; Windows uses a port of libpcap known as WinPcap.
Monitoring software may use libpcap and/or WinPcap to capture packets travelling over a network and, in newer versions, to transmit packets on a network at the link layer, as well as to get a list of network interfaces for possible use with libpcap or WinPcap.
The implementers of the pcap API wrote it in C, so other languages such as Java, .NET languages, and scripting languagesgenerally use a wrapper; no such wrappers are provided by libpcap or WinPcap itself. C++ programs may link directly to the C API or use an object-oriented wrapper.
看完介绍之后大家肯定会很清楚了。对的,pcap其实就是一个用来捕捉网络流量的API。在类UNIX平台下有libpcap,而在Windows平台下有WinPcap。事实上WinPcap是在libpcap的基础之上开发的函数库。它是Windows平台下一个免费,公共的网路访问系统。开发WinPcap这个项目的目的在于为Win32应用程序提供访问网络底层的能力。著名软件tcpdump及snort都是基于libpcap编写的,而像WireShark则是利用WinPcap来获取网络数据包的,可见这套函数库还是很有价值的。
这篇博客的目的是提供一个目录的作用,上面会插入介绍WinPcap编程的博文地址,当然今后也会添加进一些关于WinPcap更深层次的博文地址。(吐槽一句,其实不太知道这类博文应该选取哪个分类,如果博客园可以提供“计算机网络”这个分类就好了!)
WinPcap编程入门教程(win7+codeblocks+mingw+winpcap)
1. 《获取本地适配器信息》
2. 《获取已安装设备的高级信息》 (包含如何配置codeblocks下winpcap编程环境)
3. 《打开适配器并捕获数据包》
4. 《不用回调方法捕获数据包》
5. 《过滤及分析数据包》
6. 《处理脱机dump文件(上)》
7. 《处理脱机dump文件(下)》
8. 《发送数据包》
9. 《收集并统计网络流量》
小结:《WinPcap编程常用函数和数据结构》
WinPcap编程实例
《WinPcap编程之HTTP协议还原》
《Jpcap过滤GTunnel程序数据包》
相关文章推荐
- python编程:从入门到实践-第十章练习
- Linux设备驱动开发入门与编程实践
- Visual C++数字图像处理开发入门与编程实践
- Storm实时计算:流操作入门编程实践
- ASP.NET 2.0 Web Part编程入门(实践篇)
- python编程 从入门到实践 第八章 函数 及课后题
- 《Python 编程-从入门到实践》10-1~10-13
- python编程:从入门到实践 第五章课后题
- Windows RPC编程入门(已动手实践按红体字部分修改可以正常运行)
- python编程从入门到实践18章 Django入门
- 编程入门注重实践还是注重理论?气宗剑宗之争的观点汇总。
- Python编程 从入门到实践 第六章 字典
- Java编程入门程序实践
- Python编程 从入门到实践 第四章 作业参考答案 (部分)
- 《Python 编程-从入门到实践》3-1~3-11
- 《Python 编程-从入门到实践》5-1~5-13
- WinPcap编程入门(3)——打开适配器并捕获数据包
- Storm实时计算:流操作入门编程实践
- Storm入门与实践(3)通过WordCount展开Storm的编程之旅
- 《Python 编程-从入门到实践》2-1~2-11