职业IT人-IT人生活圈

 找回密码
 成为会员
搜索
查看: 492|回复: 1

ssh springside 混淆

[复制链接]
月上萧萧 发表于 2011-8-22 11:51 | 显示全部楼层 |阅读模式
proguard工具......
推荐链接 见证又一个......


proguard 工具 。

配置文件:

-injars 'D:\develop\w\telematic2\Portal\dist\portalms.jar'
-outjars out.jar
-libraryjars 'C:\Program Files\Java\jre6\lib\rt.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\antlr-2.7.6.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\aopalliance-1.0.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\aspectjrt-1.6.9.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\aspectjweaver-1.6.9.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\cglib-nodep-2.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-beanutils-1.8.3.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-collections-3.2.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-dbcp-1.4.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-fileupload-1.2.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-io-1.4.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-lang-2.5.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-logging-1.1.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\commons-pool-1.5.4.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\displaytag-1.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\displaytag-export-poi-1.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\dom4j-1.6.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\ehcache-1.6.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\freemarker-2.3.16.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\guava-r06.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\h2-1.2.142.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\hamcrest-library-1.3RC0.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\hibernate-annotations-3.5.5-Final.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\hibernate-commons-annotations-3.2.0.Final.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\hibernate-core-3.5.5-Final.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\hibernate-ehcache-3.5.5-Final.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\hibernate-jpa-2.0-api-1.0.0.Final.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\imaging-01012005.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\itext-1.3.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\jackson-core-asl-1.6.0.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\jackson-mapper-asl-1.6.0.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\javassist-3.12.1.GA.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\jcaptcha-1.0.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\jcaptcha-api-1.0.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\jcl104-over-slf4j-1.4.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\jstl-1.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\jta-1.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\junit-4.8.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\log4j-1.2.16.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\mail.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\ognl-3.0.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\ojdbc14.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\poi-3.2-FINAL.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\servlet-api.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\slf4j-api-1.4.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\slf4j-api-1.6.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\slf4j-log4j12-1.4.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\slf4j-log4j12-1.6.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-aop-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-asm-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-beans-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-context-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-context-support-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-core-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-expression-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-jdbc-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-orm-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-security-acl-3.0.3.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-security-config-3.0.3.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-security-core-3.0.3.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-security-taglibs-3.0.3.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-security-web-3.0.3.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-test-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-tx-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-web-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\spring-webmvc-3.0.4.RELEASE.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\springside3-core-3.3.4.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\springside3-extension-3.3.4.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\standard-1.1.2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\struts2-convention-plugin-2.2.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\struts2-core-2.2.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\struts2-spring-plugin-2.2.1.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\xml-apis-1.0.b2.jar'
-libraryjars 'D:\develop\w\telematic2\Portal\lib\xwork-core-2.2.1.jar'
-dontshrink
-dontoptimize
-printmapping out.map
-keeppackagenames
-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,EnclosingMethod,*Annotation*
-keepparameternames

# Preserve the special static methods that are required in all enumeration
# classes.
-keepclassmembers class * extends java.lang.Enum {
    public static **[] values();
    public static ** valueOf(java.lang.String);
}
# entity
-keep class * extends IdEntity
# Keep - Servlets. Keep all extensions of javax.servlet.Servlet.
-keep public class * extends javax.servlet.Servlet
# Keep - Library. Keep all public and protected classes, fields, and methods.
-keep public class * {
    public protected <fields>;
    public protected <methods>;
}
# Also keep - Enumerations. Keep the special static methods that are required in
# enumeration classes.
-keepclassmembers enum  * {
    public static **[] values();
    public static ** valueOf(java.lang.String);
}
# Also keep - Serialization code. Keep all fields and methods that are used for
# serialization.
-keepclassmembers class * extends java.io.Serializable {
    static final long serialVersionUID;
    static final java.io.ObjectStreamField[] serialPersistentFields;
    private void writeObject(java.io.ObjectOutputStream);
    private void readObject(java.io.ObjectInputStream);
    java.lang.Object writeReplace();
    java.lang.Object readResolve();
}
# Also keep - BeanInfo classes. Keep all implementations of java.beans.BeanInfo.
-keep class * extends java.beans.BeanInfo
# Also keep - Bean classes. Keep all specified classes, along with their getters
# and setters.
-keep class * {
    void set*(***);
    void set*(int,***);
    boolean is*();
    boolean is*(int);
    *** get*();
    *** get*(int);
}
# Keep names - Native method names. Keep all native class/method names.
-keepclasseswithmembers,allowshrinking class * {
    native <methods>;
}
# Keep names - _class method names. Keep all .class method names. This may be
# useful for libraries that will be obfuscated again with different obfuscators.
-keepclassmembers,allowshrinking class * {
    java.lang.Class class$(java.lang.String);
    java.lang.Class class$(java.lang.String,boolean);
}

注意:1、 混淆后需要用原来的bean覆盖混淆中的bean。因为bean的字段名必须不能变,否则一对多等映射就不能找到具体字段
         
      

北大青鸟 发表于 2011-8-22 11:51 | 显示全部楼层
推荐链接
见证又一个准百万富翁的诞生!
20-30万急聘多名天才Java/MTA软件工程师

3G培训就业月薪平均7K+,不3K就业不花一分钱!

您需要登录后才可以回帖 登录 | 成为会员

本版积分规则

QQ|手机版|小黑屋|网站帮助|职业IT人-IT人生活圈 ( 粤ICP备12053935号-1 )|网站地图
本站文章版权归原发布者及原出处所有。内容为作者个人观点,并不代表本站赞同其观点和对其真实性负责,本站只提供参考并不构成任何投资及应用建议。本站是信息平台,网站上部分文章为转载,并不用于任何商业目的,我们已经尽可能的对作者和来源进行了通告,但是能力有限或疏忽造成漏登,请及时联系我们,我们将根据著作权人的要求立即更正或者删除有关内容。

GMT+8, 2024-5-10 03:00 , Processed in 0.129067 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表