Windows系统下WebGoat安装

        WebGoat是一个平台无关的Web安全漏洞实验环境,该环境需要Apache Tomcat和JAVA开发环境的支持。
  安装Java和Tomcat
  注意,从版本5开始,这一步可以省略,因为它们自身带有Java Development Kit和Tomcat 5.5。首先安装Java,您可以从 http://java.sun.com/downloads/安装和部署合适的版本,最低版本要求为1.4.1,然后安装Tomcat,可以从 http://tomcat.apache.org/download-55.cgi安装和部署Tomcat。
从官方网上下载了最新的版本WebGoat-OWASP_Standard-5.3,安装简单;
  
         安装到Windows系统
  1.将WebGoat-OWASP_Standard-5.3_RC1.zip解压至合适的目录中。
  2.启动Tomcat,切换至前面存放解压后的WebGoat的目录,然后双击webgoat.bat即可,若是webgoat.bat窗口一闪就没了,双击webgoat_8080.bat试试。
  3.启动浏览器,在地址栏输入 http://localhost/webgoat/attack 。
        注意:这个链接地址是区分大小写的,  5.2是 http://localhost/WebGoat/attack
                      5.3的是 http://localhost/webgoat/attack 
          输入用户名:guest         密码:guest
          即可进入以下界面:
 
      此时的webgoat只有在本地可以访问,如果要求内网中的其他的客户机也可以访问webgoat,则需要修改配置文件conf文件夹中的server_80.xml,删除Address=127.0.0.1,即可,具体原因如下:
Make WebGoat Reachable From Another Client
THIS MAKES IT POSSIBLE TO REALLY ATTACK YOUR SERVER! DO NOT DO THIS UNTIL YOU KNOW WHAT YOU ARE DOING. THIS CONFIGURATION SHOULD BE ONLY USED IN SAFE NETWORKS!
By its default configurations WebGoat is only reachable within the localhost. In a laboratory or a class there is maybe the need of having a server and a few clients. In this case it is possible to make WebGoat reachable.
The reason why WebGoat is only reachable within the localhost is the parameter address in the connectors for the non-SSL and SSL connection in server_80.xml. It is set to 127.0.0.1. The applications only listens on the port of this address for incoming connections if it is set. If you remove this parameter the server listens on all IPs on the specific port.
 

本文出自 “Purplebutterfly” 博客,转载请与作者联系!

你可能感兴趣的:(windows,职场,休闲,WebGoat安装)