Implement non-coding modes for the labs

git-svn-id: http://webgoat.googlecode.com/svn/trunk@211 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
rogan.dawes
2007-07-25 12:57:57 +00:00
parent f62eb33c4b
commit a9fe7e6099
9 changed files with 39 additions and 5 deletions

View File

@ -197,7 +197,9 @@ public class CrossSiteScripting extends GoatHillsFinancial
@Override
public String[] getStages() {
return new String[] {STAGE1, STAGE2, STAGE3, STAGE4, STAGE5, STAGE6};
if (getWebgoatContext().isCodingExercises())
return new String[] {STAGE1, STAGE2, STAGE3, STAGE4, STAGE5, STAGE6};
return new String[] {STAGE1, STAGE3, STAGE5};
}
public void handleRequest(WebSession s)

View File

@ -153,7 +153,9 @@ public class DBCrossSiteScripting extends GoatHillsFinancial
@Override
public String[] getStages() {
return new String[] {STAGE1, STAGE2};
if (getWebgoatContext().isCodingExercises())
return new String[] {STAGE1, STAGE2};
return new String[] {STAGE1};
}
public void handleRequest(WebSession s)

View File

@ -124,7 +124,9 @@ public class DBSQLInjection extends GoatHillsFinancial
@Override
public String[] getStages() {
return new String[] {STAGE1, STAGE2};
if (getWebgoatContext().isCodingExercises())
return new String[] {STAGE1, STAGE2};
return new String[] {STAGE1};
}
/**

View File

@ -123,7 +123,9 @@ public class RoleBasedAccessControl extends GoatHillsFinancial
@Override
public String[] getStages() {
return new String[] {STAGE1, STAGE2, STAGE3, STAGE4};
if (getWebgoatContext().isCodingExercises())
return new String[] {STAGE1, STAGE2, STAGE3, STAGE4};
return new String[] {STAGE1, STAGE3};
}
/**

View File

@ -131,7 +131,9 @@ public class SQLInjection extends GoatHillsFinancial
@Override
public String[] getStages() {
return new String[] {STAGE1, STAGE2, STAGE3, STAGE4};
if (getWebgoatContext().isCodingExercises())
return new String[] {STAGE1, STAGE2, STAGE3, STAGE4};
return new String[] {STAGE1, STAGE3};
}
/**