Exemple #1
0
        public void onStartAttack()
        {
            if (Config.IsActive)
            {
                if (InvokeRequired)
                {
                    BeginInvoke(new onStartAttackDelegate(onStartAttack), new object[] { });
                    return;
                } // if (InvokeRequired)

                // Add all system from ARP scan to the list
                cTask.removeAllRecords();
                List <Tuple <String, String, String> > lReachableSystems = cPluginParams.HostApplication.GetAllReachableSystems();
                foreach (Tuple <String, String, String> lTmp in lReachableSystems)
                {
                    try
                    {
                        cTask.addRecord(new SystemRecord(lTmp.Item1, lTmp.Item2, String.Empty, lTmp.Item3, String.Empty, String.Empty));
                    }
                    catch (RecordException)
                    {
                    }
                }
                cPluginParams.HostApplication.PluginSetStatus(this, "green");
            } // if (cIsActiv...
        }
Exemple #2
0
        public void onResetPlugin()
        {
            if (InvokeRequired)
            {
                BeginInvoke(new onResetPluginDelegate(onResetPlugin), new object[] { });
                return;
            } // if (InvokeRequired)

            cTask.removeAllRecords();
        }