首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用allatori混淆会造成太多混淆

使用allatori混淆会造成太多混淆
EN

Stack Overflow用户
提问于 2021-02-19 19:22:24
回答 1查看 90关注 0票数 1

我有以下config.xml文件

代码语言:javascript
复制
<config>
  <input>
    <jar in="FVCellsPlugin-3.3.1-jcg.jar" out="obf-FVCellsPlugin-3.3.1-jcg.jar"/>
  </input>
  <keep-names>
    <class template="class io.github.freakyville.fvcells.main.Main"/>
    <class template="class regex:(?!io\.github\.freakyville).*\..*">
        <field template="*"/>
        <field template="static *"/>
        <field template="public static *"/>
        <method template="private+ *(**)"/>
        <method template="private+ static *(**)"/>
    </class>
    <class template="private+ class regex:io\.github\.freakyville\.utilsupdated\..*"/>
  </keep-names>
  <property name="log-file" value="log.xml"/>
  <property name="line-numbers" value="keep"/>
</config>

所以我尝试了一些不起作用的东西,我想要混淆的所有代码都在包(或子包)io.github.freakyville(除了io.github.freakyville.utilsupdated)中。当插件被启用时,我得到了一个错误的java.lang.NoSuchMethodError: com.mongodb.client.model.geojson.c.iiiiiI(Ljava/lang/String;)Ljava/lang/String;,它表明它混淆了com.mongodb.client.model.geojson中的类,当查看jar内部时,我可以看到它混淆了geojson.chttps://gyazo.com/45c17157d5d7a213f14a9ecc2c12b4f6,这对我来说没有意义,因为我的正则(?!io\.github\.freakyville).*\..*应该匹配那个包/类路径,然后保持包/类的正确?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-02-22 07:21:21

啊,我想通了,我遗漏了文档中的标签(忽略了混淆过程中匹配的类)。将我的类模板添加到其中,现在它可以工作了

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66276645

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档