Page 2 of 2

Re: Best way to hide strings on an .exe

Posted: Thu Aug 30, 2012 3:22 pm
by ricardo
Thanks to everybody for your help :)

Re: Best way to hide strings on an .exe

Posted: Sat Jul 12, 2014 3:07 am
by ricardo
This still works to hide strings, right?
Is there any way that people can see the string using any of this ways? Which one is better of this 3 methods?

Im not talking about the NASA or the FBI, just a user or a normal hacker.

Code: Select all

String$ = Chr('R'+abs) + Chr('i'+abs) + Chr('c'+abs) + Chr('a'+abs) + Chr('r'+abs) + Chr('d'+abs) + Chr('o'+abs)
Debug String$

abc = 2
String$ = Chr(80+abc) + Chr(103+abc) + Chr(97+abc) + Chr(95+abc) + Chr(112+abc) + Chr(98+abc) + Chr(109+abc)
Debug String$

abc = 2
String$ = Chr(80+abc+aq) + Chr(103+abc+aq) + Chr(97+abc+aq) + Chr(95+abc+aq) + Chr(112+abc+aq) + Chr(98+abc+aq) + Chr(109+abc+aq)
Debug String$

Re: Best way to hide strings on an .exe

Posted: Sat Jul 12, 2014 3:44 am
by PB
I use this to hide strings from being viewed:

Code: Select all

a$=Chr('h'+_)+Chr('i'+_)
Doesn't show up in a hex editor or OllyDbg.

Re: Best way to hide strings on an .exe

Posted: Sat Jul 12, 2014 2:12 pm
by ricardo
PB wrote:I use this to hide strings from being viewed:

Code: Select all

a$=Chr('h'+_)+Chr('i'+_)
Doesn't show up in a hex editor or OllyDbg.
Is different to use _ that any other string name? I ask to understand and learn

Code: Select all

a$=Chr('h'+_)+Chr('i'+_)
a$=Chr('h'+asdfgh)+Chr('i'+asdfgh)
a$=Chr('h'+qwerty)+Chr('i'+asd)
Are the same the 3 lines?

Re: Best way to hide strings on an .exe

Posted: Sat Jul 12, 2014 2:15 pm
by PB
The _ is just an unused variable name. :)

So yes, all three lines you posted work the same,
as long as the variables "qwerty" etc are set to 0.

Re: Best way to hide strings on an .exe

Posted: Sat Jul 12, 2014 2:20 pm
by ricardo
PB wrote:The _ is just an unused variable name. :)

So yes, all three lines you posted work the same,
as long as the variables "qwerty" etc are set to 0.

Thanks for your reply.

Yes variables must be cero, unless i previously put the value of the chr -2 to be able to put the variable as 2, per example. But maybe all is the same, right?

Code: Select all

abc = 2
String$ = Chr(80+abc) + Chr(103+abc) + Chr(97+abc) + Chr(95+abc) + Chr(112+abc) + Chr(98+abc) + Chr(109+abc)
Debug String$

Re: Best way to hide strings on an .exe

Posted: Sat Jul 12, 2014 2:34 pm
by PB
I don't know what happens if the vars aren't 0. Test it. :)