DTO service class

The data transfer object (DTO) service class will hold the results of each service that is found after a TCP scan. A service will have three criteria:

  • Service port
  • Name
  • Description

We will call this class when using the Nmap results parser, as follows:

class ServiceDTO:
# Class Constructor
def __init__(self, port, name, description):
self.description = description
self.port = port
self.name = name
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.109.141