![]() |
|
[.NET] [simple TUT]How to Obfusc with mono cecil .dll[simple TUT] - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] [simple TUT]How to Obfusc with mono cecil .dll[simple TUT] (/showthread.php?tid=2815662) |
[simple TUT]How to Obfusc with mono cecil .dll[simple TUT] - SIO FACTORY - Aug 27, 2012 Code for VB.NET u need 1 TrackBar1 monocecil.dll and a little brain :) code: Dim assembly As AssemblyDefinition = AssemblyDefinition.ReadAssembly(your output .exe) For Each t As TypeDefinition In assembly.MainModule.Types For Each f As FieldDefinition In t.Fields f.Name = RandomName(TrackBar1.Value) Next For Each l As PropertyDefinition In t.Properties l.Name = RandomName(TrackBar1.Value) Next If t.Namespace.Contains("My") = False Then t.Name = RandomName(TrackBar1.Value) t.Namespace = RandomName(TrackBar1.Value) For Each x As TypeDefinition In t.NestedTypes x.Name = RandomName(TrackBar1.Value) Next For Each m As MethodDefinition In t.Methods For Each v As GenericParameter In m.GenericParameters v.Name = RandomName(TrackBar1.Value) Next For Each c As ParameterDefinition In m.Parameters c.Name = RandomName(TrackBar1.Value) Next If m.IsConstructor = False Then m.Name = RandomName(TrackBar1.Value) End If Next End If Next assembly.Write(your output.exe) End If this code is basic but it's the good way..... * - Washi - Aug 27, 2012 Hah, this is "da best surce code evar " to make an obfuscator 1) This is just renaming, which won't help you much. 2) The function RandomName is not given 3) There is a random TrackBar? 4) You cannot rename all methods, (yes i've seen IsConstructor = false, there is more) 5) What about nested types in nested types? and what about if they have nested types too? 6) Don't those nested types' members need to be renamed too? * - ubbelol - Aug 27, 2012 (Aug 27, 2012 12:24 PM)TheUnknownProgrammer Wrote: Hah, this is "da best surce code evar " to make an obfuscator This. There are so many flaws in this code it's not even funny. * - SIO FACTORY - Aug 27, 2012 (Aug 27, 2012 12:25 PM)UbbeLoL Wrote: This. this is just starting to evolve it ! but it's simple to make it ... just start for learnning * - Washi - Aug 27, 2012 (Aug 27, 2012 12:33 PM)SIO FACTORY Wrote: this is just starting to evolve it ! but it's simple to make it ... just start for learnning Ye i understand that, but you should finish your source and add explanation first before releasing it. * - Support. - Aug 27, 2012 (Aug 27, 2012 12:25 PM)UbbeLoL Wrote: This. There are so many flaws in this code I believe it's very funny. XD @OP, keep digging deeper dude, nice try but you've not even entered the rabbit hole yet. * - Androcir - Aug 27, 2012 All the above and one more thing. Please... PLEASE, use them freacking code tags. |