Obfuscation don't rename local variable

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, melvyn.harbour, dom.smith

Obfuscation don't rename local variable

Postby rocchellid » Wed Apr 11, 2012 11:30 am

Obfuscation is set to:

I want obfuscate using Unicode ...
I want to usa advanced renaming ...

but in code proced I see thet all local variable passed in argument have original name

Resul:
public bool CambiaPercorso(clsMissione Missione, clsSegmento ProssimoSegmento, List<clsSegmento> SegmentiBloccati, List<clsSegmento> ProssimiSegmentiVeicoliBloccati)

Aspected:
public bool CambiaPercorso(clsMissione aaa, clsSegmento bbb, List<clsSegmento> ccc, List<clsSegmento> ddd)

Regards,
Davide
rocchellid
 
Posts: 5
Joined: Tue Apr 10, 2012 10:23 am

Postby Simon C » Wed Apr 11, 2012 11:37 am

Which version of SmartAssembly are you using? Method parameters are obfuscated starting in version 6.6.2.

Alternatively, you could turn on pruning, which will prune all the method parameter names it can
Simon C
 
Posts: 140
Joined: Tue Feb 26, 2008 4:56 pm
Location: Red Gate Software

Postby rocchellid » Wed Apr 11, 2012 12:57 pm

Version is 6.6.3.41 and pruning is already active ...
Dll is made by VS 2010 in C#

I see that in private method, paramenters are renamed but a very similar name Veicolo becames veicolo1.
Only local (private in class) variable method and properties seems to be obfuscated as requested ...
rocchellid
 
Posts: 5
Joined: Tue Apr 10, 2012 10:23 am

Postby Simon C » Wed Apr 11, 2012 2:39 pm

If a method is not obfuscated for whatever reason, then the method parameters are not obfuscated. This is so named parameters, reflection, and the like still work.

Bear in mind that, without pdbs, local variables have no names at all. The name displayed in a decompiler is inferred from the type name and operations that act on that variable.
Simon C
 
Posts: 140
Joined: Tue Feb 26, 2008 4:56 pm
Location: Red Gate Software


Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 0 guests