Smaller eclipse workspace

Changed workspace name to reflect WebGoat 
Added the video solutions link
Update readmen to reflect contributions and new stuff

git-svn-id: http://webgoat.googlecode.com/svn/trunk/webgoat@355 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
mayhew64 2008-07-12 15:40:13 +00:00
parent 581151f166
commit 8f06b0197b
6 changed files with 34 additions and 21 deletions

Binary file not shown.

View File

@ -1,11 +1,11 @@
ECHO OFF
IF NOT EXIST workspace GOTO UNPACK
IF NOT EXIST WebGoat_5_2_workspace GOTO UNPACK
set JAVAHOME=java
set PATH=%JAVAHOME%\bin;%PATH%
set ECLIPSE_HOME=eclipse
SET JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx768m
%ECLIPSE_HOME%\eclipse.exe -data .\workspace
%ECLIPSE_HOME%\eclipse.exe -data .\WebGoat_5_2_workspace
GOTO END
:UNPACK

View File

@ -3,7 +3,6 @@ package org.owasp.webgoat.lessons;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.StringReader;
import java.net.HttpURLConnection;
@ -12,6 +11,7 @@ import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.List;
import org.apache.ecs.Element;
import org.apache.ecs.ElementContainer;
import org.apache.ecs.StringElement;
@ -531,7 +531,7 @@ public abstract class AbstractLesson extends Screen implements Comparable<Object
try
{
System.out.println("Solution: " + getLessonSolutionFileName());
//System.out.println("Solution: " + getLessonSolutionFileName());
src = readFromFile(new BufferedReader(new FileReader(s.getWebResource(getLessonSolutionFileName()))), false);
} catch (Exception e)
{
@ -542,17 +542,7 @@ public abstract class AbstractLesson extends Screen implements Comparable<Object
s.getWebgoatContext().getFeedbackAddress() + "</a>");
}
Html html = new Html();
Head head = new Head();
head.addElement(new Title(getLessonSolutionFileName()));
Body body = new Body();
body.addElement(new StringElement(src));
html.addElement(head);
html.addElement(body);
// Solutions are html files
return src;
}

View File

@ -218,9 +218,24 @@ html>body #navBar li {}
#reset {
text-align: right;
font-weight: bold;
float: right;
display: inline;
margin-bottom: 10px;
}
#training {
text-align: left;
font-weight: bold;
display: inline;
float: left;
margin-bottom: 10px;
}
#training_wrap {
width: 540px;
}
#hint{}
#parameter{}
#cookie{}

View File

@ -177,7 +177,10 @@ StringBuffer buildList = new StringBuffer();
if (currentLesson != null)
{
%>
<div id="training_wrap">
<div id="training" class="info"><a href="http://yehg.net/lab/pr0js/training/webgoat.php">Solution Videos</a></div>
<div id="reset" class="info"><a href="<%=webSession.getRestartLink()%>">Restart this Lesson</a></div>
</div>
<%
}

View File

@ -1,5 +1,5 @@
********** WebGoat 5.1
********** Jan/08/2008
********** WebGoat 5.2
********** July/08/2008
**********
**
** Source Code: http://code.google.com/p/webgoat
@ -37,7 +37,9 @@ CREDITS (Latest release)
Bruce Mayhew (http://www.ouncelabs.com)
Rogan Dawes (http://dawes.za.net/rogan)
Eric Sheridan (http://www.aspectsecurity.com)
Reto Lippuner
Marcel Wirth
Aung Khant (http://yehg.org)
Erwin Geirnaert (http://www.zionsecurity.com)
The many people who have sent comments and suggestions...
@ -45,9 +47,12 @@ CREDITS (Latest release)
WHAT'S NEW
* WebGoat is now current at Google code. (http://code.google.com/p/webgoat)
* Database Lessons
* XSS Phishing
* Lesson Solutions
* Introduction and WebGoat instructions
* Multi Level Login Lesson
* Session Fixation Lesson
* Insecure Login Lesson
* Lesson Solution Videos
* Bug Report Feature
* Many upgrades and minor fixes