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

Method get_processes

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

Source from the content-addressed store, hash-verified

6878 return None
6879
6880 def get_processes(self) -> Generator[Dict[str, str], None, None]:
6881 output = gef_execute_external(self["ps_command"].split(), True)
6882 names = [x.lower().replace("%", "") for x in output[0].split()]
6883
6884 for line in output[1:]:
6885 fields = line.split()
6886 t = {}
6887
6888 for i, name in enumerate(names):
6889 if i == len(names) - 1:
6890 t[name] = " ".join(fields[i:])
6891 else:
6892 t[name] = fields[i]
6893
6894 yield t
6895
6896 return
6897
6898
6899@register

Callers 1

do_invokeMethod · 0.95

Calls 2

gef_execute_externalFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected