I make a project in Python3 for Raspberry Pi 4 I use few cli applications that. In ps/htop/top I wanted to hide the command line used on it due to some security concerns. I tried libprocesshider and its hiding entire process from the process table. And no /proc/ generated. This seems much better for our client.
But I couldn't check IsProcessRuning() to kill the previous instance and start a new one. Is there any other clue to list the running process without /proc/ ?
Similar question is found here, but no proper answer yet. List running processes without procfs
libprocesshider https://github.com/gianlucaborello/libprocesshider/blob/master/processhider.c https://sysdig.com/blog/hiding-linux-processes-for-fun-and-profit/
This tip helped me with ctypes in python. Thanks again...
– gaamaa Mar 14 '22 at 12:11