Solved

Write in EXE-file

Posted on 1997-12-23
3
258 Views
Last Modified: 2010-04-04
Is it possible to write information in the middle of the executive file, which run this program, and then read this information?
0
Comment
Question by:Alexey090397
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
peter_vc earned 50 total points
ID: 1354501
Sure this can be done, but I'm still not convinced that it's a good idea.  The trick is to define a string that serves as a marker.  Fill a string with ZZZ123ZZZ123 or some similar byte pattern.  Then scan the file looking for that sequence and replace it.  You will have to be carefull with the string length depending on if you use a string or a PChar.  When the program is run, it will see the new data as the string.
0
 

Author Comment

by:Alexey090397
ID: 1354502
Thank you, but if you think that it is not a good idea then help me where to I can write(hide)  2 real numbers. Please, show the working example of such program.
0
 
LVL 1

Expert Comment

by:peter_vc
ID: 1354503
Write them to the registry (Win95) or a text file (any platform) and encypt them.  What are you trying to do?  Copy protection?  Registration codes?


0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month10 days, 3 hours left to enroll

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question