def get_domain(self):
date = self.configuration.get("date", datetime.today())
seed = self.configuration.get("seed")
minSeed = self.configuration.get("min_seed")
maxSeed = self.configuration.get("max_seed")
if minSeed and maxSeed:
minSeed = int(minSeed)
maxSeed = int(maxSeed)
elif seed:
minSeed = maxSeed = int(seed)
else:
log.error("Seed is missing from config")
sys.exit()
if isinstance(date, str):
date = datetime.strptime(date, "%Y-%m-%d")
seed = minSeed
while seed <= maxSeed:
for pos in range(8):
yield self._lockyDGA(pos, seed, date)
seed += 1
评论列表
文章目录