NmapService represents a nmap scanned service. Its id() is comprised of the protocol and the port. Depending on the scanning options, some additional details might be available or not. Like banner or extra datas from NSE (nmap scripts).
Method | __eq__ |
Compares two NmapService objects to see if they are the same or if one of them changed. |
Method | __hash__ |
Undocumented |
Method | __init__ |
Constructor |
Method | __ne__ |
Compares two NmapService objects to see if they are different if one of them changed. |
Method | __repr__ |
Undocumented |
Method | changed |
Checks if a NmapService is different from another. |
Method | diff |
Calls NmapDiff to check the difference between self and another NmapService object. |
Method | get |
Return a python dict representation of the NmapService object. |
Method | open |
Tells if the port was open or not |
Property | banner |
Accessor for the service's banner. Only available if the nmap option -sV or similar was used. |
Property | banner |
Accessor for the service's banner. Only available if the nmap option -sV or similar was used. |
Property | cpelist |
Accessor for list of CPE for this particular service |
Property | id |
Accessor for the id() of the NmapService. |
Property | owner |
Accessor for service owner if available |
Property | port |
Accessor for port. |
Property | protocol |
Accessor for protocol |
Property | reason |
Accessor for service's state reason (syn-ack, filtered,...) |
Property | reason |
Accessor for service's state reason ip |
Property | reason |
Accessor for service's state reason ttl |
Property | scripts |
Gives a python list of the nse scripts results. |
Property | service |
Accessor for service name. |
Property | service |
Accessor for service dictionary. |
Property | servicefp |
Accessor for the service's fingerprint if the nmap option -sV or -A is used |
Property | state |
Accessor for service's state (open, filtered, closed,...) |
Property | tunnel |
Accessor for the service's tunnel type if applicable and available from scan results |
Instance Variable | _cpelist |
Undocumented |
Instance Variable | _owner |
Undocumented |
Instance Variable | _portid |
Undocumented |
Instance Variable | _protocol |
Undocumented |
Instance Variable | _reason |
Undocumented |
Instance Variable | _reason |
Undocumented |
Instance Variable | _reason |
Undocumented |
Instance Variable | _service |
Undocumented |
Instance Variable | _service |
Undocumented |
Instance Variable | _servicefp |
Undocumented |
Instance Variable | _state |
Undocumented |
Instance Variable | _tunnel |
Undocumented |
Compares two NmapService objects to see if they are the same or if one of them changed. :param other: NmapService :return: boolean
Constructor :param portid: port number :type portid: string :param protocol: protocol of port scanned (tcp, udp) :type protocol: string :param state: python dict describing the service status :type state: python dict :param service: python dict describing the service name and banner :type service: python dict :param service_extras: additional info about the tested service like scripts' data
Compares two NmapService objects to see if they are different if one of them changed. :param other: NmapService :return: boolean
Calls NmapDiff to check the difference between self and another NmapService object. Will return a NmapDiff object. This objects return python set() of keys describing the elements which have changed, were added, removed or kept unchanged. :return: NmapDiff object
Return a python dict representation of the NmapService object. This is used to diff() NmapService objects via NmapDiff. :return: dict
Accessor for the service's banner. Only available if the nmap option -sV or similar was used. :return: string
Accessor for the service's banner. Only available if the nmap option -sV or similar was used. :return: dictionary
Accessor for the id() of the NmapService. This is used for diff()ing NmapService object via NmapDiff. :return: tuple
Accessor for service's state reason (syn-ack, filtered,...) :return: string or empty if not applicable
Gives a python list of the nse scripts results. The dict key is the name (id) of the nse script and the value is the output of the script. :return: dict
Accessor for the service's fingerprint if the nmap option -sV or -A is used :return: string if available