Ejemplo n.º 1
0
        public static Findings RunPassivePlugin(PassivePlugin P, Session Irse)
        {
            Findings Results = new Findings();

            P.Check(Irse, Results, false);
            foreach (Finding PR in Results.GetAll())
            {
                PR.Plugin = P.Name;
                PR.Report();
            }
            return(Results);
        }
Ejemplo n.º 2
0
        public static Findings RunPassivePlugin(PassivePlugin P, Session Irse)
        {
            Findings Results = new Findings();

            P.Check(Irse, Results, false);
            foreach (Finding F in Results.GetAll())
            {
                F.FinderName = P.Name;
                F.FinderType = "PassivePlugin";

                F.Report();
            }
            return(Results);
        }
Ejemplo n.º 3
0
 bool DoPassivePluginTestOnCurrentIndex(int LogId, Session Sess)
 {
     foreach (string PluginName in this.PassivePluginsToRun)
     {
         PassivePlugin P = PassivePlugin.Get(PluginName);
         if (P.WorksOn == PluginWorksOn.Response && Sess.Response == null) continue;
         try
         {
             ShowStatus(string.Format("Testing Log ID {0} with plugin - {1}", LogId, PluginName));
             Findings CheckResults = new Findings();
             P.Check(Sess, CheckResults, true);
             foreach (Finding F in CheckResults.GetAll())
             {
                 foreach (Trigger T in F.Triggers.GetTriggers())
                 {
                     //To save memory
                     T.Request = null;
                     T.Response = null;
                 }
             }
             if (CheckResults.GetAll().Count > 0)
             {
                 lock (AllFindings)
                 {
                     if (!AllFindings.ContainsKey(LogId)) AllFindings[LogId] = new Findings();
                     foreach (Finding F in CheckResults.GetAll())
                     {
                         FindingsIdCounter++;
                         F.Id = FindingsIdCounter;
                         F.Plugin = PluginName;
                         AllFindings[LogId].Add(F);
                     }
                 }
             }
         }
         catch(Exception Exp)
         {
             IronException.Report(string.Format("Error running Passive Plugin '{0}' on {1} log with id {2}", PluginName, this.LogSource, LogId), Exp);
         }
     }
     if (AllFindings.ContainsKey(LogId))
         AddPassivePluginRowInfo(LogId);
     return true;
 }
Ejemplo n.º 4
0
 public static Findings RunPassivePlugin(PassivePlugin P, Session Irse)
 {
     Findings Results = new Findings();
     P.Check(Irse, Results, false);
     foreach (Finding PR in Results.GetAll())
     {
         PR.Plugin = P.Name;
         PR.Report();
     }
     return Results;
 }
Ejemplo n.º 5
0
 public virtual void Check(Session IrSe, Findings Results, bool ReportDuplicates)
 {
 }
Ejemplo n.º 6
0
        public static Findings RunPassivePlugin(PassivePlugin P, Session Irse)
        {
            Findings Results = new Findings();
            P.Check(Irse, Results, false);
            foreach (Finding F in Results.GetAll())
            {
                F.FinderName = P.Name;
                F.FinderType = "PassivePlugin";

                F.Report();
            }
            return Results;
        }
Ejemplo n.º 7
0
 public virtual void Check(Session IrSe, Findings Results, bool ReportDuplicates)
 {
 }