Skip to content

Comment on Endangered Technique: Using Environment Variables to Find Escaped Processes

Comments

What about changing the process title?

Eg, https://github.com/dvarrazzo/py-setproctitle .

The setproctitle module allows a process to change its title (as displayed by system tools such as ps, top or MacOS Activity Monitor).
Changing the title is mostly useful in multi-process systems, for example when a master process is forked: changing the children's title allows to identify the task each process is busy with. ...
Note that on Windows there is no way to change the process string: what the module does is to create a Named Object whose value can be read using a tool such as Process Explorer
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.