FlyTreeView for ASP.NET 3.1 破解手記

來源:互聯網
上載者:User
這裡的DateTime(2004, 7, 11)就是控制項的到期時間。說來簡單,其實要找到它還是費了一番周折的。根據上面的線索,我在用ildasm工具反組譯碼出的NineRays.Web.UI.WebControls.FlyTreeView.IL檔案中找到了對應的IL代碼如下:
.method private hidebysig specialname rtspecialname static
void .cctor() cil managed
{
// 代碼大小 19 (0x13)
.maxstack 4
IL_0000: ldsflda valuetype [mscorlib]System.DateTime Global::TRIAL_EXPIRE_DATE
IL_0005: ldc.i4 0x7d4
IL_000a: ldc.i4.7
IL_000b: ldc.i4.s 11
IL_000d: call instance void [mscorlib]System.DateTime::.ctor(int32, int32,int32)
IL_0012: ret
} // end of method Global::.cctor
代碼中的0x7d4 便是十六進位的年號2004,我不想太貪,就把它改成2050年吧,十六進位是0x802F
.method private hidebysig specialname rtspecialname static
void .cctor() cil managed
{
// 代碼大小 19 (0x13)
.maxstack 4
IL_0000: ldsflda valuetype [mscorlib]System.DateTime Global::TRIAL_EXPIRE_DATE
IL_0005: ldc.i4 0x802F
IL_000a: ldc.i4.7
IL_000b: ldc.i4.s 11
IL_000d: call instance void [mscorlib]System.DateTime::.ctor(int32, int32,int32)
IL_0012: ret
} // end of method Global::.cctor
儲存前別忘了刪除IL代碼起始部分類似下面的代碼
.publickey =(00 24 00 00 04 80 00 00 94 00 00 00 06 02 00 00 // .$..............
00 24 00 00 52 53 41 31 00 04 00 00 01 00 01 00 // .$..RSA1........
CD 62 12 05 0E 7C CD 6F 51 AF 2C 41 FD CC 65 44 // .b...|.oQ.,A..eD
相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.