||
tar xvfz checkpassword-0.90.tar.gz cd checkpassword-0.90 make make setup check |
#!/bin/sh # # Filename: auth.sh # Author: hutuworm # @Copyleft 2003 hutuworm.org # function auth_failed () { echo "靠,你耍俺老猪啊?" exit 1 } echo "※※※※※※※※※※※" echo "※猪圈重地 闲人莫入※" echo "※※※※※※※※※※※" printf "请输入帐号:" read ACCOUNT if [ $ACCOUNT = 'admin' -o $ACCOUNT = 'root' ] then echo "本圈不欢迎admin&root!" exit 1 fi printf "请输入密码:" stty -echo read PASSWORD stty echo echo "" printf "$ACCOUNT$PASSWORDY123456" | /bin/checkpassword logger "$ACCOUNT used auth.sh" 3<&0' 'auth_failed echo "欢迎光临糊涂馋寺附属斋堂之猪圈! :P" |
$ chmod +x auth.sh $ $ ./auth.sh ※※※※※※※※※※※ ※猪圈重地 闲人莫入※ ※※※※※※※※※※※ 请输入帐号:hutuworm 请输入密码: 靠,你耍俺老猪啊? $ $ ./auth.sh ※※※※※※※※※※※ ※猪圈重地 闲人莫入※ ※※※※※※※※※※※ 请输入帐号:admin 请输入密码: 本圈不欢迎admin&root! $ $ ./auth.sh ※※※※※※※※※※※ ※猪圈重地 闲人莫入※ ※※※※※※※※※※※ 请输入帐号:hutuworm 请输入密码: 欢迎光临糊涂馋寺附属斋堂之猪圈! :P $ $ tail -1 /var/log/messages May 5 13:51:45 hutuworm.org 5月 5 13:51:45 logger: hutuworm used auth.sh |