diff --git a/theHarvester/discovery/dnssearch.py b/theHarvester/discovery/dnssearch.py index b146c7aa..57f6b73a 100644 --- a/theHarvester/discovery/dnssearch.py +++ b/theHarvester/discovery/dnssearch.py @@ -47,6 +47,11 @@ def __init__(self, iprange, verbose=False): self.iprange = iprange self.verbose = verbose + def list(self): + prefix = '.'.join( + self.iprange.split('.')[:-1]) + self.list = [prefix + '.' + str(i) for i in range(256)] + def run(self, ip): if self.verbose: esc = chr(27)