added Makefile for CVE-2012-1723
This commit is contained in:
parent
e9ac90f7b0
commit
956ec9d1da
Binary file not shown.
|
@ -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.
BIN
external/source/exploits/CVE-2012-1723/bin/cve1723/ConfusingClassLoader.class
vendored
Normal file
BIN
external/source/exploits/CVE-2012-1723/bin/cve1723/ConfusingClassLoader.class
vendored
Normal file
Binary file not shown.
BIN
external/source/exploits/CVE-2012-1723/bin/msf/x/PayloadX$StreamConnector.class
vendored
Normal file
BIN
external/source/exploits/CVE-2012-1723/bin/msf/x/PayloadX$StreamConnector.class
vendored
Normal file
Binary file not shown.
Binary file not shown.
|
@ -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.
|
@ -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();
|
||||
}
|
Loading…
Reference in New Issue