Mybatis Plus 插件 Agent激活方式
Rover12421大牛搞了个Agent激活的方式,在这里https://coding.net/u/rover12421/p/MyBatisPluginCrack
使用时在idea[64].exe.vmoptions里添加-javaagent:插件jar包位置及名字.jar,即可使用
另外分析了下破解版插件造成idea闪退的问题,在com.seventh7.mybatis.service.JavaService中
Rover12421大牛搞了个Agent激活的方式,在这里https://coding.net/u/rover12421/p/MyBatisPluginCrack
使用时在idea[64].exe.vmoptions里添加-javaagent:插件jar包位置及名字.jar,即可使用
另外分析了下破解版插件造成idea闪退的问题,在com.seventh7.mybatis.service.JavaService中
大概描述下流程,之前分析的时候做的记录被删了:IDEA中输入激活码,点击激活后,会采集一些电脑的信息,比如是不是32位系统,是不是64位系统,是不是mac,是不是windows,是不是linux等信息,然后和输入的激活码一起通过POST的方式用json格式传递给https://www.codesmagic.com/activate(出现的uri一共有5个,分别是/、/activate、/report、/e、/any,没有去分析其他的),返回值为json格式,包含有verified、message、key、result,key和result就是http://blog.lanyus.com/archives/235.html这里的key和result,会写入到mybatis.xml中。
分析的版本为2.83
先看下面的代码
1、下载java字节码编辑器(jbe)
下载地址:http://download.csdn.net/detail/lanyu19950216/9465596
2、下载mybatis插件
下载地址:https://plugins.jetbrains.com/plugin/7293
3、解压出mybatis插件中mybatis_plus.jar中comseventh7mybatisserviceJavaService.class和comseventh7mybatisutilJavaUtils.class
pom.xml中引入依赖
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.7</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>