Minor 5.2 changes.
git-svn-id: http://webgoat.googlecode.com/svn/trunk@349 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
parent
ad0b90bd24
commit
b0ade9782e
@ -56,7 +56,7 @@
|
|||||||
|
|
||||||
<property name="app.home" value="${basedir}/project"/>
|
<property name="app.home" value="${basedir}/project"/>
|
||||||
<property name="app.name" value="WebGoat"/> <!-- MUST BE CONSISTENT WITH project/build.xml! -->
|
<property name="app.name" value="WebGoat"/> <!-- MUST BE CONSISTENT WITH project/build.xml! -->
|
||||||
<property name="app.version" value="5.1"/> <!-- MUST BE CONSISTENT WITH project/build.xml! -->
|
<property name="app.version" value="5.2"/> <!-- MUST BE CONSISTENT WITH project/build.xml! -->
|
||||||
<property name="catalina.home" value="${basedir}/tomcat"/>
|
<property name="catalina.home" value="${basedir}/tomcat"/>
|
||||||
<property name="dist.home" value="${app.home}/dist"/>
|
<property name="dist.home" value="${app.home}/dist"/>
|
||||||
<property name="dist.owasp" value="${app.home}/owasp_distributions"/>
|
<property name="dist.owasp" value="${app.home}/owasp_distributions"/>
|
||||||
|
@ -59,6 +59,8 @@ import org.owasp.webgoat.session.WebgoatContext;
|
|||||||
public class HammerHead extends HttpServlet
|
public class HammerHead extends HttpServlet
|
||||||
{
|
{
|
||||||
|
|
||||||
|
private static final String WELCOMED = "welcomed";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@ -206,9 +208,9 @@ public class HammerHead extends HttpServlet
|
|||||||
|
|
||||||
// If this session has not seen the landing page yet, go there instead.
|
// If this session has not seen the landing page yet, go there instead.
|
||||||
HttpSession session = webSession.getRequest().getSession();
|
HttpSession session = webSession.getRequest().getSession();
|
||||||
if (session.getAttribute("welcomed") == null)
|
if (session.getAttribute(WELCOMED) == null)
|
||||||
{
|
{
|
||||||
session.setAttribute("welcomed", "true");
|
session.setAttribute(WELCOMED, "true");
|
||||||
page = "/webgoat.jsp";
|
page = "/webgoat.jsp";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -432,6 +434,8 @@ public class HammerHead extends HttpServlet
|
|||||||
// Create new custom session and save it in the HTTP session
|
// Create new custom session and save it in the HTTP session
|
||||||
// System.out.println( "HH Creating new WebSession: " );
|
// System.out.println( "HH Creating new WebSession: " );
|
||||||
session = new WebSession(webgoatContext, context);
|
session = new WebSession(webgoatContext, context);
|
||||||
|
// Ensure splash screen shows on any restart
|
||||||
|
hs.removeAttribute(WELCOMED);
|
||||||
hs.setAttribute(WebSession.SESSION, session);
|
hs.setAttribute(WebSession.SESSION, session);
|
||||||
// reset timeout
|
// reset timeout
|
||||||
hs.setMaxInactiveInterval(sessionTimeoutSeconds);
|
hs.setMaxInactiveInterval(sessionTimeoutSeconds);
|
||||||
|
@ -78,7 +78,7 @@ public class HowToWork extends LessonAdapter
|
|||||||
*/
|
*/
|
||||||
public String getTitle()
|
public String getTitle()
|
||||||
{
|
{
|
||||||
return ("How to work with Webgoat");
|
return ("How to work with WebGoat");
|
||||||
}
|
}
|
||||||
|
|
||||||
public Element getCredits()
|
public Element getCredits()
|
||||||
|
@ -18,11 +18,13 @@ WebSession webSession = ((WebSession) session.getAttribute("websession"));
|
|||||||
<div id="wrap">
|
<div id="wrap">
|
||||||
<div id="top"></div>
|
<div id="top"></div>
|
||||||
<div id="start">
|
<div id="start">
|
||||||
<p>Thank you for using WebGoat!</p>
|
<p>Thank you for using WebGoat! This program is a demonstration of common web application flaws.
|
||||||
<p>This program is a demonstration of common web application flaws.
|
|
||||||
The exercises are intended to provide hands on experience with
|
The exercises are intended to provide hands on experience with
|
||||||
application penetration testing techniques. </p><p>The WebGoat project is lead
|
application penetration testing techniques. </p>
|
||||||
|
<p>The WebGoat project is lead
|
||||||
by Bruce Mayhew. Please send all comments to Bruce at <%=webSession.getWebgoatContext().getFeedbackAddress()%>.</p>
|
by Bruce Mayhew. Please send all comments to Bruce at <%=webSession.getWebgoatContext().getFeedbackAddress()%>.</p>
|
||||||
|
<p>Thanks to <a href="http://www.ouncelabs.com"><img align="top" height="20" width="160" border = "0" src="images/logos/ounce.jpg" alt="Ounce Labs"/></a> for supporting Bruce on the WebGoat Project.</p>
|
||||||
|
|
||||||
<div id="team">
|
<div id="team">
|
||||||
<table border="0" align="center" class="lessonText">
|
<table border="0" align="center" class="lessonText">
|
||||||
<tr>
|
<tr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user