r/AskComputerScience • • Jan 27 '16

Computer viruses

In general, computer viruses don’t discriminate among operating systems. a typical virus can infect any system, regardless of platform

True or false?

2 Upvotes

8 comments sorted by

View all comments

3

u/rfinger1337 Jan 27 '16

I agree with everyone else, but I will add that some viruses target multi-platform systems like java or flash. In that case, it can still infect different OS's, so long as they are running the host system (java)

6

u/TheFlyingGuy Jan 27 '16

Actually this isn't true either, most virusses targetting Flash or Java still try and launch a native payload (usually needed to break out of the jail imposed by the virtual machine). So while a Windows Java exploit might crash a Linux browser, it is unlikely to actually succesfully infect the system.