9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] MYDoom-F pipeto pattern
@ 2004-02-27 14:42 plan9fans
  0 siblings, 0 replies; only message in thread
From: plan9fans @ 2004-02-27 14:42 UTC (permalink / raw)
  To: 9fans

Hi,

I've started to get more viruses:

Here is an replacement for the function in /mail/lib/pipeto.lib
for anyone who has similar problems.

It is tuned for Mydoom-A, Mydoom-F and the Swen.A

fn isvirus {
	virus=no
	if(grep -s '\.(exe|scr|bat|com|cmd)' $D/2/filename >[2]/dev/null){
		if (strings $D/2/body [2]>/dev/null | grep -s 'Try to pull my legs' ) virus=yes
		if (! ~ `{cat $D/2/body | rot13 | grep 'Version\\Explorer'} '' ) virus=yes
		if (! ~ `{cat $D/2/body | rot13 | tcs -f microsoft | grep 'RCPT TO:.*MAIL.*HELO'} '' ) virus=yes
	}

	if (grep -si '\.zip' $D/2/filename >[2]/dev/null)
		if (! ~ `{unzip -sc < $D/2/body | rot13 | grep 'Version\\Explorer'} '' ) virus=yes
		if (! ~ `{unzip -cs < $D/2/body | rot13 | tcs -f microsoft | grep 'RCPT TO:.*MAIL.*HELO'} '' ) virus=yes
	}

	if(~ $virus yes)
		status=''
	if not
		status='not this virus'
}



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-02-27 14:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-27 14:42 [9fans] MYDoom-F pipeto pattern plan9fans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).