diff --git a/webgoat-container/src/main/java/org/owasp/webgoat/HammerHead.java b/webgoat-container/src/main/java/org/owasp/webgoat/HammerHead.java index 2c15bf538..8af97ff56 100644 --- a/webgoat-container/src/main/java/org/owasp/webgoat/HammerHead.java +++ b/webgoat-container/src/main/java/org/owasp/webgoat/HammerHead.java @@ -243,6 +243,7 @@ public class HammerHead extends HttpServlet { httpDateFormat.setTimeZone(TimeZone.getTimeZone("GMT")); propertiesPath = getServletContext().getRealPath("/WEB-INF/webgoat.properties"); webgoatContext = new WebgoatContext(this); + logger.info("Browse to http://localhost:8080/WebGoat and happy hacking!"); } /** diff --git a/webgoat-container/src/main/java/org/owasp/webgoat/session/WebgoatContext.java b/webgoat-container/src/main/java/org/owasp/webgoat/session/WebgoatContext.java index c2f8c97ff..23faed378 100644 --- a/webgoat-container/src/main/java/org/owasp/webgoat/session/WebgoatContext.java +++ b/webgoat-container/src/main/java/org/owasp/webgoat/session/WebgoatContext.java @@ -51,9 +51,6 @@ public class WebgoatContext { /** Constant SHOWHINTS="ShowHints" */ public final static String SHOWHINTS = "ShowHints"; - /** Constant DEFUSEOSCOMMANDS="DefuseOSCommands" */ - public final static String DEFUSEOSCOMMANDS = "DefuseOSCommands"; - /** Constant FEEDBACK_ADDRESS_HTML="FeedbackAddressHTML" */ public final static String FEEDBACK_ADDRESS_HTML = "FeedbackAddressHTML"; @@ -86,8 +83,6 @@ public class WebgoatContext { private boolean showSolution = false; - private boolean defuseOSCommands = false; - private boolean enterprise = false; private boolean codingExercises = false; @@ -123,7 +118,6 @@ public class WebgoatContext { showCookies = "true".equals(getParameter(servlet, SHOWCOOKIES)); showSource = "true".equals(getParameter(servlet, SHOWSOURCE)); showSolution = "true".equals(getParameter(servlet, SHOWSOLUTION)); - defuseOSCommands = "true".equals(getParameter(servlet, DEFUSEOSCOMMANDS)); enterprise = "true".equals(getParameter(servlet, ENTERPRISE)); codingExercises = "true".equals(getParameter(servlet, CODING_EXERCISES)); feedbackAddressHTML = getParameter(servlet, FEEDBACK_ADDRESS_HTML) != null ? getParameter(servlet, @@ -192,15 +186,6 @@ public class WebgoatContext { return (databasePassword); } - /** - *

isDefuseOSCommands.

- * - * @return a boolean. - */ - public boolean isDefuseOSCommands() { - return defuseOSCommands; - } - /** *

isEnterprise.

* diff --git a/webgoat-container/src/main/resources/log4j.properties b/webgoat-container/src/main/resources/log4j.properties index 7dee72c2e..2d27828df 100644 --- a/webgoat-container/src/main/resources/log4j.properties +++ b/webgoat-container/src/main/resources/log4j.properties @@ -17,7 +17,8 @@ log4j.appender.CONSOLE.layout.conversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p # a little less spring output -log4j.category.org.springframework = INFO +log4j.category.org.springframework = INFO +log4j.category.org.apache=INFO log4j.appender.default.out=org.apache.log4j.ConsoleAppender log4j.appender.default.out.threeshold=DEBUG diff --git a/webgoat-container/src/main/webapp/WEB-INF/web.xml b/webgoat-container/src/main/webapp/WEB-INF/web.xml index 6431ce4f7..e566c64bf 100644 --- a/webgoat-container/src/main/webapp/WEB-INF/web.xml +++ b/webgoat-container/src/main/webapp/WEB-INF/web.xml @@ -126,10 +126,6 @@ CookieDebug true - - DefuseOSCommands - false - Enterprise true diff --git a/webgoat-container/src/main/webapp/WEB-INF/webgoat.properties b/webgoat-container/src/main/webapp/WEB-INF/webgoat.properties index f96d0c4ec..43a26ba47 100644 --- a/webgoat-container/src/main/webapp/WEB-INF/webgoat.properties +++ b/webgoat-container/src/main/webapp/WEB-INF/webgoat.properties @@ -10,11 +10,9 @@ lesson.BasicAuthentication.hidden=true lesson.BlindScript.hidden=true lesson.RemoteAdminFlaw.hidden=true lesson.HttpSplitting.hidden=true -lesson.BasicAuthentication.hidden=true lesson.SameOriginPolicyProtection.hidden=true lesson.SilentTransactions.hidden=true lesson.TraceXSS.hidden=true lesson.DBSQLInjection.hidden=true lesson.DBCrossSiteScripting.hidden=true -lesson.XPATHInjection.hidden=true lesson.ForcedBrowsing.hidden=true