示例#1
0
        private void SearchFpSMTP(List <string> dominios)
        {
            foreach (var domStr in dominios)
            {
                if (CheckToSkip())
                {
                    break;
                }

                var domain   = Program.data.GetDomain(domStr);
                var existsFp = false;

                for (var fpI = 0; fpI < domain.fingerPrinting.Count(); fpI++)
                {
                    var fp = domain.fingerPrinting[fpI];

                    if (fp is SMTP)
                    {
                        existsFp = true;
                    }
                }
                if (existsFp) // do not redo the fingerprinting
                {
                    continue;
                }

                FingerPrinting fprinting = new SMTP(domain.Domain, 25);
                domain.fingerPrinting.Add(fprinting);
                fprinting.GetVersion();
                FingerPrintingEventHandler.AsociateFingerPrinting(fprinting, null);
            }
        }