Let's say a program is contained entirely in a jar or exe. Is it possible for this program to propagate itself such that the user can't possibly remove it from the machine? I'm wondering how much trouble I could get in to with an arbitrary file I download. (Which isn't to say that I'm stupid enough to run any code someone gives me. I just want to know the risks.)
|
| |||||||||||
feedback
|
migrated from stackoverflow.com Mar 25 '11 at 0:39
This question came from our site for professional and enthusiast programmers.
|
jar or exe are just containers and may contain anything, so yes, you should be careful ... I wouldn't say that it's impossible to remove afterwards, but if you don't trust the publisher run some tests before you touch it ... | |||
|
feedback
|
|
If someone really wanted to do something like this, they could theoretically use the exe to install and start multiple services, all of which check for the existence of all the rest in an endless loop while performing whatever maliciousness they desire. If any of the others are stopped or removed, the remaining would repopulate the one that was missing. These services could do things like prevent the task manager from opening, prevent the services window from opening, or anything else you would need to stop them. You'd have to stop and remove all of them simultaneously. It is very difficult to make them completely uninstallable, but you could easily make it a real headache. | |||
|
feedback
|