Creating Barriers to Reverse Engineering

C

cppaddict

Hi,

I'm trying to create a partially functional DLL written in C++. What
I would like to do is limit the number of certain method calls using a
static counter:

int someMethod() {
static numberOfCalls = 0;
numberOfCalls++;
if (numberOfCalls > 50)
//throw error or return default value
//do other stuff
}

I've been told that this sort of thing can be easy to reverse
engineer. How could I make it more difficult? By creating the check
as a macro and putting it in multiple places in the code? Are there
any other C++ specific language constructs I should use to make the
reverse engineering more difficult? If I do them, how difficult will
it be?

Thanks for any help,
cpp
 
S

Siemel Naran

cppaddict said:
I'm trying to create a partially functional DLL written in C++. What
I would like to do is limit the number of certain method calls using a
static counter:

My answer is off-topic, but executable encryption software might help. For
example, check out Armadillo or SoftwarePassport at
http://siliconrealms.com/index.shtml
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top