Is it possible to extract constants and other predefined values from binary executables?
问题 Let's say we have this program here class Message{ public static SUPER_SECRET_STRING = "bar"; public static void Main(){ string SECRET = "foo"; Console.Write(sha(SUPER_SECRET_STRING) + "" + sha(SECRET)); } } Now, after building this program, is there any way using a hex editor or some other utility to extract the values "foo" and "bar" from the compiled binary file? Also let's assume that memory editors are not allowed. Is this applicable to all compiled languages like C++? What about ones