Fixed some broken formatting on screen layout, added the Malicious code to the hidden lessons until real lessons can be built

git-svn-id: http://webgoat.googlecode.com/svn/trunk/webgoat@410 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
mayhew64@gmail.com 2009-11-09 03:58:08 +00:00
parent 5394b0d8a1
commit d48519d1ec
4 changed files with 53 additions and 22 deletions

View File

@ -1 +1,2 @@
#lesson.BufferOverflow.hidden=true #lesson.BufferOverflow.hidden=true
lesson.BlindScript.hidden=true

View File

@ -1 +1,2 @@
#lesson.BufferOverflow.hidden=true #lesson.BufferOverflow.hidden=true
lesson.BlindScript.hidden=true

View File

@ -184,6 +184,12 @@ html>body #navBar li {}
height: 100%; height: 100%;
padding: 10px; padding: 10px;
} }
#lessonAreaTop {
float: right;
width: 540px;
height: 15px;
padding: 10px;
}
#wrap { #wrap {
width: 800px; width: 800px;
@ -192,14 +198,23 @@ html>body #navBar li {}
#topRight { #topRight {
position:absolute; position:absolute;
left:485px; left:380px;
top:0px; top:0px;
width:320px; width:400px;
height:23px; height:23px;
z-index:3; z-index:3;
float: right; float: right;
} }
#topLeft {
position:absolute;
left:100px;
top:0px;
width:400px;
height:23px;
z-index:3;
float: right;
}
#topRightInner { #topRightInner {
position:absolute; position:absolute;
left:450px; left:450px;

View File

@ -114,24 +114,35 @@ StringBuffer buildList = new StringBuffer();
</div><% </div><%
}%> }%>
<div id="top"></div> <div id="top"></div>
<div id="topRight"> <div id="topLeft">
<div align="left"> <div align="left">
<form method="get" action="attack" style="display:inline;"> <form method="get" action="attack" style="display: inline;">
Choose another language: Choose another language: <select name="language" size="1"
<select name="language" size="1" onChange="changeLanguage();"> onChange="changeLanguage();">
<% <%
for(String lang: currentLesson.getAvailableLanguages()){ for(String lang: currentLesson.getAvailableLanguages()){
%> <option value="<%=lang%>" <% if(webSession.getCurrrentLanguage().equals(lang)) out.println("selected" );%>><%=lang%> </option><% %>
<option value="<%=lang%>"
} <% if(webSession.getCurrrentLanguage().equals(lang)) out.println("selected" );%>><%=lang%>
</option>
%> <%
</select>
}
</form><a href="attack?action=Logout" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('logout','','images/buttons/logoutOver.jpg',1)"><img src="images/buttons/logout.jpg" alt="LogOut" name="logout" width="45" height="22" border="0" id="logout" /></a> <a href="#getFAQ()" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('help','','images/buttons/helpOver.jpg',1)"><img src="images/buttons/help.jpg" alt="Help" name="help" width="22" height="22" border="0" id="help" /></a></div>
%>
</select></form></div></div>
<div align="right" id="topRight">
<a href="attack?action=Logout" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('logout','','images/buttons/logoutOver.jpg',1)"><img
src="images/buttons/logout.jpg" alt="LogOut" name="logout" width="45"
height="22" border="0" id="logout" /></a> <a href="#getFAQ()"
onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('help','','images/buttons/helpOver.jpg',1)"><img
src="images/buttons/help.jpg" alt="Help" name="help" width="22"
height="22" border="0" id="help" /></a>
</div> </div>
<div id="lessonTitle" align="right"><%=currentLesson.getTitle()%></div> <div id="lessonTitle" align="right"><%=currentLesson.getTitle()%></div>
<div id="hMenuBar"> <div id="hMenuBar">
<% <%
if (webSession.isAuthorizedInLesson(webSession.getRole(), WebSession.SHOWHINTS)) if (webSession.isAuthorizedInLesson(webSession.getRole(), WebSession.SHOWHINTS))
@ -187,7 +198,7 @@ StringBuffer buildList = new StringBuffer();
</div> </div>
<div id="twoCol"> <div id="twoCol">
<div id="menuSpacer"></div> <div id="menuSpacer"></div>
<div id="lessonArea"> <div id="lessonAreaTop">
<% <%
if (currentLesson != null) if (currentLesson != null)
{ {
@ -197,8 +208,11 @@ StringBuffer buildList = new StringBuffer();
<div id="reset" class="info"><a href="<%=webSession.getRestartLink()%>"><%=WebGoatI18N.get("RestartLesson")%></a></div> <div id="reset" class="info"><a href="<%=webSession.getRestartLink()%>"><%=WebGoatI18N.get("RestartLesson")%></a></div>
</div> </div>
<% <%
} }
%>
</div>
<div id="lessonArea">
<%
if (webSession.getHint() != null) if (webSession.getHint() != null)
{ {
printHint = "<div id=\"hint\" class=\"info\">" + webSession.getHint() + "</div><br>"; printHint = "<div id=\"hint\" class=\"info\">" + webSession.getHint() + "</div><br>";