View Single Post
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#33
Originally Posted by reinob View Post
Depends on what you mean by "virus". You can write a "malicious" program in any language, including Python. But that doesn't qualify it to be a virus.

Normally a virus has to infect programs by attaching itself to them, so that they can further infect other programs. Attaching a cross-platform python script to a random executable program is, I submit, not an easy task.
It could attach itself to other python scripts, which would make it a cross-platform virus. Spreading to other computers would be more problematic though - you'd be relying on users running random python scripts they get mailed (though the equivalent seems to work fine on Windows users). Even then, a user could only infect any scripts they have write access to.
 

The Following User Says Thank You to Rob1n For This Useful Post: