added Makefile for CVE-2012-1723

This commit is contained in:
LittleLightLittleFire 2012-07-10 14:12:07 +10:00
parent e9ac90f7b0
commit 956ec9d1da
14 changed files with 26 additions and 3 deletions

Binary file not shown.

View File

@ -0,0 +1,25 @@
JAR = CVE-2012-1723.jar
ASM = asm-4.0.jar
LIB = lib
BIN = bin
SRC = src
JAVAC = javac -source 1.5 -target 1.5
all:
${JAVAC} -cp ${LIB}/${ASM} src/cve1723/Generator.java -d ${LIB}
java -cp ${LIB}:${LIB}/${ASM} cve1723.Generator
-mkdir ${BIN}
-mkdir ${BIN}/cve1723/
mv Confuser.class ${BIN}/cve1723/
find ${SRC} -not -name 'Generator.java' -name '*.java' -type f -print0 | xargs -0 ${JAVAC} -cp ${BIN} -sourcepath {} -d ${BIN}
jar cf ${JAR} -C ${BIN} .
install: ${JAR}
cp ${JAR} ../../../../data/exploits
clean:
rm -rf ${BIN}
-rm ${LIB}/cve1723/Generator.class
-rm ${JAR}

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,2 +0,0 @@
1. Run Generator to make 'Confuser.class', requires ASM4
2. Then pack everything together to make the jar

Binary file not shown.

Binary file not shown.

View File

@ -125,7 +125,7 @@ public class Generator {
public static void main(final String args[]) throws Exception {
final byte data[] = Generator.generateConfusion();
final FileOutputStream fo = new FileOutputStream("lib/cve1723/Confuser.class");
final FileOutputStream fo = new FileOutputStream("Confuser.class");
fo.write(data);
fo.close();
}