Answer the question
In order to leave comments, you need to log in
How to get variables from compiled executable?
Hello Dear Ladies and Gentlemen.
The essence of the question is how to get all the declared variables from the compiled executable?
That is, for example, there is a code.
#define as 340
void main(){
int a=245;
int b=0x34;
cin >> b;
if ( b > a )
{
cout << "b>a";
}
else
{
cout << "b<a";
}
_getch();
}
Answer the question
In order to leave comments, you need to log in
well, if this code was compiled in the release and with optimizations, then ... no way.
For example, in the above code, the compiler will be able to calculate and fulfill all the conditions at the time of compilation, and you will not have any variables at all, only the output.
Reverse engineering. It's reverse engineering. The topic is extensive, but this is what you are interested in.
That is, there is no table where all the variables are listed in the exe file, numbers are something like that.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question