Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to protect be decompiled?
Message
De
03/01/2005 11:20:24
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00972325
Message ID:
00973836
Vues:
39
>Hi Denis,
>
>>In you reply to Jos you seem to say that crackers could get back meaningfull variable names?
>
>only after you analyzed the code. If you see this code:
>
>_2 = 0
>For _1=1 to _1._23
> _3 = _1(_1)._1 * _1(_1)._2
> _2 = _2 + _3
>Endfor
>_2 = _2 * _1._1
>
>after some time going through the code and debugging it you might figure out that this code calculates the total (_3) of an order (_1) collection. Once you figured out what the code does, you can start replacing the names:
>
>lnTotal = 0
>For lnItem=1 to loOrder.Count
> lnItemTotal = loOrder(lnItem).nItemCount * loOrder(lnItem).ItemPrice
> lnTotal = lnTotal + lnItemTotal
>Endfor
>lnTotal = lnTotal * loOrder.nTaxRate
>
>You must go through the code in order to replace names. Even if you replaced the long names with short ones as I did in the first sample, the code isn't really more readable. Once the attacker discovered all the names, they could repeat this automatically with new versions. Hence, my recommendation to change the names and positions frequently.



LOL

I can't believe someone would be willing to go through all that to get the source code. If anyone is willing to do that don't you think it could be faster to write a similar application from scratch?

Why not push this one step further and do something like
#DEFINE VAR_lnMyCounter QÍEÃúÿec2ÏÞJåVâ
#DEFINE VAR_lcMacro     "VAR_lnMyCounter = VAR_lnMyCounter *3.254"

and then in the code

QÍEÃúÿec2ÏÞJåVâ = QÍEÃúÿec2ÏÞJåVâ / 2
&VAL_lcMacro
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform