Follow us on Twitter!
Ideas are far more powerful than guns.
Sunday, April 20, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 33
Guests Online: 30
Members Online: 3

Registered Members: 82843
Newest Member: hx47
Latest Articles
View Thread

HellBound Hackers | Computer General | Trouble Shooting

Author

WebGoat Help


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 30-04-08 19:31
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
Code
#! /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