Exemplo n.º 1
0
        public void CreateCertResponseDumps(string domain)
        {
            DnsBuffer buff = new DnsBuffer(DnsStandard.MaxUdpMessageLength * 2);

            m_client.Resolve(DnsRequest.CreateCERT(domain)).Serialize(buff);
            byte[] bytes = buff.CreateReader().ReadBytes();
            string path  = Path.Combine(DnsResponsePath, string.Format("cert.{0}.bin", domain)).Replace("www.", "");

            Console.WriteLine("Creating {0}", path);

            using (FileStream s = new FileStream(path, FileMode.OpenOrCreate))
            {
                s.Write(bytes
                        , 0
                        , bytes.Length);
                s.Close();
            }
        }
Exemplo n.º 2
0
 public void TestCert(string domain)
 {
     Resolve(DnsRequest.CreateCERT(domain));
 }