Exemplo n.º 1
0
        public override string ToString()
        {
            string info = "";

            info += "Date = " + Date.ToString();
            info += "\nip = " + IP_Address.ToString();
            info += "\nAttacked Ports = " + string.Join(",", AttackedPorts);
            info += "\nCountry = " + Country;
            if (Attacks != null)
            {
                info += "\nAttacks = " + string.Join(",", Attacks);
            }
            info += "\nNetwork Distance = " + NetworkDistance.ToString();
            info += "\nOperation System = " + OS;
            if (OpenPorts != null)
            {
                info += "\nOpen Ports = " + string.Join(",", OpenPorts);
            }
            if (AttacksPeriods != null)
            {
                info += "\nTime Spans = " + string.Join(",", AttacksPeriods);
            }

            return(info);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Creates the connection to the RFID Reader
        /// </summary>
        /// <returns>PortHandle -- Success or failure of the connection</returns>
        public int OpenConnection()
        {
            StaticClassReaderB.OpenNetPort(Port, IP_Address.ToString(), ref ComAddrr, ref PortHandle);

            return(PortHandle);
        }