public PersistentNMapResults(NMapToolResults results)
        {
            this.FullOutput = results.FullOutput;

            if (results.Hosts != null)
            {
                this.PersistentHosts = new List <PersistentNMapHost>();

                foreach (NMapHost host in results.Hosts)
                {
                    PersistentNMapHost h = new PersistentNMapHost(host);

                    this.PersistentHosts.Add(h);
                }
            }
        }
Esempio n. 2
0
        public PersistentNMapResults(NMapToolResults results)
        {
            this.FullOutput = results.FullOutput;

            if (results.Hosts != null)
            {
                this.PersistentHosts = new List<PersistentNMapHost>();

                foreach (NMapHost host in results.Hosts)
                {
                    PersistentNMapHost h = new PersistentNMapHost(host);

                    this.PersistentHosts.Add(h);
                }
            }
        }