Re: c printf/variables content visible in compiled binary. How to hide that ?
- From: Logan Shaw <lshaw-usenet@xxxxxxxxxxxxx>
- Date: Thu, 29 Nov 2007 09:05:34 -0600
Benoit Lefebvre wrote:
For this part I think I'll go with base64 or whatever because rot13
does not include others chars than [A-Za-z]+
base64 is going to make it MORE likely the data will show up in the
output of 'strings'. It will make it entirely into printable characters.
If you really want to make the data not show up in the output of
'strings', do some sort of transformation that converts it all into
non-printable characters, or that inserts a non-printable character
periodically (since 'strings' looks for sequences of consecutive
printable characters). One possible way to do this, if you are
already starting with a string of printable characters (probably
hexadecimal numbers) would be to add 128 to every other number.
Then store this as an array of unsigned characters. If you start
with all ASCII characters (which are by definition in the range
0-127), you will then have an output that has no two consecutive
ASCII characters. You can reverse this transformation by ANDing
with 0x7f. Of course, this assumes the top-most bit was meaningless
to start with for every character. If that's not true, it would
trash your data.
Anyone got a better idea?
At the beginning I was thinking maybe there is a compiler flag that
would do the job.. looks like no.. heh
There are object file obfuscators out there for various languages.
I know that they are avaialble for C# and for Java. I don't know
of any for C though. But in principle, it could happen.
- Logan
.
- Follow-Ups:
- Re: c printf/variables content visible in compiled binary. How to hide that ?
- From: Henry Townsend
- Re: c printf/variables content visible in compiled binary. How to hide that ?
- References:
- c printf/variables content visible in compiled binary. How to hide that ?
- From: Benoit Lefebvre
- Re: c printf/variables content visible in compiled binary. How to hide that ?
- From: Roger Leigh
- Re: c printf/variables content visible in compiled binary. How to hide that ?
- From: Benoit Lefebvre
- c printf/variables content visible in compiled binary. How to hide that ?
- Prev by Date: Re: c printf/variables content visible in compiled binary. How to hide that ?
- Next by Date: Re: c printf/variables content visible in compiled binary. How to hide that ?
- Previous by thread: Re: c printf/variables content visible in compiled binary. How to hide that ?
- Next by thread: Re: c printf/variables content visible in compiled binary. How to hide that ?
- Index(es):
Relevant Pages
|
|