Virus Block
Hmm, my blog is turning into a list of complaints about email. I promise to post something Palm-related soon!
So I finally get fed up with all the viruses I've been getting via email lately (several hundred per day; it makes my Treo 600 nearly useless for receiving emails), so I wrote a Perl script and filtered all my email through it. Any email with an attachment that ends with .com, .exe, .scr, .bat, or .pif will be blocked. Unfortunately, that doesn't cover the new viruses like Netsky that send ZIP files. After some thought (and copious searching of CPAN for useful modules), I added code to extract ZIP attachments from all emails received and parse the contents. Here's the algorithm I used:
- If the ZIP file contains a .com, .scr or .pif file, it's blocked. No one sends those files these days.
- If the ZIP file contains a .exe file, then check to see if it has a double-extension (e.g. ".htm.exe"). If so, block it.
No comments:
Post a Comment