Ge'Radt
นาย จิรัฎฐ์ (ทินวัฒน์) พงษ์ทองเมือง

บันทึก C#.NET MyCheckVirusProject


C#.NET

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 ");

 

          }

}

 

}

}

}

คำสำคัญ (Tags): #c.net
หมายเลขบันทึก: 120605เขียนเมื่อ 19 สิงหาคม 2007 12:15 น. ()แก้ไขเมื่อ 18 มิถุนายน 2012 13:19 น. ()สัญญาอนุญาต: จำนวนที่อ่านจำนวนที่อ่าน:


ความเห็น (1)

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 ด้วย แหะๆๆ

พบปัญหาการใช้งานกรุณาแจ้ง LINE ID @gotoknow
ClassStart
ระบบจัดการการเรียนการสอนผ่านอินเทอร์เน็ต
ทั้งเว็บทั้งแอปใช้งานฟรี
ClassStart Books
โครงการหนังสือจากคลาสสตาร์ท