@@ -34,14 +34,10 @@ Install guide for Ubuntu:
3434
3535 1. git clone
[email protected] :WebGoat/WebGoat.git
3636 2. cd WebGoat
37- 3. git checkout develop
38- 4. Add handling of exception 'SQLException' to the method 'completed' in file:
39- /webgoat-lessons/sql-injection/src/main/java/org/owasp/webgoat/plugin/mitigation/SqlInjectionLesson12a.java
40- So, the updated should be line 34 and it should look like this:
41- public AttackResult completed(@RequestParam String ip) throws SQLException {
42- 5. mvn clean install -DskipTests
43- 6. Create the following files representing the entry point to WebGoat:
44- ./WebGoat/__MAIN__/src/main/java/Main.java:
37+ 3. git checkout a922c00
38+ 4. mvn clean install -DskipTests
39+ 5. Create the following files representing the entry point to WebGoat:
40+ ./__MAIN__/src/main/java/Main.java:
4541 /*
4642 Lessons considered in this file:
4743 [Sql Injection] Assignment6, registerNewUser
@@ -281,7 +277,7 @@ Install guide for Ubuntu:
281277
282278 Uncomment one of the blocks (depending on what lesson you want to analyse).
283279
284- ./WebGoat/ __MAIN__/pom.xml:
280+ ./__MAIN__/pom.xml:
285281 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
286282 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
287283 <modelVersion>4.0.0</modelVersion>
@@ -348,7 +344,7 @@ Install guide for Ubuntu:
348344 </dependencies>
349345 </project>
350346
351- ./WebGoat/ __MAIN__/build.py:
347+ ./__MAIN__/build.py:
352348 import os
353349 import shutil
354350
@@ -359,12 +355,13 @@ Install guide for Ubuntu:
359355 shutil.rmtree("./target/classes/org")
360356 if os.path.isfile("./target/__MAIN__-8.0.0.M3.jar"):
361357 os.remove("./target/__MAIN__-8.0.0.M3.jar")
362-
363- 6. cd __MAIN__
364- 7. python3 ./build.py
365- 8. cd ..
358+
359+ 6. copy ../../LIBRARIES/models/model/src/main/java/org to ./ __MAIN__/src/main/java/
360+ 7. cd __MAIN__
361+ 8. python3 ./build.py
366362 9. cd ..
367- 10. rm -rf ./webgoat-container
363+ 10. cd ..
364+ 11. rm -rf ./webgoat-container
368365
369366The WebGoat does not seem to have a deployment step. Fortunately, the whole
370367app is relatively small, so we can load everything for each lesson. It means
0 commit comments