LoGiC.NET icon indicating copy to clipboard operation
LoGiC.NET copied to clipboard

[IDEA] Nested methods.

Open ghost opened this issue 4 years ago • 1 comments

Ofc this won't work because nested methods bad but here's an idea I've always had for c# obfuscation:

void Main(string[] args) {
    Console.WriteLine("Hello, World!");
}
Main(args);

Now you may think "oh that's not that bad", but link multiple nested methods together and combine them with other existing obfuscation techniques and everything is chaos. Another idea (ofc its probably implemented) is to abuse interpolated strings, eg:

string iliilllli = $"{$"{$"{$"Hello, World!"}"}"}";

Now you see how insane this can get? Once again combine this with the current obfuscation to get an insane mess.

ghost avatar Aug 08 '21 02:08 ghost

Yeah you can make some sort of proxy methods, basically nested methods as you said. For the second idea, well I didn't think of that, I'll definitely try to do that!

AnErrupTion avatar Aug 14 '21 17:08 AnErrupTion