网络安全 频道

易如反掌 不用杀毒软件也能消灭病毒

CODE:
chinput > /dev/null chmod +x /usr/bin/pc --------------------------------------------------------------------- vi /usr/bin/pg
CODE:
GREP_UNIX=`uname | awk '{if($1 ~ /(^SunOS|^HP-UX)/) print $1}'` if ! [ "$GREP_UNIX" = "" ] then GREP_FILE=/usr/xpg4/bin/grep GREP_FLAG=ef else GREP_FILE=/bin/grep GREP_FLAG=efw fi GREP_DATA=`ps -$GREP_FLAG | grep $1 | grep -v grep` if [ -n "$GREP_DATA" ]; then ps -$GREP_FLAG | $GREP_FILE -e $1 -e "PID PPID" | grep -v grep fi chmod +x /usr/bin/pg --------------------------------------------------------------------- vi /usr/bin/pk CODE: # You can define the program to kill by name here. grep -v is list exception # for some keyword. ps and grep will randomly list itself, grep -v filter it. export KILL_PRG=$1 echo "# ps -ef | grep $KILL_PRG | grep -v grep | awk '{ print \$2 }' | xargs -i kill -9 {}" ps -ef | grep $KILL_PRG | grep -v grep | awk '{ print $2 }' | xargs -i kill -9 {} chmod +x /usr/bin/pk

    注:本文已经原作者wwashington授权IT168服务器频道刊登,感谢wwashington对IT168鼎力支持。

    原文链接: http://bbs.boletips.com/blbbs/viewthread.php?tid=177&extra=page%3D1
0
相关文章