Adjust lesson template (#704)
* Remove method `getId()` from all lessons as it defaults to the class name * remove clean up endpoint * remove unused class `RequestParameter` * remove unused class `PluginLoadingFailure` * Move `CourseConfiguration` to lesson package * Add more content around the lesson template lesson and make it visible as a lesson in WebGoat * Remove explicit invocation `trackProgress()` inside WebGoat framework so assignments only need to return an `AttackResult` * Put original solution back as well for SQL string injection * review comments * Add
This commit is contained in:
committed by
René Zubcevic
parent
f40b6ffd31
commit
5dd6b31905
@ -42,9 +42,4 @@ public class SecurePasswords extends Lesson {
|
||||
public String getTitle() {
|
||||
return "secure-passwords.title";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getId() {
|
||||
return "SecurePasswords";
|
||||
}
|
||||
}
|
||||
|
@ -69,9 +69,9 @@ public class SecurePasswordsAssignment extends AssignmentEndpoint {
|
||||
output.append("<b>Estimated cracking time in seconds: </b>" + calculateTime((long) strength.getCrackTimeSeconds().getOnlineNoThrottling10perSecond()));
|
||||
|
||||
if (strength.getScore() >= 4)
|
||||
return trackProgress(success().feedback("securepassword-success").output(output.toString()).build());
|
||||
return success(this).feedback("securepassword-success").output(output.toString()).build();
|
||||
else
|
||||
return trackProgress(failed().feedback("securepassword-failed").output(output.toString()).build());
|
||||
return failed(this).feedback("securepassword-failed").output(output.toString()).build();
|
||||
}
|
||||
|
||||
public static String calculateTime(long seconds) {
|
||||
|
Reference in New Issue
Block a user