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:
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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};
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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};
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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};
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user