文件名称:rawsocket
介绍说明--下载内容均来自于网络,请自行研究使用
基于RawSocket的数据包过滤程序,共包含7个文件:inetheader.h、rawsocsniffer.h、rawsocket.h、rawsocket.c、rawsocsniffer.c、main.c、makefile。
编译:命令行模式下,切换到代码所在目录,输入make即可编译。编译后将生成一个可执行文件main,以及一些obj文件。
运行:命令行下输入 ./main [-s 源IP] [-d 目的IP] [-atui] 即可运行程序,可以通过设置不同的参数可以实现简单的过滤功能。参数功能如下:
s是根据源IP地址过滤数据包
d是根据目的IP地址过滤数据包
a是过滤ARP包
t是过滤TCP包
u是过滤UDP包
i是过滤ICMP包-RawSocket based packet filtering program, contains a total of seven files: inetheader.h, rawsocsniffer.h, rawsocket.h, rawsocket.c, rawsocsniffer.c, main.c, makefile. Compile: command line mode, switch to the code directory, enter to compile make. Generates an executable file main, and some obj files compiled after. Run: command line input/main [-s source IP] [-d purpose IP] [-atui] to run the program, you can set different parameters can be achieved simply filtering. Parameter functions are as follows: s is to filter packets based on the destination IP address d is filtered packet is a packet filtering ARP is to filter TCP packets t u i is a UDP packet filtering based on source IP address filtering ICMP packets
编译:命令行模式下,切换到代码所在目录,输入make即可编译。编译后将生成一个可执行文件main,以及一些obj文件。
运行:命令行下输入 ./main [-s 源IP] [-d 目的IP] [-atui] 即可运行程序,可以通过设置不同的参数可以实现简单的过滤功能。参数功能如下:
s是根据源IP地址过滤数据包
d是根据目的IP地址过滤数据包
a是过滤ARP包
t是过滤TCP包
u是过滤UDP包
i是过滤ICMP包-RawSocket based packet filtering program, contains a total of seven files: inetheader.h, rawsocsniffer.h, rawsocket.h, rawsocket.c, rawsocsniffer.c, main.c, makefile. Compile: command line mode, switch to the code directory, enter to compile make. Generates an executable file main, and some obj files compiled after. Run: command line input/main [-s source IP] [-d purpose IP] [-atui] to run the program, you can set different parameters can be achieved simply filtering. Parameter functions are as follows: s is to filter packets based on the destination IP address d is filtered packet is a packet filtering ARP is to filter TCP packets t u i is a UDP packet filtering based on source IP address filtering ICMP packets
(系统自动生成,下载前可以参看下载内容)
下载文件列表
6\inetheader.h
.\main
.\main.c
.\makefile
.\rawsocket.c
.\rawsocket.h
.\rawsocsniffer.c
.\rawsocsniffer.h
6