예제 #1
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();
             }
         }
     }
 }
예제 #2
0
 private void fullscanlist_ItemAdded(object sender, EventArgs e)
 {
     fullscanlist.Refresh();
  AVEngine.AlertVirus();
 }