@@ -34,14 +34,10 @@ Install guide for Ubuntu:
34
34
35
35
1. git clone
[email protected] :WebGoat/WebGoat.git
36
36
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:
45
41
/*
46
42
Lessons considered in this file:
47
43
[Sql Injection] Assignment6, registerNewUser
@@ -281,7 +277,7 @@ Install guide for Ubuntu:
281
277
282
278
Uncomment one of the blocks (depending on what lesson you want to analyse).
283
279
284
- ./WebGoat/ __MAIN__/pom.xml:
280
+ ./__MAIN__/pom.xml:
285
281
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
286
282
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
287
283
<modelVersion>4.0.0</modelVersion>
@@ -348,7 +344,7 @@ Install guide for Ubuntu:
348
344
</dependencies>
349
345
</project>
350
346
351
- ./WebGoat/ __MAIN__/build.py:
347
+ ./__MAIN__/build.py:
352
348
import os
353
349
import shutil
354
350
@@ -359,12 +355,13 @@ Install guide for Ubuntu:
359
355
shutil.rmtree("./target/classes/org")
360
356
if os.path.isfile("./target/__MAIN__-8.0.0.M3.jar"):
361
357
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
366
362
9. cd ..
367
- 10. rm -rf ./webgoat-container
363
+ 10. cd ..
364
+ 11. rm -rf ./webgoat-container
368
365
369
366
The WebGoat does not seem to have a deployment step. Fortunately, the whole
370
367
app is relatively small, so we can load everything for each lesson. It means
0 commit comments