MCPcopy Create free account
hub / github.com/HexHive/NASS / parse_ip_port

Method parse_ip_port

tools/gef.py:5100–5102  ·  view source on GitHub ↗
(self, addr: str)

Source from the content-addressed store, hash-verified

5098 return sockets
5099
5100 def parse_ip_port(self, addr: str) -> Tuple[str, int]:
5101 ip, port = addr.split(":")
5102 return socket.inet_ntoa(struct.pack("<I", int(ip, 16))), int(port, 16)
5103
5104 def show_connections(self) -> None:
5105 # https://github.com/torvalds/linux/blob/v4.7/include/net/tcp_states.h#L16

Callers 1

show_connectionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected