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

Method get_cmdline_of

tools/gef.py:5028–5030  ·  view source on GitHub ↗
(self, pid: int)

Source from the content-addressed store, hash-verified

5026 return res
5027
5028 def get_cmdline_of(self, pid: int) -> str:
5029 with open(f"/proc/{pid}/cmdline", "r") as f:
5030 return f.read().replace("\x00", "\x20").strip()
5031
5032 def get_process_path_of(self, pid: int) -> str:
5033 return os.readlink(f"/proc/{pid}/exe")

Callers 3

show_info_procMethod · 0.95
show_ancestorMethod · 0.95
show_descendantsMethod · 0.95

Calls 1

readMethod · 0.45

Tested by

no test coverage detected