-
Notifications
You must be signed in to change notification settings - Fork 2
/
run_containers.sh
executable file
·19 lines (13 loc) · 1.23 KB
/
run_containers.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
export $(cat .env | xargs)
echo "Creating containers"
#docker network create -d bridge the_internet
#docker run host -p "8080:8080" --name spring-boot-app --env LOG4J_VERSION=${LOG4J_VERSION} poc:${JAVA_VERSION} &
#docker run host --name marshalsec marshalsec &
#docker run host -p "8888:80" --name exploit-http-server --env LOG4J_VERSION=${LOG4J_VERSION} exploit_nginx &
#docker run host --name curl_attacker --env PAYLOAD=${PAYLOAD} -v ${PWD}/exploits.sh:/exploits.sh curler
docker run --add-host=host.docker.internal:host-gateway --network=bridge -p "8080:8080" --name spring-boot-app --env LOG4J_VERSION=${LOG4J_VERSION} --env DISABLE_TRUST_URL=${DISABLE_TRUST_URL} --env REMOVE_JNDI_LOOKUP_CLASS=${REMOVE_JNDI_LOOKUP_CLASS} poc:${JAVA_VERSION} &
docker run --add-host=host.docker.internal:host-gateway --network=bridge -p "1389:1389" --name marshalsec marshalsec &
docker run --add-host=host.docker.internal:host-gateway --network=bridge -p "8888:80" --name exploit-http-server --env LOG4J_VERSION=${LOG4J_VERSION} exploit_nginx &
docker run --add-host=host.docker.internal:host-gateway --network=bridge --name curl_attacker --env PAYLOAD=${PAYLOAD_44228} --env TARGET_URI=${TARGET_URI} -v ${PWD}/exploits.sh:/exploits.sh curler
sleep 2