DNS Finder - Core Algorithm

Watcher.dns_finder.core.check_dnstwist(dns_monitored)

Runs dnstwist.

Parameters:

dns_monitored – DnsMonitored Object.

Returns:

Watcher.dns_finder.core.in_dns_monitored(domain)

Check if domain is a subdomain of one domain of the DnsMonitored list.

Parameters:

domain – Domain to search (Str).

Return type:

bool

Watcher.dns_finder.core.main_certificate_transparency()

Launch CertStream scan.

Watcher.dns_finder.core.main_dns_twist()

Launch dnstwist algorithm.

Watcher.dns_finder.core.print_callback(message, context)

Runs CertStream scan.

Parameters:
  • message – event from CertStream.

  • context – parameter from CertStream.

Watcher.dns_finder.core.send_email(alert)

Send e-mail alert.

Parameters:

alert – Alert Object.

Watcher.dns_finder.core.send_email_cert_transparency(alert)

Send e-mail alert.

Parameters:

alert – Alert Object.

Watcher.dns_finder.core.send_group_email(dns_monitored, alerts_number)

Send group e-mail for a specific dns_monitored.

Parameters:
  • dns_monitored – DnsMonitored Object.

  • alerts_number – Number of alerts.

Watcher.dns_finder.core.start_scheduler()
Launch multiple planning tasks in background:
  • Fire main_dns_twist from Monday to Sunday: every 2 hours.

  • Fire main_certificate_transparency from Monday to Sunday: every hour.