I have binary executable file compiled from C-source and I know that it uses some of UNIX system environment variables. Unfortunately I have no documentation and decompiling/reverse-engineering is very difficult.
Is there a way to find which env variables the app tries to read in runtime?
I mean, if C's getenv
reads some file to get variable values or does a system call, it is possible. So, can I do it?
strings(1)
might help you to identify the names of the envrionment variables. – Blagovest Buyukliev