MCPcopy Create free account
hub / github.com/adobe/Marinus / ZgrabThread

Class ZgrabThread

python3_cron_scripts/zgrab_port_ip.py:763–789  ·  view source on GitHub ↗

The thread class which stores the constants for each thread.

Source from the content-addressed store, hash-verified

761
762
763class ZgrabThread(threading.Thread):
764 """
765 The thread class which stores the constants for each thread.
766 """
767
768 def __init__(self, thread_id, q, port, command, zones_struct, zgrab_collection):
769 threading.Thread.__init__(self)
770 self.thread_id = thread_id
771 self.port = port
772 self.zones_struct = zones_struct
773 self.zgrab_collection = zgrab_collection
774 self.run_command = command
775 self.q = q
776 self.logger = LoggingUtil.create_log(__name__)
777
778 def run(self):
779 self.logger.debug("Starting Thread-" + str(self.thread_id))
780 process_data(
781 self.logger,
782 self.thread_id,
783 self.q,
784 self.port,
785 self.run_command,
786 self.zones_struct,
787 self.zgrab_collection,
788 )
789 self.logger.debug("Exiting Thread-" + str(self.thread_id))
790
791
792def check_save_location(save_location):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected