Join Nostr
2024-10-21 00:23:19 UTC
in reply to

Future Sprog on Nostr: There are a lot of fun things in the proc filesystem. That’s a good one. One I ...

There are a lot of fun things in the proc filesystem. That’s a good one.

One I quite like is extracting the environment variables for a running process.

tr '\0' '\n' < /proc/PID/environ

You can search that for API keys and secrets. It is limited to only your own processes but still fun.

I used this recently to figure out why a long running processes was sending logs to the wrong place. Someone had slid another export into its startup script!

#Linux #tech