工欲善其事,必先利其器。最近研究了一下zendstudio的破解方法。
首先官网下载Zend Studio 13.6下载链接http://www.zend.com/en/downloads

官网下载页面
下载完成打开之后会出现如下界面要求输入注册码

注册码页面
接下来进入破解过程了。右键下载的应用程序点击显示包内容

包内容
进入/Applications/Zend Studio.app/Contents/Eclipse/plugins里面有个com.zend.verifier_13.6.1.v20170623-1730.jar这个jar包就是负责验证是否购买的工具包

验证包
这里需要使用JD-GUI将这个jar包反编译找到里面的LicenseKey.class里面有个方法LicenseKey只需要注释掉里面的验证逻辑留下this.key = key即可

LicenseKey文件内容
找到JD-GUI的工具栏file里面有个Save All Source点击将反编译内容保存到本地

Save All Source
在eclipse中新建一个工程编译解压的文件。工程选择Java Project

新建工程
工程名就叫com.zend.verifier_13.6.1.v20170623-1730将之前解压的文件夹里面的内容导入到工程src目录中

src目录
发现反编译的内容有问题多了很多注释符号

注释符号
但是直接用JD-GUI查看是没有这些符号的

没有注释符号
我们只能手动将这些文件的内容重新复制到工程中对应文件里面了,并且把之前提到的LicenseKey里面的验证逻辑注释掉

注释验证逻辑
即使到了这里我们的工程还是不能 编译可以看到右很多的报错是因为需要OSGI运行环境

文件报错
接下来我们配置OSGI运行环境
1、进入eclipse-----run----run configuration---osgi framework---new
2、取消全选
3、在搜索框中输入 osgi,选择 org.eclipse.osgi.xxxx 的选项
4、在搜索框中输入 console,选择 org.eclipse.equinox.console
5、在搜索框中输入 gogo,选择 xxxx.gogo.shell gogo.command gogo.runtime

添加OSGI库
6、点击 run
运行效果:

运行效果
运行结果有很多报错但是不影响我们的编译内容,可以输入ss查看。接下来右键工程

找到LicenseKey.class
Show In System Explorer找到LicenseKey.class

找到LicenseKey.class
用JD-GUI打开可以看到里面LicenseKey方法已经变了

改变之后
我们只需要将这个LicenseKey.class文件替换到原来的com.zend.verifier_13.6.1.v20170623-1730.jar文件中我们用windows中的WinRAR工具打开com.zend.verifier_13.6.1.v20170623-1730.jar将里面LicenseKey.class文件删除掉并且将我们上一步生成的LicenseKey.class拖进来完成替换。

WinRAR打开
最后将我们替换好的com.zend.verifier_13.6.1.v20170623-1730.jar重新放回zendstudio的工程中。右键zendstudio显示包内容

替换com.zend.verifier_13.6.1.v20170623-1730.jar
进行替换此时我们再次打开zendstudio已经不会再次提示需要输入注册码了。至此破解完成。
网友评论