mirror of
https://github.com/laramies/theHarvester.git
synced 2024-11-11 09:41:06 +08:00
List all the IPs in the range 0/24
This commit is contained in:
parent
e65207b567
commit
fea3556ede
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue