文件名称:rawsocket
-
所属分类:
- 标签属性:
- 上传时间:2014-04-21
-
文件大小:10.73kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
基于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
6/main
6/main.c
6/makefile
6/rawsocket.c
6/rawsocket.h
6/rawsocsniffer.c
6/rawsocsniffer.h
6
6/main
6/main.c
6/makefile
6/rawsocket.c
6/rawsocket.h
6/rawsocsniffer.c
6/rawsocsniffer.h
6
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.