Add is_in_range as abstract method

This commit is contained in:
Itay Mizeretz 2018-02-26 17:35:32 +02:00
parent 4730480db9
commit 816be5191b
1 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,10 @@ class NetworkRange(object):
for x in base_range:
yield VictimHost(self._number_to_ip(self._base_address + x))
@abstractmethod
def is_in_range(self, ip_address):
raise NotImplementedError()
@abstractmethod
def _get_range(self):
raise NotImplementedError()