rajeemcariazo
rajeemcariazo

Reputation: 2524

Write to an EXE in Delphi

I am planning to store the license information of my app to the app itself. Is it possible to write to an EXE in Delphi without affecting its logical function? If yes, How? My colleague says that there are only specific parts of the exe that is writable. Is this true?

Upvotes: 2

Views: 1231

Answers (4)

Arnaud Bouchez
Arnaud Bouchez

Reputation: 43023

Take a look at http://sourceforge.net/projects/tponguard/

You'll find what you want here.

Upvotes: 2

Zach Saw
Zach Saw

Reputation: 4368

Why don't you store the license as a resource in your Delphi app rather than hack the EXE?

Example here: http://delphi.about.com/od/objectpascalide/a/embed_resources.htm

Upvotes: 6

user471679
user471679

Reputation:

Create your license variable with start and stop tags. I don't know anything about Delphi programming but in psuedocode it would look like

var license = "$$$$"+"LICENSE DATA"+"$$$$";

You can open the executable in a hex editor and search for the $$$$ part and edit it directly or you can write a program that will overwrite the bit between the tags.

Upvotes: 0

Related Questions