基本配置

ubuntu

winsun@ubuntu:~/webgoat$ uname -a
Linux ubuntu 5.13.0-30-generic #33~20.04.1-Ubuntu SMP Mon Feb 7 14:25:10 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

jdk

winsun@ubuntu:~/webgoat$ pwd
/home/winsun/webgoat
winsun@ubuntu:~/webgoat$ ls -al
total 432648
drwxrwxr-x  3 winsun winsun      4096 Apr  6 22:02 .
drwxr-xr-x 25 winsun winsun      4096 Apr  6 22:09 ..
drwxrwxr-x  2 winsun winsun      4096 Apr  6 20:28 __MACOSX
-rwxr--r--  1 winsun winsun 156374894 Apr  6 22:02 jdk-18_linux-x64_bin.deb
-rwxr--r--  1 winsun winsun  96411569 Apr  6 20:22 webgoat-server-8.2.2.jar
-rwxr--r--  1 winsun winsun  53814896 Apr  6 20:22 webwolf-8.2.2.jar

sudo vim /etc/profile.d/jdk.sh source /etc/profile.d/jdk.sh jdk.sh:

winsun@ubuntu:~/webgoat$ cat /etc/profile.d/jdk.sh
export JAVA_HOME=/usr/lib/jvm/jdk-18/
export PATH=$PATH:$JAVA_HOME/bin

webgoat

  • 下载webgoat
    Download the latest WebGoat and WebWolf release from https://github.com/WebGoat/WebGoat/releases
  • 启动webgoat
    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] and browse to http://localhost:8080/WebGoat

The latest version of WebGoat needs Java 15 or above. By default, WebGoat uses port 8080, the database uses 9000 and WebWolf use port 9090 with the environment variable WEBGOAT_PORT, WEBWOLF_PORT and WEBGOAT_HSQLPO 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

引用