I guess most of you did face situtation where you type top and see a lots of unknown or mysterious scripts/utils running that take over top screen and your machine resources.
most of the times these scripts (like the irc bots that I encountered) run via perl and disguise them selfs using names like : /usr/local/apache/bin/httpd -DSSL
ofcourse if you try to kill one another 100 run in the same time, so the best way is to
1.run: top -c so you will see the full command
2.use: ps aux | grep [the name of the use who runs the proc]|grep “/usr/local/apache/bin/httpd -DSSL” | awk {‘print “kill -9 “$2 ‘} | /bin/bash
this will acctually make a list of the pids from top that have the command “/usr/local/apache/bin/httpd -DSSL”
and add the command kill in front , it will be like :
kill -9 234234
kill-9 3534534
etc etc
if you run the same command 2-3 times it will clean your box from the unwanted “visitors”.
You must be logged in to post a comment.