Description: 编译环境:VC6
作用:简单功能的sniffer.使用WSADATA等windows socket.可监听tcp,udp,icmp等,也可根据需要更改代码.-Compiler Environment: VC6 role: a simple function of sniffer. Use WSADATA such as windows socket. Can monitor tcp, udp, icmp, etc. may also need to change the code. Platform: |
Size: 13312 |
Author:嘟嘟 |
Hits:
Description: 程序中需要设置套接字的属性SIO_RCVALL,而SIO_RCVALL属性在文件mstcpip.h中定义。mstcpip.h是微软用于处理TCP/IP协议的一个头文件,这里面包含了WinSockets一系列相关函数,该文件在platform SDK套件中,该头文件在vc6.0中没有。
本项目中给出了该文件的内容。
编写sniffer程序的另一个方法是在文件中使用#define直接定义SIO_RCVALL。源文件中给出了#define SIO_RCVALL _WSAIOW(IOC_VENDOR,1)
二种方法选一个
vc6.0下编译运行即可,屏幕显示捕获的包的信息
-Procedures need to set up a socket attribute SIO_RCVALL, and SIO_RCVALL attributes defined in the document mstcpip.h. mstcpip.h is used to deal with Microsoft TCP/IP protocol, a header file, which contains WinSockets inside a series of related function, the file in the platform SDK package, the header files in vc6.0 not. This project is given the contents of the document. Procedures for the preparation of sniffer Another option is to use in the document# Define directly the definition of SIO_RCVALL. Source file is given# Define SIO_RCVALL _WSAIOW (IOC_VENDOR, 1) two kinds of methods of election of a compiler to run under vc6.0 can, screen display information packet capture Platform: |
Size: 16384 |
Author:莫松成 |
Hits:
Description: 一个比较简单的sniffer源码(用vc6.0编程的程序),sniffer源码适合入门之用 想学网络编程的同志可以看看,用vc编的,好象用的是socket,原始套接字编程 程序主要是把网络上的包拦截下来,然后简单解析包头, 整个程序还是比较简单的,不过能让你很容易理解抓包的整体过程.
-A relatively simple sniffer source code (using vc6.0 programming procedures), sniffer source code suitable for use in entry-comrades who want to learn network programming can see, using vc compiled, as if using a socket, raw socket programming procedures mainly to intercept packets on the network down, and then a simple analysis of Baotou, the entire process is relatively simple, but allows you to easily understand the overall process of Ethereal. Platform: |
Size: 54272 |
Author:chen rong |
Hits:
Description: 一个比较简单的sniffer源码(用vc6.0编程的程序),sniffer源码适合入门之用 想学网络编程的同志可以看看,用vc编的,好象用的是socket,原始套接字编程 程序主要是把网络上的包拦截下来,然后简单解析包头, -A relatively simple sniffer source code (using vc6.0 programming procedures), sniffer source code used for entry comrades want to learn network programming can see, with vc series, as if using a socket, raw socket programming procedures mainly to intercept packets on the network down, then a simple analysis of Baotou, Platform: |
Size: 56320 |
Author:ZSC |
Hits: