Unix Programming - Re: c printf/variables content visible in compiled binary. How to

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > November 2007 > Re: c printf/variables content visible in compiled binary. How to





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: c printf/variables content visible in compiled binary. How to
Benoit Lefebvre

2007-11-29, 1:30 pm

On Nov 28, 5:45 pm, Roger Leigh <rle...@whinlatter.ukfsn.org> wrote:
> Benoit Lefebvre <benoit.lefeb...@gmail.com> writes:
>
>
>
> Of course, depending on how much effort you want to put into it.
> But, why?
>
> Regards,
> Roger
>
> --
> .''`. Roger Leigh
> : :' : Debian GNU/Linux http://people.debian.org/~rleigh/
> `. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/
> `- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
>
> application_pgp-signature_part
> 1KDownload


The original question was not about _why_ I want to do it but _how_ I
want to do it.

For the "why" part, This user already have a SSL key that require a
Passphrase to do remote commands manually.
This program will be called by the user's crontab and can't handle the
"Passphrase" part of the original Key.
So I created a second Key without any passphrase but I don't want it
to be available too easily. That's why I want to generate it with my
program and erase it before leaving.
It doesn't have to be 100% bullet proof but I don't want to see it
when I do "strings my_program"

Now that you guys have the "why".. let's talk about the "HOW" :-)

For this part I think I'll go with base64 or whatever because rot13
does not include others chars than [A-Za-z]+
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

Thanks
--Ben
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com