From fea3556ede7acf74b309e2aa7235722bbca4563b Mon Sep 17 00:00:00 2001 From: David Mougeolle Date: Mon, 6 Jan 2020 17:33:57 +0100 Subject: [PATCH] List all the IPs in the range 0/24 --- theHarvester/discovery/dnssearch.py | 5 +++++ 1 file changed, 5 insertions(+) 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)