Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[simple TUT]How to Obfusc with mono cecil .dll[simple TUT]

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.....
(Aug 27, 2012 12:25 PM)ubbelol Wrote:  This.

There are so many flaws in this code it's not even funny.

this is just starting to evolve it ! but it's simple to make it ... just start for learnning
(Aug 27, 2012 12:25 PM)ubbelol Wrote:  This.

There are so many flaws in this code it's not even funny.

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.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by GrootyAug 18, 2024 06:15 PM 1 201 Aug 18, 2024 06:15 PM
Last Post: Lookdadon
[.NET] by Wumbology ExpertOct 24, 2020 06:21 AM 11 2,588 Oct 24, 2020 06:21 AM
Last Post: sh@rp
[C] by SecurifierJan 17, 2020 07:20 AM 12 416 Jan 17, 2020 07:20 AM
Last Post: SIM-3602340