Exemple #1
0
 private Core()
 {
     m_Instance       = this;
     m_HostManager    = new HostManager();
     m_NetworkScanner = new NetworkScanner(m_HostManager);
     m_NetworkScanner.Start();
     m_ArpAttack = new ArpAttack(m_HostManager);
     m_ArpAttack.Start();
 }
Exemple #2
0
        private static void PingIp(Object p_Object)
        {
            lock (lockObj)
                s_PendingThread++;
            object[]    l_Params      = p_Object as object[];
            String      l_Ip          = (String)l_Params[0];
            HostManager l_HostManager = (HostManager)l_Params[1];
            PingReply   rep           = new Ping().Send(l_Ip);

            if (rep.Status == IPStatus.Success)
            {
                l_HostManager.AddHost(l_Ip);
            }
            lock (lockObj)
                s_PendingThread--;
        }
Exemple #3
0
 public NetworkScanner(HostManager p_HostManager)
 {
     m_HostManager = p_HostManager;
 }
Exemple #4
0
 public ArpAttack(HostManager p_HostManager)
 {
     m_UpdateThread = new Thread(Run);
     m_HostManager  = p_HostManager;
 }