Hide executable symbols from nm command
-
24-06-2021 - |
Question
The nm command lists all symbols in executable. this is good guidance for reverse engineering and crackers. I want to hide them. The gcc maybe has switches for this purpose but I do not use gcc. Is there an approach to hide them directy from binary file?
Thanks.
Solution
You can use the strip command.
But I won't bother that much removing symbols. Very probably, your program might not interest a lot of people (as most programs). And if there is a security issue, it could eventually be found (e.g. by using strace
to understand the behavior) even on stripped binaries.
OTHER TIPS
strip
will "strip" (remove) symbols from a binary.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow