【问题标题】:obfuscating with allatori obfuscates too much用 allatori 混淆太多
【发布时间】:2021-05-22 09:21:37
【问题描述】:

我有以下 config.xml 文件

<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.freakyvilleio.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,这对我来说没有' t 有意义,因为我的正则表达式 (?!io\.github\.freakyville).*\..* 应该匹配该包/类路径,然后保持包/类正确?

【问题讨论】:

    标签: java obfuscation allatori


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2017-11-30
      • 1970-01-01
      • 2019-09-14
      • 2018-08-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-16
      相关资源
      最近更新 更多