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

Method show_fds

tools/gef.py:5073–5087  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5071 return
5072
5073 def show_fds(self) -> None:
5074 pid = gef.session.pid
5075 path = f"/proc/{pid:d}/fd"
5076
5077 info("File Descriptors:")
5078 items = os.listdir(path)
5079 if not items:
5080 gef_print("\tNo FD opened")
5081 return
5082
5083 for fname in items:
5084 fullpath = os.path.join(path, fname)
5085 if os.path.islink(fullpath):
5086 gef_print(f"\t{fullpath} {RIGHT_ARROW} {os.readlink(fullpath)}")
5087 return
5088
5089 def list_sockets(self, pid: int) -> List[int]:
5090 sockets = []

Callers 1

do_invokeMethod · 0.95

Calls 3

infoFunction · 0.85
gef_printFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected