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.....
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?
https://github.com/Washi1337

"I'll tell you this UDP joke, and I don't care if you will get it or not."
(Aug 27, 2012 12:24 PM)Washi Wrote:  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) You cannot rename all methods, (yes i've seen IsConstructor = false, there is more)
4) What about nested types in nested types? and what about if they have nested types too?

This.

There are so many flaws in this code it's not even funny.
Probably coding some useless shit.
(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: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.
https://github.com/Washi1337

"I'll tell you this UDP joke, and I don't care if you will get it or not."
(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.
All the above and one more thing.

Please... PLEASE, use them freacking code tags.
"There's no dead which can eternal lie, and with strange Aeons even death may die."




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