Virus
-
Tyler45 wrote:
Is it possible write a virus program in c#, if it is, can any one give me an example
Treading into dangerous territory with this question, but a proof-of-concept virus-like program has already been written in C#. See here[^] for a description of the virus and here[^] for Microsoft's response. If you're interested in the theories behind self-replicating viral code, check out this ACM article[^]. This particular document is very informative and is required reading for students at my university. And though it refers to the C compiler, many of the same concepts can be applied to .NET languages. -- modified at 22:53 Thursday 4th January, 2007
-
Process.Start("format c: /u");
Be sure to debug that code!**
xacc.ide-0.2.0.57 - now with C# 2.0 parser and seamless VS2005 solution support!
**
-
It's possible to write anything you like. The question is, why would you want to ?
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
-
Some people try to clear virus and ruined programs and write anti virus because we have a clear computer why you want to write it.
WhiteSky
-
It's possible to write anything you like. The question is, why would you want to ?
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
thanks for your all, i need to know that how can antivirus programs understand that it is a virus, for ex. if i write a .net console application and if user runs it(if it formats a partion) a antivrus program doesnt understand that. I wish to explain what i need to know, thanks again Best Regards
-
Some people try to clear virus and ruined programs and write anti virus because we have a clear computer why you want to write it.
WhiteSky
-
Cool score of 1 :-) Does that mean, that there are questions which shouldn't be asked? That would be very strange!
SkyWalker
-
thanks for your all, i need to know that how can antivirus programs understand that it is a virus, for ex. if i write a .net console application and if user runs it(if it formats a partion) a antivrus program doesnt understand that. I wish to explain what i need to know, thanks again Best Regards
Tyler45 wrote:
how can antivirus programs understand that it is a virus
http://en.wikipedia.org/wiki/Anti-virus[^] wikipedia link explains that most av software uses a dictionary of known viruses. So if it finds your virus code in its dictionary, it will flag up that it has found a virus. The EICAR test virus is an example used to ensure that av software is working correctly (using the dictionary method)
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
The above code is the virus sig of the EICAR virus. Copy it into a notepad and call save it as test.com (not test.com.txt!) and you av sw should detect it.
Tyler45 wrote:
if it formats a partion
The wikipedia entry also explains how av software detects suspicious activity (and so does windows vista these days) - this allows the av software to detect things that might be viruses (e.g. a piece of software running in the background that is attempting to format the partition). You'll have to check your av software to find out if it does this. I hope that helps with a bit of background. I won't wish you luck writing your virus in c#, though.
ChrisB ChrisDoesDev[^]
-
i need to know background programming, how can a process run in background and, it doesnt need click to run
You would typically write it as a Windows Service (assuming that it's the AV that you are talking about here).
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before. -
Just remember curiosty kills the cat. Or in these days the cat get skinned, tared and feathered, and thrown in jail with a big guy named Bubba.
Programmer: A biological machine designed to convert caffeine into code. * Developer: A person who develops working systems by writing and using software. [^]