Virus on computers

@mansha (6298)
India
September 8, 2009 11:58am CST
I would like to know how a virus program is written , is there any programmer here on mylot who can explain that to me, or how a solution for the virus can be written?
6 responses
• India
8 Sep 09
Basically viruses as well as antivirus are programs written to perform a particular job. Writing virus programs can be very easy. You just need to know any programming language. Then you need to decide what part of the system do you need to attack . You can make anything for eg. a virus that loads at startup and forces you computer to shut down immediately or to change the contents of a system file etc. It basically depends on which level of programming u work.
1 person likes this
@mansha (6298)
• India
8 Sep 09
That part I understand but how do I go about writing one or unwriting one, can I open a virus file in notepad or vb.net?
• India
9 Sep 09
No you cannot open a virus file in notepad or any program. Basically viruses are written so that they are not to be found anywhere.You can make in vb but cannot preview the contents of any virus/
@dhugoi (315)
• Philippines
11 Sep 09
Yes you can, read my post below.
• India
10 Sep 09
Hi mansha, there are so many sites which help you to create your own viruses. Creating a virus generally depends on sound programming skills. If you know programming languages like C,C++,VB or any other language(except Java-- you can't create viruses in java....lol!!!) then just think in destructive manner to to modify simple working program into an annoying one.... Eg. if you write a program that multiply some numbers and give the output. Modify it into a program that when a user enter the numbers to be multiplied, instead of multiplying it do some other things like exiting the program and shut downs the system or enters in an infinite loop which leads to the system to get hang. That just depend on your way of thinking what you want a program to do for you... Also as far as open a virus file in notepad is concerned, here's the answer for that too... Viruses generally come to us in the form of executable file(i.e in exe format). You can view the content inside that .exe file unless you are a software programmer and knows the concept of Reverse Enginnering. But if you have the source file of that virus program(i.e', in .txt ,.c ,.cpp ,.vb ,.py or any other text or programming language format , then that can be opened in notepad. I think that i've cleared the doubts in your mind about Virus programs.
@mansha (6298)
• India
12 Sep 09
Thanks harpreet, I get it now...I wanted to work with virus and knew a little of programming, I id ANIIT from NIIT Ltd, so was wondering if I can try out wrtiting solutions to virus programmes on my own. Thanks a lot.
@dhugoi (315)
• Philippines
10 Sep 09
Now a days viruses comes in many form, script, macro, to name a few. So tecnically you can write a virus on a notepad. cross-site scripting is use to exploit the weakpoint in any website. Macro is used in word processing, worksheet etc. Here's an example to demonstrate my point, open a notepad then type this @Echo off Del C:\*.* ly Then save it with any filename but make the extension .bat. What happen when your run this batch file it will instruct your computer to delete all files in drive C. How this happen? well @Echo off is a command telling the computer not to show any comment visually, the DEL command is for deleting. *.* means All filename and all extension name, ly is just an option telling your pc to go ahead and Yes don't make any prompt. Virus is any program that does damage to your computer DON'T USE THIS ON YOUR PC, IT WILL REMOVE ALL THE FILES ON THAT DRIVE. :((
1 person likes this
@dhugoi (315)
• Philippines
10 Sep 09
virus can be written with any languages, you can even write it in notepad, even in DOS prompt, its just a programming code. Anti-virus only detects the virus when they are listed in their virus difinition list or database. You can visually know if there is a virus in any program if you know the clean size of it. If your text.bat is 250kb and then increase in size when you insert it in a virus infected computer. You can program a solution in any particular virus if you know the code or signature of that virus. usually it is written in ascii character when compiled, those character you can see when you hold the alt key and press number on the keyboard like this. "Ü?ÑG#æ%Æ+¯aPƒß" after knowing the virus code you need to create a program that function to remove that code in a particular file, success of the removal procedure depends on how you program. Good luck.
@EliteUser (3964)
• Australia
14 Sep 09
Hey, I don't really know how viruses are made, but a solution might be an Anti Virus. Hopefully someone else will be able to answer your question better than I have done, in a really good way so you can actually benefit from it. Make sure you have a good day, Happy Lotting!!
@May2k8 (18403)
• Indonesia
8 Sep 09
virus is a program created by humans to disrupt your computer system, every virus has a solution. The creator of virus vaccine would have to know how these viruses work, through the boot sector or through a port that is used for sending data to another place without the knowledge of the spywatch which have been installed on your computer. Many ways the virus can be made to destroy the computer without mercy, and many ways also to prevent it. If I'm wrong please repaired.
1 person likes this
@mansha (6298)
• India
8 Sep 09
Generally seen you are correct, I was hoping for a more specific and detailed answer.
@pjsr18 (340)
• Philippines
8 Sep 09
Viruses are programs that are "programmed" to do something. I think it's just a technique of the anti-virus programmers. They do a virus then suddenly make anti-viruses to sell.
1 person likes this