1 用iLDasm.exe反编译成.Net的中间代码 iLDasm.exe WinFormHtmlEditor.dll /out=E:\li\WinFormHtmlEditor.il
2 去掉.publickey, 删除后的内容
// --- 下列自定义属性会自动添加,不要取消注释 -------
// .custom instance void [mscorlib]System.Diagnostics.DebuggableAttribute::.ctor(valuetype [mscorlib]System.Diagnostics.DebuggableAttribute/DebuggingModes) = ( 01 00 02 00 00 00 00 00 )
.hash algorithm 0x00008004
.ver 5:2:1:0
3. 找到spicelogicEditorsg,把包含这个字符串的方法全部删除掉。删除后的内容
.method private hidebysig instance void
_xed657fc0cc6a3502() cil managed
{
.locals init (class SpiceLogic.WinHTMLEditor.WinForm.x289595cfb727dd05 V_0)
IL_0000: ret
} // end of method WinFormHtmlEditor::_xed657fc0cc6a3502
4. Purchase Developer Licence
lblDaysLeft
linkLblPurchase
IL_0ef3: ldfld class [System.Windows.Forms]System.Windows.Forms.LinkLabel SpiceLogic.WinHTMLEditor.WinForm.WinFormHtmlEditor::linkLblPurchase
IL_0ef8: ldc.i4 0x0
IL_0efd: ldc.i4.s 0x0
IL_0eff: newobj instance void [System.Drawing]System.Drawing.Size::.ctor(int32,
int32)
IL_0f9a: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Size(valuetype [System.Drawing]System.Drawing.Size)
IL_0f8c: ldfld class [System.Windows.Forms]System.Windows.Forms.Label SpiceLogic.WinHTMLEditor.WinForm.WinFormHtmlEditor::lblDaysLeft
IL_0f91: ldc.i4.s 0x0
IL_0f93: ldc.i4.s 0x0
IL_0f95: newobj instance void [System.Drawing]System.Drawing.Size::.ctor(int32,
int32)
IL_0f9a: callvirt instance void [System.Windows.Forms]System.Windows.Forms.Control::set_Size(valuetype [System.Drawing]System.Drawing.Size)
找到这两个控件用IL代码把他们强制隐藏。
5. 编译回dll
ilasm.exe /dll e:\il\WinFormHtmlEditor.il
搞定,系统正式上线肯定会买正版本,奶奶的425美刀,涨价了。先破解试用下功能,不破解不让用了,好用再让老板买。