Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
You are watching: What language are viruses written in
I have always been fascinated by computer viruses. For years I have tired to learn about them, but due to their nature people are unwilling to give many details.
For what it is worth I”m not a hacker and am not trying to build a virus.
If anyone is willing to answer this question I want to know what makes a virus a virus and how they are different from spyware.
How can they install themselves onto a computer without you noticing?
And how do worms work? How can a program replicate and move on its own? Does it contain its source code within it? And does it interface with other programs or just assess the hardware directly to spread ?
EDIT: What language would they be written in? Would you use assembly/C++ types of languages or create them as scripts in lua?
Improve this question
edited Oct 18 “15 at 23:25
25311 gold badge55 silver badges2323 bronze badges
asked Aug 11 “11 at 11:50
2,34655 gold badges3131 silver badges5454 bronze badges
Add a comment |
1 Answer 1
Active Oldest Votes
Well, a worm is simply a self-replicating piece of software. Imagine a program that copies its executeable over some link to another computer and launches it there. That”s not that much magic.
A virus is simply a worm which infects other executeables, i.e. it does not replicate its own image, but it “backpacks” it to a different application”s image and uses that application”s execution flow to get initiated.
The user does not notice anything if there are no side-effects, and no UI interaction.If the user is a technically more competent than the average end-user, this is very hard to achieve.
Some malwares host the target system in a virtual machine so you as the user have a hard time to see anything suspicious as long as you don”t figure you look at a virtual machine. Like Neo, awaking from the Matrix.
Spyware has similar requirements, but different goals. While a virus, and a worm, usually spreads around, either for no reason or to drop some kind of payload at some point, spyware wants to either “phone home” or open the target system so it can be attacked, i.e. inspected, easier, usually in order to get hold of a victim”s data that is secret, personal, or otherwise interesting.
Hope this quick answer helps a bit. You can google more details easily at bing 🙂