mirror of
https://github.com/ChronosX88/PyNesca.git
synced 2024-10-18 06:31:00 +00:00
18 lines
598 B
Python
18 lines
598 B
Python
from abc import ABC, abstractmethod
|
|
from core.communication.CommunicationDictionary import CommunicationDictionary
|
|
|
|
class AbstractScanner(ABC):
|
|
'''The class is used by one thread to scan targets'''
|
|
|
|
@abstractmethod
|
|
def __init__(self, **kwargs):
|
|
'''In this method you can init some
|
|
reusable resources needed for scan'''
|
|
pass
|
|
|
|
@abstractmethod
|
|
def scan_address(self, address) -> CommunicationDictionary:
|
|
'''This method should contain scanning process of given address. All
|
|
items returned will be passed to AbstractStorage and ui'''
|
|
pass
|