コード例 #1
0
        public static void InfectedByMany(string infections, string filename)
        {
            if (SettingsManager.Silence)
            {
                Quarantine.Store(filename, infections);
            }
            else
            {
                Virus vi = new Virus(infections, filename, AVEngine.NothingScanner);

                InfectionFrm frm = new InfectionFrm(vi, true);
                frm.ShowDialog();
            }
        }
コード例 #2
0
 public static void Infected(Virus infection)
 {
     KavprotVoice.SpeakAsync("This file was infected by " + infection.Name);
     AVEngine.EventsManager.CallVirusDetected();
     KavprotRemoteControl.SendPacket(SettingsManager.ApplicationAdress, SettingsManager.MobileAdress, KavprotRemoteControl.BuildARCPacket("SHOWTEXT", "ALDATA", SettingsManager.ApplicationAdress, "0005", Encoding.UTF8.GetBytes("File name : " + infection.Location + " \r\n Infection : " + infection.Name)));
     KavprotManager.LastThreat = infection.Name;
     if (SettingsManager.Silence)
     {
         if (infection.Scanner.Name == "HASH-TYPE-SCANNER")
         {
             Alert.Attack("Virus Detected " + infection.Name, "Kavprot smart security detected a virus by the Hash scan system (" + infection.Location + "). sometimes false-positive alert can happen by any antivirus software for more informations visit : http://www.arsslensoft.tk/AVL/FPAlert.html", ToolTipIcon.Warning, true);
         }
         else
         {
             Quarantine.Store(infection.Location, infection.Name);
         }
     }
     else
     {
         if (infection.Name != "KavProtSensor.UnPackableArchive")
         {
             if (SettingsManager.Silence)
             {
                 if (infection.Location.Contains(Environment.SystemDirectory))
                 {
                     AVEngine.AlertVirus();
                     InfectionFrm inf = new InfectionFrm(infection);
                     inf.ShowDialog();
                 }
                 else
                 {
                     Quarantine.Store(infection.Location, infection.Name);
                 }
             }
             else
             {
                 AVEngine.AlertVirus();
                 InfectionFrm inf = new InfectionFrm(infection);
                 inf.ShowDialog();
             }
         }
     }
 }
コード例 #3
0
 public VirusItem(Virus vi)
 {
     _vir      = vi;
     this.Text = vi.Location + " " + vi.Name;
     this.Name = Security.GetMd5Hashofstring(vi.Location);
 }