
Best way to hide strings on an .exe
Re: Best way to hide strings on an .exe
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.
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$
ARGENTINA WORLD CHAMPION
Re: Best way to hide strings on an .exe
I use this to hide strings from being viewed:
Doesn't show up in a hex editor or OllyDbg.
Code: Select all
a$=Chr('h'+_)+Chr('i'+_)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
Re: Best way to hide strings on an .exe
Is different to use _ that any other string name? I ask to understand and learnPB wrote:I use this to hide strings from being viewed:
Doesn't show up in a hex editor or OllyDbg.Code: Select all
a$=Chr('h'+_)+Chr('i'+_)
Code: Select all
a$=Chr('h'+_)+Chr('i'+_)
a$=Chr('h'+asdfgh)+Chr('i'+asdfgh)
a$=Chr('h'+qwerty)+Chr('i'+asd)
ARGENTINA WORLD CHAMPION
Re: Best way to hide strings on an .exe
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.

So yes, all three lines you posted work the same,
as long as the variables "qwerty" etc are set to 0.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
Re: Best way to hide strings on an .exe
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$
ARGENTINA WORLD CHAMPION
Re: Best way to hide strings on an .exe
I don't know what happens if the vars aren't 0. Test it. 

I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.