请高人赐教
.NET软件 , 使用ILSPY开启 , 找到关键点
内码如下
// c5
private void c9(object A_0, EventArgs A_1)
{
bool flag = by.g == 0.0;
if (flag)
{
Interaction.MsgBox("您尚未选择帐本资料!", MsgBoxStyle.Information, null);
}
else
{
flag = !by.bq;
if (flag)
{
Interaction.MsgBox("本功能为注册版功能,您必需注册本软体后才可使用!", MsgBoxStyle.Information, null);
}
else
{
a9.b().bg().ShowDialog();
}
}
}
貌似拿掉红字即可破解
使用SimpleAssemblyExplorer开启软件
内码如下
0 L_0000: nop
1 L_0001: ldsfld System.Double by::g
2 L_0006: ldc.r8 0
3 L_000f: ceq
4 L_0011: stloc.0
5 L_0012: ldloc.0
6 L_0013: brfalse.s 14 -> nop
7 L_0015: ldstr "您尚未选择帐本资料!"
8 L_001a: ldc.i4.s 0x40
9 L_001c: ldnull
10 L_001d: call Microsoft.VisualBasic.MsgBoxResult Microsoft.VisualBasic.Interaction::MsgBox(System.Object,Microsoft.VisualBasic.MsgBoxStyle,System.Object)
11 L_0022: pop
12 L_0023: nop
13 L_0024: br.s 33 -> nop
14 L_0026: nop
15 L_0027: ldsfld System.Boolean by::bq
16 L_002c: ldc.i4.0
17 L_002d: ceq
18 L_002f: stloc.0
19 L_0030: ldloc.0
20 L_0031: brfalse.s 28 -> nop
21 L_0033: ldstr "本功能为注册版功能,您必需注册本软体后才可使用!"
22 L_0038: ldc.i4.s 0x40
23 L_003a: ldnull
24 L_003b: call Microsoft.VisualBasic.MsgBoxResult Microsoft.VisualBasic.Interaction::MsgBox(System.Object,Microsoft.VisualBasic.MsgBoxStyle,System.Object)
25 L_0040: pop
26 L_0041: nop
27 L_0042: br.s 33 -> nop
28 L_0044: nop
29 L_0045: call a9/b a9::b()
30 L_004a: callvirt cz a9/b::bg()
31 L_004f: callvirt System.Windows.Forms.DialogResult System.Windows.Forms.Form::ShowDialog()
32 L_0054: pop
33 L_0055: nop
34 L_0056: ret
红字部份开头和结尾在哪??
if
{
}
else
{
}
这语法在SimpleAssemblyExplorer中
是会变成什么代码??
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!