Exemple #1
0
        public PersistentNMapHost(NMapHost host)
        {
            this.DeviceType      = host.DeviceType;
            this.Hostname        = host.Hostname;
            this.IPAddressv4     = host.IPAddressv4;
            this.IPAddressV6     = host.IPAddressV6;
            this.MAC             = host.MAC;
            this.NetworkDistance = host.NetworkDistance;
            this.OS         = host.OS;
            this.OS_Details = host.OS_Details;

            this.PersistentPorts = new List <PersistentPort>();

            foreach (Port port in host.Ports)
            {
                PersistentPort pport = new PersistentPort(port);

                this.PersistentPorts.Add(pport);
            }
        }
        public PersistentNMapHost(NMapHost host)
        {
            this.DeviceType = host.DeviceType;
            this.Hostname = host.Hostname;
            this.IPAddressv4 = host.IPAddressv4;
            this.IPAddressV6 = host.IPAddressV6;
            this.MAC = host.MAC;
            this.NetworkDistance = host.NetworkDistance;
            this.OS = host.OS;
            this.OS_Details = host.OS_Details;

            this.PersistentPorts = new List<PersistentPort>();

            foreach (Port port in host.Ports)
            {
                PersistentPort pport = new PersistentPort(port);

                this.PersistentPorts.Add(pport);
            }
        }