Minor nits

git-svn-id: http://webgoat.googlecode.com/svn/trunk@51 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
mayhew64 2006-12-29 04:51:37 +00:00
parent 59c2427f0d
commit cd4e6a3b95
3 changed files with 5 additions and 5 deletions

View File

@ -128,9 +128,8 @@ public class HttpOnly extends LessonAdapter {
*/
protected List getHints()
{
List hints = new ArrayList();
List<String> hints = new ArrayList<String>();
hints.add( "Read the directions and try out the buttons." );
return hints;
}

View File

@ -192,7 +192,7 @@ public class HttpSplitting extends LessonAdapter {
hints.add( "Use CR (%0d) and LF (%0a) for a new line" );
hints.add( "The Content-Length: 0 will tell the server that the first request is over." );
hints.add( "A 200 OK message looks like this: HTTP/1.1 200 OK" );
hints.add( "Try language=?foobar%0d%0aContent-Length:%200%0d%0a%0d%0aHTTP/1.1%20200%20OK%0d%0aContent-Type:%20text/html%0d%0aContent-Length:%2019%0d%0a%0d%0a<html>hahahahaha</html>" );
hints.add( "Try: language=?foobar%0d%0aContent-Length:%200%0d%0a%0d%0aHTTP/1.1%20200%20OK%0d%0aContent-Type:%20text/html%0d%0aContent-Length:%2047%0d%0a%0d%0a&lt;html&gt;Insert undesireable content here&lt;/html&gt;" );
return hints;
}

View File

@ -104,7 +104,8 @@ public class LogSpoofing extends LessonAdapter {
List<String> hints = new ArrayList<String>();
hints.add( "Try to fool the humane eye by using new lines." );
hints.add( "Use CR (%0d) and LF (%0a) for a new line." );
hints.add( "Try: fooledYa%0d%0aLogin Succeeded for username: admin" );
hints.add( "Try: Smith%0d%0aLogin Succeeded for username: admin" );
hints.add( "Try: Smith%0d%0aLogin Succeeded for username: admin&lt;script&gt;alert(document.cookie)&lt;/script&gt;" );
return hints;
}