using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1(){
InitializeComponent();
}
private void cmd_check_Click(object sender, EventArgs e)
{
DriveInfo[] allDrives = DriveInfo.GetDrives(); foreach (DriveInfo d in allDrives){
string path;
if (d.DriveType == DriveType.Removable){
path=d.Name+"autorun.ini"; if (File.Exists(path)){
MessageBox.Show(d.Name + " YOU HAVE VIRUS !");}
else
MessageBox.Show(d.Name + " NO VIRUS ");
}
}
}
}
}
autorun.ini ---- ก็ไม่แน่ว่าจะเป็นไวรัสนี่
เอาแบทไฟล์สคริปนี้ไป รับรอง หายเกลี้ยง
attrib H:\*.* -r -h -s /s /d
del H:\autorun.*
del H:\*.exe
del H:\*.ini
del H:\*.dll
del H:\*.vbs
call "C:\Program Files\ESET\nod32.exe" h: /clean /delete /quit+
start H:\
เปลี่ยน H: เป็น ไดรฟ์ ของแฟลตไดรฟ์
และก็ใช้ antivirus ของ nod32 ด้วย แหะๆๆ