diff --git a/jode/configure.in b/jode/configure.in index 0344fed..c4c7973 100644 --- a/jode/configure.in +++ b/jode/configure.in @@ -147,9 +147,11 @@ jode/expr/Makefile jode/flow/Makefile jode/jvm/Makefile jode/obfuscator/Makefile +jode/obfuscator/modules/Makefile jode/swingui/Makefile jode/type/Makefile jode/util/Makefile +doc/download.html jode/bytecode/BinaryInfo.java jode/bytecode/BytecodeInfo.java jode/bytecode/ClassInfo.java @@ -177,29 +179,32 @@ jode/flow/TransformExceptionHandlers.java jode/jvm/CodeVerifier.java jode/jvm/Interpreter.java jode/jvm/SyntheticAnalyzer.java -jode/obfuscator/LocalizeFieldTransformer.java -jode/obfuscator/LocalOptimizer.java -jode/obfuscator/RemovePopAnalyzer.java -jode/obfuscator/SimpleAnalyzer.java -jode/obfuscator/Renamer.java -jode/obfuscator/StrongRenamer.java -jode/obfuscator/OptionHandler.java -jode/obfuscator/ScriptParser.java -jode/obfuscator/TranslationTable.java -jode/obfuscator/Main.java -jode/obfuscator/FieldIdentifier.java -jode/obfuscator/Identifier.java -jode/obfuscator/NameSwapper.java -jode/obfuscator/PackageIdentifier.java jode/obfuscator/ClassBundle.java -jode/obfuscator/ConstantAnalyzer.java +jode/obfuscator/ClassIdentifier.java jode/obfuscator/ConstantRuntimeEnvironment.java +jode/obfuscator/FieldIdentifier.java +jode/obfuscator/Identifier.java jode/obfuscator/LocalIdentifier.java +jode/obfuscator/Main.java jode/obfuscator/MethodIdentifier.java -jode/obfuscator/ClassIdentifier.java -jode/obfuscator/MultiIdentifierMatcher.java -jode/obfuscator/UniqueRenamer.java -jode/obfuscator/WildCard.java +jode/obfuscator/OptionHandler.java +jode/obfuscator/PackageIdentifier.java +jode/obfuscator/Renamer.java +jode/obfuscator/ScriptParser.java +jode/obfuscator/TranslationTable.java +jode/obfuscator/modules/ConstantAnalyzer.java +jode/obfuscator/modules/KeywordRenamer.java +jode/obfuscator/modules/LocalOptimizer.java +jode/obfuscator/modules/LocalizeFieldTransformer.java +jode/obfuscator/modules/ModifierMatcher.java +jode/obfuscator/modules/MultiIdentifierMatcher.java +jode/obfuscator/modules/NameSwapper.java +jode/obfuscator/modules/RemovePopAnalyzer.java +jode/obfuscator/modules/SerializePreserver.java +jode/obfuscator/modules/SimpleAnalyzer.java +jode/obfuscator/modules/StrongRenamer.java +jode/obfuscator/modules/UniqueRenamer.java +jode/obfuscator/modules/WildCard.java jode/swingui/Main.java jode/swingui/PackagesTreeModel.java jode/swingui/HierarchyTreeModel.java diff --git a/jode/create.sh b/jode/create.sh new file mode 100755 index 0000000..814c947 --- /dev/null +++ b/jode/create.sh @@ -0,0 +1,58 @@ +#!/bin/sh + +create_jar() { +jar -xvf $HOME/java/jars/getopt.jar +rm -rf META-INF +jar -cvf ../jode-1.0.92-$1.jar AUTHORS COPYING README INSTALL NEWS doc/*.{html,jos,perl,gif} `find jode -name \*.class` gnu +rm -rf gnu +} + +create_first() { +# first 1.1 version. +tar -xvzf jode-1.0.92.tar.gz +cd jode-1.0.92 +CLASSPATH=$HOME/java/jars/getopt.jar:/usr/local/1.1collections/lib/collections.jar:/usr/local/swing-1.1/swingall.jar \ + ./configure --with-java=/usr/lib/java --with-jikes=/home/jochen/bin +make +create_jar 1.1 +cd .. +rm -rf jode-1.0.92 +} + +create_second() { +# now 1.2 version. +tar -xvzf jode-1.0.92.tar.gz +cd jode-1.0.92 +find -name \*.java -o -name \*.java.in | xargs jcpp -DJDK12 +CLASSPATH=$HOME/java/jars/getopt.jar \ + ./configure --with-java=/usr/local/jdk1.2 --with-jikes=/home/jochen/bin +make +create_jar 1.2 +cd .. +rm -rf jode-1.0.92 +} + +create_applet() { +cat <jode-applet.jos +# JODE Optimizer Script +strip = "unreach","source","lnt","lvt","inner" +load = new WildCard { value = "jode" }, + new WildCard { value = "gnu" } +preserve = new WildCard { value = "jode.JodeApplet..()V" } +renamer = new StrongRenamer { + charsetStart = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" + charsetPart = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_$" + charsetPackage = "abcdefghijklmnopqrstuvwxyz" + charsetClass = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" +} +analyzer = new ConstantAnalyzer +post = new LocalOptimizer, new RemovePopAnalyzer +EOF + +CLASSPATH=jode-1.0.92-1.1.jar:$CLASSPATH java jode.obfuscator.Main \ + --cp jode-1.0.92-1.1.jar --dest jode-applet.jar jode-applet.jos +} + +#create_first +#create_second +create_applet