VB.net 2010 视频教程 VB.net 2010 视频教程 python基础视频教程
SQL Server 2008 视频教程 c#入门经典教程 Visual Basic从门到精通视频教程
当前位置:
首页 > 编程开发 > c#教程 >
  • C#教程之C#教程之VisualSVN 破解方法

本站最新发布   C#从入门到精通
试听地址  
https://www.xin3721.com/eschool/CSharpxin3721/

第一步,首先准备反汇编工具 ildasm.exe,找到VisualSVN的安装路径,一般先备份,在备份里面操作。

第二步,转储 , 得到同名的il文件:VisualSVN.Core.L.il,用记事本打开得到的 VisualSVN.Core.L.il 文件,在其中搜索 “KeyToLicenseUnsafe”,找到KeyToLicenseUnsafe方法,大概在3296行附近。查找并替换成下面的代码,然后保存

复制代码
.method public hidebysig static class VisualSVN.Core.Licensing.License
          KeyToLicenseUnsafe(class VisualSVN.Core.IDecoder decoder,
                             string key) cil managed
  {
    // 代码大小       69 (0x45)
    .locals init (class VisualSVN.Core.Licensing.License V_0, class VisualSVN.Core.Licensing.License V_1, class VisualSVN.Core.Licensing.License V_2)
    IL_0000: nop
    IL_0001: newobj instance void VisualSVN.Core.Licensing.License::.ctor()
    IL_0006: stloc.1
    IL_0007: ldloc.1
    IL_0008: ldsfld valuetype [mscorlib]System.DateTime [mscorlib]System.DateTime::MinValue
    IL_000d: stfld valuetype [mscorlib]System.DateTime VisualSVN.Core.Licensing.License::StartTime
    IL_0012: ldloc.1
    IL_0013: ldc.i4.1
    IL_0014: stfld valuetype VisualSVN.Core.Licensing.LicenseBinding VisualSVN.Core.Licensing.License::Binding
    IL_0019: ldloc.1
    IL_001a: ldc.i4 0x7ffffffe
    IL_001f: stfld int32 VisualSVN.Core.Licensing.License::Capacity
    IL_0024: ldloc.1
    IL_0025: ldsfld valuetype [mscorlib]System.DateTime [mscorlib]System.DateTime::MaxValue
    IL_002a: stfld valuetype [mscorlib]System.DateTime VisualSVN.Core.Licensing.License::EndTime
    IL_002f: ldloc.1
    IL_0030: ldc.i4.2
    IL_0031: stfld valuetype VisualSVN.Core.Licensing.LicenseType VisualSVN.Core.Licensing.License::Type
    IL_0036: ldloc.1
    IL_0037: ldstr "100"
    IL_003c: stfld string VisualSVN.Core.Licensing.License::PurchaseId
    IL_0041: ldloc.1
    IL_0042: call string [mscorlib]System.Environment::get_UserName()
    IL_0047: stfld string VisualSVN.Core.Licensing.License::LicensedTo
    IL_004c: ldloc.1
    IL_004d: stloc.0
    IL_004e: ldloc.0
    IL_004f: ldloc.0
    IL_0050: ldfld valuetype [mscorlib]System.DateTime VisualSVN.Core.Licensing.License::StartTime
    IL_0055: stfld valuetype [mscorlib]System.DateTime VisualSVN.Core.Licensing.License::PurchaseDate
    IL_005a: ldloc.0
    IL_005b: stloc.2
    IL_005c: br.s
    IL_005e
    IL_005e:ldloc.2
    IL_005f: ret
  } // end of method LicenseConverter::KeyToLicenseUnsafe
复制代码

第三步,用vs2015开发人员命令提示  ,然后覆盖到 bin目录 

 

用vs2015开发人员命令提示  运行如下代码(换成自己的)

ilasm "C:\Program Files (x86)\VisualSVN\bins\VisualSVN.Core.L.il" /output="C:\Program Files (x86)\VisualSVN\bins\VisualSVN.Core.L.dll" /dll

 看到如下界面

表示编译成功,然后把编译好的VisualSVN.Core.L.dll 覆盖到 bin目录下就完成破解了。

相关教程