Browse Source

feat: badhttp docker compiles java classes

master
Manvan33 8 months ago
parent
commit
29bc8b8b20
  1. 7
      attacker/README.md
  2. 10
      attacker/http/Dockerfile

7
attacker/README.md

@ -1,7 +1,7 @@
# Attacker
An LDAP with data from ldap/*.ldif files
An HTTP server serving compiled .class files from .java files in ./src
An HTTP server compiling and serving java classes from [http/src](http/src)
## Usage
@ -9,11 +9,6 @@ Don't forget to
cd attacker
Compile your java payload
javac http/src/*.java -d /http/output/
Build and run ldap
docker build ldap -t badldap

10
attacker/http/Dockerfile

@ -1,3 +1,11 @@
FROM openjdk:8 AS build
COPY src/* /usr/src/
RUN mkdir /output
RUN javac /usr/src/*.java -d /output/
FROM lipanski/docker-static-website:latest
COPY output/* ./
COPY --from=build /output/* ./

Loading…
Cancel
Save