amqqdnnl 发表于 2020-8-12 15:13:23

求大神帮忙看下代码

本人萌新,试着破解 基于NET开发的一程序,发现下列代码可能是与注册相关的,但奈何看了几个小时看不明白,求大神帮忙看清注册码是通过什么运算得到的,万分感谢。
.method private hidebysig instance voidyh_list_Load(object sender,
                                                      class System.EventArgs e) cil managed
{
// Code size       246 (0xf6)
.maxstack3
.locals init ( valuetype System.DateTime CS$0$0000,
          int32 CS$0$0001)
IL_0000:nop
IL_0001:ldarg.0
IL_0002:ldfld      class DevComponents.DotNetBar.Controls.DataGridViewX hh_ajxt.yh_list_all::dataGridView1
IL_0007:ldc.i4.0
IL_0008:callvirt   instance void System.Windows.Forms.DataGridView::set_AutoGenerateColumns(bool)
IL_000d:nop
IL_000e:ldarg.0
IL_000f:ldfld      class System.Windows.Forms.ToolStripComboBox hh_ajxt.yh_list_all::yearcmb
IL_0014:callvirt   instance class System.Windows.Forms.ComboBox/ObjectCollection System.Windows.Forms.ToolStripComboBox::get_Items()
IL_0019:call       valuetype System.DateTime System.DateTime::get_Now()
IL_001e:stloc.0
IL_001f:ldloca.s   CS$0$0000
IL_0021:call       instance int32 System.DateTime::get_Year()
IL_0026:ldc.i4.3
IL_0027:sub
IL_0028:stloc.1
IL_0029:ldloca.s   CS$0$0001
IL_002b:call       instance string System.Int32::ToString()
IL_0030:callvirt   instance int32 System.Windows.Forms.ComboBox/ObjectCollection::Add(object)
IL_0035:pop
IL_0036:ldarg.0
IL_0037:ldfld      class System.Windows.Forms.ToolStripComboBox hh_ajxt.yh_list_all::yearcmb
IL_003c:callvirt   instance class System.Windows.Forms.ComboBox/ObjectCollection System.Windows.Forms.ToolStripComboBox::get_Items()
IL_0041:call       valuetype System.DateTime System.DateTime::get_Now()
IL_0046:stloc.0
IL_0047:ldloca.s   CS$0$0000
IL_0049:call       instance int32 System.DateTime::get_Year()
IL_004e:ldc.i4.2
IL_004f:sub
IL_0050:stloc.1
IL_0051:ldloca.s   CS$0$0001
IL_0053:call       instance string System.Int32::ToString()
IL_0058:callvirt   instance int32 System.Windows.Forms.ComboBox/ObjectCollection::Add(object)
IL_005d:pop
IL_005e:ldarg.0
IL_005f:ldfld      class System.Windows.Forms.ToolStripComboBox hh_ajxt.yh_list_all::yearcmb
IL_0064:callvirt   instance class System.Windows.Forms.ComboBox/ObjectCollection System.Windows.Forms.ToolStripComboBox::get_Items()
IL_0069:call       valuetype System.DateTime System.DateTime::get_Now()
IL_006e:stloc.0
IL_006f:ldloca.s   CS$0$0000
IL_0071:call       instance int32 System.DateTime::get_Year()
IL_0076:ldc.i4.1
IL_0077:sub
IL_0078:stloc.1
IL_0079:ldloca.s   CS$0$0001
IL_007b:call       instance string System.Int32::ToString()
IL_0080:callvirt   instance int32 System.Windows.Forms.ComboBox/ObjectCollection::Add(object)
IL_0085:pop
IL_0086:ldarg.0
IL_0087:ldfld      class System.Windows.Forms.ToolStripComboBox hh_ajxt.yh_list_all::yearcmb
IL_008c:callvirt   instance class System.Windows.Forms.ComboBox/ObjectCollection System.Windows.Forms.ToolStripComboBox::get_Items()
IL_0091:call       valuetype System.DateTime System.DateTime::get_Now()
IL_0096:stloc.0
IL_0097:ldloca.s   CS$0$0000
IL_0099:call       instance int32 System.DateTime::get_Year()
IL_009e:stloc.1
IL_009f:ldloca.s   CS$0$0001
IL_00a1:call       instance string System.Int32::ToString()
IL_00a6:callvirt   instance int32 System.Windows.Forms.ComboBox/ObjectCollection::Add(object)
IL_00ab:pop
IL_00ac:ldarg.0
IL_00ad:ldfld      class System.Windows.Forms.ToolStripComboBox hh_ajxt.yh_list_all::yearcmb
IL_00b2:call       valuetype System.DateTime System.DateTime::get_Now()
IL_00b7:stloc.0
IL_00b8:ldloca.s   CS$0$0000
IL_00ba:call       instance int32 System.DateTime::get_Year()
IL_00bf:stloc.1
IL_00c0:ldloca.s   CS$0$0001
IL_00c2:call       instance string System.Int32::ToString()
IL_00c7:callvirt   instance void System.Windows.Forms.ToolStripItem::set_Text(string)
IL_00cc:nop
IL_00cd:ldarg.0
IL_00ce:ldfld      class System.Windows.Forms.ToolStripComboBox hh_ajxt.yh_list_all::moncmb
IL_00d3:call       valuetype System.DateTime System.DateTime::get_Now()
IL_00d8:stloc.0
IL_00d9:ldloca.s   CS$0$0000
IL_00db:call       instance int32 System.DateTime::get_Month()
IL_00e0:stloc.1
IL_00e1:ldloca.s   CS$0$0001
IL_00e3:call       instance string System.Int32::ToString()
IL_00e8:callvirt   instance void System.Windows.Forms.ToolStripItem::set_Text(string)
IL_00ed:nop
IL_00ee:ldarg.0
IL_00ef:call       instance void hh_ajxt.yh_list_all::cxtz()
IL_00f4:nop
IL_00f5:ret
} // end of method yh_list_all::yh_list_Load


页: [1]
查看完整版本: 求大神帮忙看下代码