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@355 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
parent
c8908f6911
commit
d849168ce1
Binary file not shown.
@ -1,11 +1,11 @@
|
|||||||
ECHO OFF
|
ECHO OFF
|
||||||
IF NOT EXIST workspace GOTO UNPACK
|
IF NOT EXIST WebGoat_5_2_workspace GOTO UNPACK
|
||||||
set JAVAHOME=java
|
set JAVAHOME=java
|
||||||
set PATH=%JAVAHOME%\bin;%PATH%
|
set PATH=%JAVAHOME%\bin;%PATH%
|
||||||
set ECLIPSE_HOME=eclipse
|
set ECLIPSE_HOME=eclipse
|
||||||
SET JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx768m
|
SET JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx768m
|
||||||
|
|
||||||
%ECLIPSE_HOME%\eclipse.exe -data .\workspace
|
%ECLIPSE_HOME%\eclipse.exe -data .\WebGoat_5_2_workspace
|
||||||
GOTO END
|
GOTO END
|
||||||
|
|
||||||
:UNPACK
|
:UNPACK
|
||||||
|
@ -3,7 +3,6 @@ package org.owasp.webgoat.lessons;
|
|||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.FileReader;
|
import java.io.FileReader;
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
import java.io.StringReader;
|
import java.io.StringReader;
|
||||||
import java.net.HttpURLConnection;
|
import java.net.HttpURLConnection;
|
||||||
@ -12,6 +11,7 @@ import java.sql.ResultSet;
|
|||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.sql.Statement;
|
import java.sql.Statement;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.ecs.Element;
|
import org.apache.ecs.Element;
|
||||||
import org.apache.ecs.ElementContainer;
|
import org.apache.ecs.ElementContainer;
|
||||||
import org.apache.ecs.StringElement;
|
import org.apache.ecs.StringElement;
|
||||||
@ -531,7 +531,7 @@ public abstract class AbstractLesson extends Screen implements Comparable<Object
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
System.out.println("Solution: " + getLessonSolutionFileName());
|
//System.out.println("Solution: " + getLessonSolutionFileName());
|
||||||
src = readFromFile(new BufferedReader(new FileReader(s.getWebResource(getLessonSolutionFileName()))), false);
|
src = readFromFile(new BufferedReader(new FileReader(s.getWebResource(getLessonSolutionFileName()))), false);
|
||||||
} catch (Exception e)
|
} catch (Exception e)
|
||||||
{
|
{
|
||||||
@ -542,17 +542,7 @@ public abstract class AbstractLesson extends Screen implements Comparable<Object
|
|||||||
s.getWebgoatContext().getFeedbackAddress() + "</a>");
|
s.getWebgoatContext().getFeedbackAddress() + "</a>");
|
||||||
}
|
}
|
||||||
|
|
||||||
Html html = new Html();
|
// Solutions are html files
|
||||||
|
|
||||||
Head head = new Head();
|
|
||||||
head.addElement(new Title(getLessonSolutionFileName()));
|
|
||||||
|
|
||||||
Body body = new Body();
|
|
||||||
body.addElement(new StringElement(src));
|
|
||||||
|
|
||||||
html.addElement(head);
|
|
||||||
html.addElement(body);
|
|
||||||
|
|
||||||
return src;
|
return src;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -218,9 +218,24 @@ html>body #navBar li {}
|
|||||||
#reset {
|
#reset {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
float: right;
|
||||||
|
display: inline;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#training {
|
||||||
|
text-align: left;
|
||||||
|
font-weight: bold;
|
||||||
|
display: inline;
|
||||||
|
float: left;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#training_wrap {
|
||||||
|
width: 540px;
|
||||||
|
}
|
||||||
|
|
||||||
#hint{}
|
#hint{}
|
||||||
#parameter{}
|
#parameter{}
|
||||||
#cookie{}
|
#cookie{}
|
||||||
|
@ -177,7 +177,10 @@ StringBuffer buildList = new StringBuffer();
|
|||||||
if (currentLesson != null)
|
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 id="reset" class="info"><a href="<%=webSession.getRestartLink()%>">Restart this Lesson</a></div>
|
||||||
|
</div>
|
||||||
<%
|
<%
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
********** WebGoat 5.1
|
********** WebGoat 5.2
|
||||||
********** Jan/08/2008
|
********** July/08/2008
|
||||||
**********
|
**********
|
||||||
**
|
**
|
||||||
** Source Code: http://code.google.com/p/webgoat
|
** Source Code: http://code.google.com/p/webgoat
|
||||||
@ -37,7 +37,9 @@ CREDITS (Latest release)
|
|||||||
|
|
||||||
Bruce Mayhew (http://www.ouncelabs.com)
|
Bruce Mayhew (http://www.ouncelabs.com)
|
||||||
Rogan Dawes (http://dawes.za.net/rogan)
|
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)
|
Erwin Geirnaert (http://www.zionsecurity.com)
|
||||||
The many people who have sent comments and suggestions...
|
The many people who have sent comments and suggestions...
|
||||||
|
|
||||||
@ -45,9 +47,12 @@ CREDITS (Latest release)
|
|||||||
WHAT'S NEW
|
WHAT'S NEW
|
||||||
|
|
||||||
* WebGoat is now current at Google code. (http://code.google.com/p/webgoat)
|
* WebGoat is now current at Google code. (http://code.google.com/p/webgoat)
|
||||||
* Database Lessons
|
* Introduction and WebGoat instructions
|
||||||
* XSS Phishing
|
* Multi Level Login Lesson
|
||||||
* Lesson Solutions
|
* Session Fixation Lesson
|
||||||
|
* Insecure Login Lesson
|
||||||
|
* Lesson Solution Videos
|
||||||
|
* Bug Report Feature
|
||||||
* Many upgrades and minor fixes
|
* Many upgrades and minor fixes
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user