首页
社区
课程
招聘
这段IL用Reflecter无法转换成C#。
发表于: 2010-3-16 09:42 6263

这段IL用Reflecter无法转换成C#。

2010-3-16 09:42
6263
.method public hidebysig static string
          ILTest(string str,
                 int32 '211566702b710682') cil managed
  {
     // 代码大小       52 (0x34)
  .maxstack  6
  .locals init (char[] V_0,
           int32 V_1)
  IL_0000:  ldarg.0
  IL_0001:  br.s       IL_0015
  IL_0003:  sub
  IL_0004:  conv.u2
  IL_0005:  stelem.i2
  IL_0006:  ldarg.1
  IL_0007:  ldc.i4     0x6fd
  IL_000c:  add
  IL_000d:  starg.s    '211566702b710682'
  IL_000f:  ldloc.1
  IL_0010:  ldc.i4.1
  IL_0011:  add
  IL_0012:  stloc.1
  IL_0013:  br.s       IL_0027
  IL_0015:  callvirt   instance char[] [mscorlib]System.String::ToCharArray()
  IL_001a:  stloc.0
  IL_001b:  ldc.i4.0
  IL_001c:  stloc.1
  IL_001d:  br.s       IL_0027
  IL_001f:  ldloc.0
  IL_0020:  ldloc.1
  IL_0021:  ldloc.0
  IL_0022:  ldloc.1
  IL_0023:  ldelem.u2
  IL_0024:  ldarg.1
  IL_0025:  br.s       IL_0003
  IL_0027:  ldloc.1
  IL_0028:  ldloc.0
  IL_0029:  ldlen
  IL_002a:  conv.i4
  IL_002b:  blt.s      IL_001f
  IL_002d:  ldloc.0
  IL_002e:  newobj     instance void [mscorlib]System.String::.ctor(char[])
  IL_0033:  ret

  } // end of method MyClass::ILTest

报的异常为:SmartExceptionsCore.UnhandledException @4295,offset:0
我初学.net逆向,老大们帮帮忙。指点迷津。谢谢!!!

[课程]Android-CTF解题方法汇总!

上传的附件:
收藏
免费 0
支持
分享
最新回复 (1)
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
public static string cc381ffa3ede662f(string e4115acdf4fbfccc, int var_211566702b710682)
        {
            int i;

            char[] chs = e4115acdf4fbfccc.ToCharArray();
            for (i = 0; i < (int)chs.Length; i++)
            {
                chs[i] = (ushort)(chs[i] - var_211566702b710682);
                var_211566702b710682 += 1789;
            }
            return new String(chs);
        }
2010-3-16 10:19
0
游客
登录 | 注册 方可回帖
返回
//