Chinaunix首页 | 论坛 | 博客
  • 博客访问: 329425
  • 博文数量: 73
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1293
  • 用 户 组: 普通用户
  • 注册时间: 2013-03-07 11:17
个人简介

爱运动,爱看书,爱生活!

文章分类

全部博文(73)

文章存档

2014年(7)

2013年(66)

发布时间:2013-08-15 11:17:41

直接上代码点击(此处)折叠或打开#include <stdio.h>#include <sys/socket.h>#include <arpa/inet.h>//1.使用unix库函数判断int is_vaild(const char *str){   &n.........【阅读全文】

阅读(2229) | 评论(0) | 转发(0)

发布时间:2013-08-15 11:13:17

这个程序主要是连续不断向要攻击的主机发送TCP数据包点击(此处)折叠或打开#include <stdio.h> #include <unistd.h>#include <stdlib.h>#include <unistd.h>#include <sys/socket.h>#include <netinet/in.h>.........【阅读全文】

阅读(1672) | 评论(0) | 转发(0)

发布时间:2013-08-12 18:57:53

1.能抓取ether、IP、TCP、UDP数据报相关信息。2.少数几个参数没有转换成日常生活中经常使用的。3.虽然本人不太喜欢一个文件200多行代码,但为了结构清晰,并未分开4.3.具体就不介绍了,源代码基本上,每一个变量和函数都已经注释清楚点击(此处)折叠或打开#include <stdio.h> .........【阅读全文】

阅读(2145) | 评论(0) | 转发(0)

发布时间:2013-08-11 17:21:00

1.得到当前可用设备pcap_lookupdev 代码举例:点击(此处)折叠或打开#include #include #include #include #include int main(){.........【阅读全文】

阅读(2118) | 评论(0) | 转发(0)

发布时间:2013-08-11 17:09:24

1.pcap_findalldevs得到所有网卡接口举例:点击(此处)折叠或打开#include <stdio.h> #include <stdlib.h>#include <string.h>#include <unistd.h>#include <pcap/pcap.h>#include <arpa/inet.h>.........【阅读全文】

阅读(16288) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册