Red Gate forums :: View topic - Obfuscation don't rename local variable
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SmartAssembly 6
SmartAssembly 6 forum

Obfuscation don't rename local variable

Search in SmartAssembly 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
rocchellid



Joined: 10 Apr 2012
Posts: 5

PostPosted: Wed Apr 11, 2012 11:30 am    Post subject: Obfuscation don't rename local variable Reply with quote

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
Back to top
View user's profile Send private message
Simon C



Joined: 26 Feb 2008
Posts: 140
Location: Red Gate Software

PostPosted: Wed Apr 11, 2012 11:37 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
rocchellid



Joined: 10 Apr 2012
Posts: 5

PostPosted: Wed Apr 11, 2012 12:57 pm    Post subject: Reply with quote

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 ...
Back to top
View user's profile Send private message
Simon C



Joined: 26 Feb 2008
Posts: 140
Location: Red Gate Software

PostPosted: Wed Apr 11, 2012 2:39 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group