dynamic object problem

Oct 21, 2012 at 4:12 PM

Hi,

I think that Confuser has bug when arrived a dynamic properties.

I use a dynamic property that assign it some value type.But when I encrypted my program and run it after Confusing a exception was occured that not found a value(assiged to dynamic property)

Please guide me.Thanks

Coordinator
Oct 23, 2012 at 4:10 AM

Hi,

I haven't tried to use dynamic properties so I did not test it. I'll check it and tell you more later.

Coordinator
Nov 3, 2012 at 6:35 AM

Sorry, but I could not reproduce this issue here. Do you mind sharing some code showing how it produce error?

Nov 5, 2012 at 12:47 PM

Hi,

I'm observed the same issue. Consider following method returning a Json object using anonymous object initializer:

public virtual JsonResult MyCoolMethod()
{
    return Json(new { alive = true }, JsonRequestBehavior.AllowGet);
}

turns into:

public virtual JsonResult MyCoolMethod()
{
     JsonResult result;
      result = base.Json(new 缊ኃᳺ怍㻾躼懖<bool>(true), JsonRequestBehavior.AllowGet);
      return result;
}

(from disassembler)

The js consuming the json data cannot work with the obfuscated property. Is there a way to supress dynamic porperty obfuscation?

 I tried to get around this using System.Reflection.ObfusactionAttribute but it looks like it's not supported by Confuser.