Example #1
0
 def get_pan_analyse(self, domain):
     for i in range(MAX_TRY_COUNT):
         if self.pan_analysis != [] and self.pan_analysis != [[], []]:
             break
         self.pan_analysis = get_analysis_from_dns(random.choice(DNS_LIST), '*.{0}'.format(domain))
         file_handle = open('{0}/output/{1}.txt'.format(BASE_DIR, self.main_domain), 'a')
         file_handle.write('{0}\t{1}\t{2}\n'.
                           format('*.{0}'.format(domain), self.pan_analysis[0], self.pan_analysis[1]))
         file_handle.close()
Example #2
0
 def get_pan_analyse(self, domain):
     for i in range(MAX_TRY_COUNT):
         if self.pan_analysis != [] and self.pan_analysis != [[], []]:
             break
         self.pan_analysis = get_analysis_from_dns(random.choice(DNS_LIST),
                                                   '*.{0}'.format(domain))
         file_handle = open(
             '{0}/output/{1}.txt'.format(BASE_DIR, self.main_domain), 'a')
         file_handle.write('{0}\t{1}\t{2}\n'.format('*.{0}'.format(domain),
                                                    self.pan_analysis[0],
                                                    self.pan_analysis[1]))
         file_handle.close()
Example #3
0
 def get_analysis(self, sub_domain):
     if sub_domain == '' or sub_domain.startswith('.'):
         return
     sub_domain = '{0}.{1}'.format(sub_domain, self.current_domain)
     analysis = get_analysis_from_dns(random.choice(DNS_LIST), sub_domain)
     if not analysis[1] or analysis[1] == self.pan_analysis[1]:
         return
     if analysis[0] != [] and analysis[0] == self.pan_analysis[0]:
         return
     file_handle = open('{0}/output/{1}.txt'.format(BASE_DIR, self.main_domain), 'a')
     print('[+] <Found> {0}\t{1}'.format(sub_domain, str(analysis[1])))
     if self.depth < 0:
         self.domain_queue.put(sub_domain)  # Recursive Detect
     file_handle.write('{0}\t{1}\t{2}\n'.format(sub_domain, analysis[0], analysis[1]))
     file_handle.close()
Example #4
0
 def get_analysis(self, sub_domain):
     if sub_domain == '' or sub_domain.startswith('.'):
         return
     sub_domain = '{0}.{1}'.format(sub_domain, self.current_domain)
     analysis = get_analysis_from_dns(random.choice(DNS_LIST), sub_domain)
     if not analysis[1] or analysis[1] == self.pan_analysis[1]:
         return
     if analysis[0] != [] and analysis[0] == self.pan_analysis[0]:
         return
     file_handle = open(
         '{0}/output/{1}.txt'.format(BASE_DIR, self.main_domain), 'a')
     print('[+] <Found> {0}\t{1}'.format(sub_domain, str(analysis[1])))
     if self.depth < 0:
         self.domain_queue.put(sub_domain)  # Recursive Detect
     file_handle.write('{0}\t{1}\t{2}\n'.format(sub_domain, analysis[0],
                                                analysis[1]))
     file_handle.close()