Follow up: How to write a Linux virus

Written By
Web Webster
Web Webster
Feb 12, 2009

“Commenter Burninator discovered that you don’t even need the
.desktop ending in the attachment. The Gnome and KDE desktops
actually read the file, and don’t base their decision to
special-case the file on the file-name extension! So, the critical
meta data here (make this something that can be executed) is NOT
encoded in the filename, as some have suggested, it is actually
derived by reading the first line of the file contents. So, in that
respect the desktop environments are not quite as hapless as some
had indicated and are not just making the same mistake as Windows
has.

“On the flip-side of that same discovery: You can make your
attachment now even less suspicious looking. Rather than naming it
something like some_text.odt.desktop, you only need to name it
some_text. That has two nice side effects: Firstly, email clients
will now never know what to do with the file (no useful extension)
and are more likely to prompt the user to save the file to disk.
Thus, you don’t need to get the user to explicitly do that anymore
by putting proper wording in your email.”

Advertisement

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.