🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11627

Re: add config data to end of file

#11627
From: Martin Moeller
Date: Mon, 26 Jan 2004 15:03
24 lines
2006 bytes
"borland" <rogersmail@ntlworld.com> ha scritto nel messaggio
news:4011c9b5@newsgroups.borland.com...

> He wants these settings and images
> embeded into the standalone exe file,

I've done something similiar for security in a very remote past. As a matter
of fact, you can not open your *own* exe, but you can open any other one.

- Include in your exe a global array large enough for your data & initialize
the first bytes with a unique string.
- Write a second program as a short utility, which opens the 'real' exe as a
bin file and searches that particular string.

You know the array size: that's the area you can overwrite without problems.

My utility had also a version related ID and with a proper comand line
argument would just display the adress. Next step was to set the found
adress into the utility's source and recompile in order to allow also
multiple modifications of the same exe, i.e. those not having the original
search string any more.

Rgds, Martin
Technical Details
Message-ID: <40152c54@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4011c9b5@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,9f584b16be099db2
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-26 07:10:52 PST
Reply-To: "Martin Moeller" <martin.moeller@moema.it>
From: "Martin Moeller" <martin.moeller@moema.it>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4011c9b5@newsgroups.borland.com>
Subject: Re: add config data to end of file
Date: Mon, 26 Jan 2004 16:03:44 +0100
Lines: 26
Organization: Moe.Ma Italiana Srl
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 80.104.32.36
Message-ID: <40152c54@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1075129428 80.104.32.36 (26 Jan 2004 07:03:48 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail