Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

WebGoat Help


ghost's Avatar
0 0

Hello guys i am trying to install WebGoat 5.1 on my linux i got alredy installed java jdk 1.5 but i have problem with that webgoat.sh…. i just cant figure it out it always says that i need to point my java_home… i did it but it still print that message…. help me out there is code of my webgoat.sh ```markup#! /bin/sh

SYSTEM=uname -s CATALINA_HOME=./tomcat PATH=${PATH}:./tomcat/bin export CATALINA_HOME PATH

chmod +x ./$CATALINA_HOME/bin/*.sh if [ $SYSTEM = "Darwin" ]; then

    export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/

else

is_java_1dot5() { if [ "X$JAVA_HOME" != "X" -a -d $JAVA_HOME ]; then $JAVA_HOME/bin/java -version 2>&1 | grep 'version \"1.5' >/dev/null if [ $? -ne 0 ]; then echo "The JVM in \$JAVA_HOME isn't version 1.5." exit 1 fi else echo "Please set JAVA_HOME to a Java 1.5 JDK install" exit 1 fi }

is_java_1dot5

fi

case "$1" in start80) cp -f $CATALINA_HOME/conf/server_80.xml $CATALINA_HOME/conf/server.xml $CATALINA_HOME/bin/startup.sh printf "\n Open http://127.0.0.1/WebGoat/attack" printf "\n Username: guest" printf "\n Password: guest" printf "\n Or try http://guest:guest@127.0.0.1/WebGoat/attack \n\n\r" sleep 2 tail -f $CATALINA_HOME/logs/catalina.out ;; start8080) cp -f $CATALINA_HOME/conf/server_8080.xml $CATALINA_HOME/conf/server.xml $CATALINA_HOME/bin/startup.sh printf "\n Open http://127.0.0.1:8080/WebGoat/attack" printf "\n Username: guest" printf "\n Password: guest" printf "\n Or try http://guest:guest@127.0.0.1:8080/WebGoat/attack \n\n\r" sleep 2 tail -f $CATALINA_HOME/logs/catalina.out ;; stop) $CATALINA_HOME/bin/shutdown.sh ;; *) echo $"Usage: $prog {start8080|start80|stop}" exit 1 ;; esac