From 4ce098f39b189c656b407042582aaf687aafcc8f Mon Sep 17 00:00:00 2001 From: Nanne Baars Date: Wed, 4 Aug 2021 10:41:51 +0300 Subject: [PATCH] Pass options directly instead of setting env variables --- README.MD | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/README.MD b/README.MD index b7100c1a6..c40d4bf6a 100644 --- a/README.MD +++ b/README.MD @@ -27,14 +27,12 @@ you are caught engaging in unauthorized hacking, most companies will fire you. Claiming that you were doing security research will not work as that is the first thing that all hackers claim.* -# Installation Instructions: +# Installation instructions: ## 1. Run using Docker Every release is also published on [DockerHub]((https://hub.docker.com/r/webgoat/webgoat-8.0/)). -### Using docker run - The easiest way to start WebGoat as a Docker container is to use the all-in-one docker container. This is a docker image that has WebGoat and WebWolf running inside. ```shell @@ -51,22 +49,13 @@ WebWolf will be located at: http://127.0.0.1:9090/WebWolf Download the latest WebGoat and WebWolf release from [https://github.com/WebGoat/WebGoat/releases](https://github.com/WebGoat/WebGoat/releases) -```Shell -java -jar webgoat-server-8.1.0.jar [--server.port=8080] [--server.address=localhost] -java -jar webwolf-8.1.0.jar [--server.port=9090] [--server.address=localhost] +```shell +java -jar webgoat-server-8.2.1.jar [--server.port=8080] [--server.address=localhost] [--hsqldb.port=9001] +java -jar webwolf-8.2.1.jar [--server.port=9090] [--server.address=localhost] [--hsqldb.port=9001] ``` -The latest version of WebGoat needs Java 15 or above. By default, WebGoat and Webwolf start on port 8080, 9000 and 9090 with the environment variable WEBGOAT_PORT, WEBGOAT_HSQLPORT and WEBWOLF_PORT you can set different values. -```Shell -export WEBGOAT_PORT=18080 -export WEBGOAT_HSQLPORT=19001 -export WEBWOLF_PORT=19090 -java -jar webgoat-server-8.1.0.jar -java -jar webwolf-8.1.0.jar -``` - -Use `set` instead of export if you're using Windows cmd. - +WebGoat will be located at: http://127.0.0.1:8080/WebGoat and +WebWolf will be located at: http://127.0.0.1:9090/WebWolf (change ports if necessary) ## 3. Run from the sources