#!/usr/bin/env python3
from datetime import datetime

from dgacollection.Malware import Malware

"""Super class for all malwares implementing DGAs.

"""
class DGAMalware(Malware):
  """
  The default value for a malware implementing a DGA is 1 day.
  """
  @classmethod
  def domainsLifetime(self):
    return 24 * 3600

  @classmethod
  def domainsFor(self, date):
    return []

  @classmethod
  def domains(self):
    return self.domainsFor(datetime.now())

  @classmethod
  def couldUseDomain(self, domain):
    return False
