MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / has_ip

Method has_ip

pager_lib/nmap/nmap.py:1108–1120  ·  view source on GitHub ↗

:param port: (int) ip port :returns: True if ip port has info, False otherwise

(self, port)

Source from the content-addressed store, hash-verified

1106 return []
1107
1108 def has_ip(self, port):
1109 """
1110 :param port: (int) ip port
1111 :returns: True if ip port has info, False otherwise
1112
1113 """
1114 assert (
1115 type(port) is int
1116 ), f"Wrong type for [port], should be an int [was {type(port)}]"
1117
1118 if "ip" in list(self.keys()) and port in list(self["ip"].keys()):
1119 return True
1120 return False
1121
1122 def ip(self, port):
1123 """

Callers

nothing calls this directly

Calls 1

keysMethod · 0.45

Tested by

no test coverage detected