.github
.mvn
config
docker
Dockerfile
Readme.md
index.html
nginx.conf
pom.xml
start.sh
docs
webgoat-container
webgoat-integration-tests
webgoat-lessons
webgoat-server
webwolf
.gitignore
CODE_OF_CONDUCT.md
CONTRIBUTING.md
COPYRIGHT.txt
CREATE_RELEASE.MD
LICENSE.txt
PULL_REQUEST_TEMPLATE.md
README.MD
RELEASE_NOTES.md
mvn-debug
mvnw
mvnw.cmd
pom.xml
27 lines
885 B
Bash
27 lines
885 B
Bash
#!/bin/bash
|
|
|
|
cd /home/webgoat
|
|
service nginx start
|
|
sleep 1
|
|
echo "Starting WebGoat..."
|
|
|
|
java \
|
|
-Duser.home=/home/webgoat \
|
|
-Dfile.encoding=UTF-8 \
|
|
--add-opens java.base/java.lang=ALL-UNNAMED \
|
|
--add-opens java.base/java.util=ALL-UNNAMED \
|
|
--add-opens java.base/java.lang.reflect=ALL-UNNAMED \
|
|
--add-opens java.base/java.text=ALL-UNNAMED \
|
|
--add-opens java.desktop/java.beans=ALL-UNNAMED \
|
|
--add-opens java.desktop/java.awt.font=ALL-UNNAMED \
|
|
--add-opens java.base/sun.nio.ch=ALL-UNNAMED \
|
|
--add-opens java.base/java.io=ALL-UNNAMED \
|
|
-jar webgoat.jar --webgoat.build.version="$1" --server.address=0.0.0.0 > webgoat.log &
|
|
|
|
echo "Starting WebWolf..."
|
|
java -Duser.home=/home/webgoat -Dfile.encoding=UTF-8 -jar webwolf.jar --webgoat.build.version=$1 --server.address=0.0.0.0 > webwolf.log &
|
|
|
|
echo "Browse to http://localhost to get started" >> webgoat.log
|
|
|
|
tail -300f webgoat.log
|