mirror of
https://github.com/ChronosX88/PyNesca.git
synced 2024-11-25 06:12:17 +00:00
14 lines
532 B
Python
14 lines
532 B
Python
from core.prototypes.AbstractAddressGenerator import AbstractAddressGenerator
|
|
from core.communication.CommunicationDictionary import CommunicationDictionary
|
|
|
|
class PlugAddressGenerator(AbstractAddressGenerator):
|
|
|
|
def __init__(self, all_addresses, ports, convert_table):
|
|
self.res = CommunicationDictionary(convert_table)
|
|
self.res["address_list"] = all_addresses
|
|
self.res["ports"] = ports
|
|
def get_next_address(self, previous_address):
|
|
res = self.res
|
|
self.res = None
|
|
return res
|