How to prevent sensitive information is displayed when the extension 'exe' is modified to 'txt' on windows?

Martin Drašar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jan 6 12:42:51 PST 2015


Dne 6.1.2015 v 18:15 FrankLike via Digitalmars-d-learn napsal(a):
> How to prevent sensitive information is displayed when the extension
> 'exe' is modified to 'txt' on windows?
> 
> If you build a exe ,such as which can get Data from DataBase,when you
> modify the exe's  extension to 'txt',
> and you open it by notepad.exe (on windows),you will find the info,it's
> important for me,so how to stop  the info to display  ?
> 
> 
>   Driver={SQL Server Native Client
> 10.0};Server=127.0.0.1;Database=test;Trusted_Connection=Yes    \   €`B
> SELECT top 10 * FROM testtable     鑐B atest.d    aB
> testcolumnname      aB std.stdio.File err.text    GaB w          XaB
> error :
>            haB  @ <
> 
> 
> Thank you.

What you want is some kind of code obfuscation. The easiest thing for
you is to use exe compression. It is not going to stop a dedicated
attacker, but ordinary people will not be able to extract any
information from it.

http://upx.sourceforge.net/

Martin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3279 bytes
Desc: Elektronicky podpis S/MIME
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150106/42cd959a/attachment.bin>


More information about the Digitalmars-d-learn mailing list