Skip to content

Commit

Permalink
Changing README.md to integrate the new standalone possibility
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaars committed Sep 9, 2016
1 parent b250af3 commit 07d0292
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
17 changes: 7 additions & 10 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,20 @@ wish to simply try/test/run the current development version of WebGoat

#### 1. Download the easy run executable jar file which contains all the lessons and a embedded Tomcat server:

https://s3.amazonaws.com/webgoat-war/webgoat-container-7.0.1-war-exec.jar
https://s3.amazonaws.com/webgoat-war/webgoat-standalone-7.0.1-exec.jar

#### 2. Run it using java:

Open a command shell/window, browse to where you downloaded the easy run jar and type:

```Shell
java -jar webgoat-container-7.0.1-war-exec.jar
java -jar webgoat-standalone-7.0.1-exec.jar [-p | --p <port>] [-a | --address <address>]
```

#### 3. Browse to [http://localhost:8080/WebGoat](http://localhost:8080/WebGoat) and happy hacking !
Using the `--help` option will show the allowed command line arguments.

#### (Optional) If you would like to change the port or other options, use the help command for guidance:
#### 3. Browse to the url shown in the console and happy hacking !

```Shell
java -jar webgoat-container-7.0.1-war-exec.jar --help
```

# For Developers

Expand Down Expand Up @@ -150,11 +147,11 @@ The __maven package__ goal generates an executable .jar file:
```Shell
cd WebGoat
mvn package
cd webgoat-container/target
java -jar webgoat-container-7.1-SNAPSHOT-war-exec.jar http://localhost:8080/WebGoat
cd webgoat-standalone/target
java -jar webgoat-standalone-7.1-SNAPSHOT-exec.jar [-p | --p <port>] [-a | --address <address>]
```

Browse to [http://localhost:8080/WebGoat](http://localhost:8080/WebGoat) and happy hacking !
Browse to url shown in the console and happy hacking !

#### Option #3: Deploy the WebGoat WAR file in your local Tomcat or other Application Server:
The __maven package__ goal generates a .war file that can deployed into an Application Server, such as Tomcat
Expand Down
3 changes: 1 addition & 2 deletions webgoat-standalone/src/main/java/org/owasp/webgoat/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
* @version $Id: $Id
* @since July 24, 2016
*/
@Command(name = "webgoat", descriptions = "Start the WebGoat")
@Command(name = "webgoat", descriptions = "Starting WebGoat")
public class Main {

private final Logger logger = LoggerFactory.getLogger(Main.class);
Expand Down Expand Up @@ -73,7 +73,6 @@ void run() throws Exception {
tomcat.getServer().await();
}


public static void main(String[] args) throws Exception {
OptionParser parser = new OptionParser(Main.class);
parser.parse(args);
Expand Down

0 comments on commit 07d0292

Please sign in to comment.