Skip to main content

Setting Up WebGoat on Windows

What is WebGoat?

According to OWASP site: WebGoat is a deliberately insecure web application maintained by OWASP designed to teach web application security lessons. You can install and practice with WebGoat.
There are other 'goats' such as WebGoat for .Net. In each lesson, users must demonstrate their understanding of a security issue by exploiting a real vulnerability in the WebGoat applications. For example, in one of the lessons the user must use SQL injection to steal fake credit card numbers. The application aims to provide a realistic teaching environment, providing users with hints and code to further explain the lesson.

There are many ways to setup WebGoat in your Windows machine:

  1. Using Docker 
  2. Standalone setup with Java
  3. Cloning it from the Github repository then compiling with Maven
In this tutorial, we will be setting up WebGoat with Java. So first, let's make sure that you have the following:
  1. Java installed in your system. You can download the latest version here.
  2. The WebGoat .jar file which can be downloaded from here. Make sure you get the latest one under the The OWASP WebGoat Release. At the time of writing this tutorial, I can download version 7.1.

Great! Now that we have the two prerequisites above, we can proceed with the setup.

1. Open you command prompt as an Administrator.
2. Open the directory where you put the webgoat .jar file you just downloaded in the terminal using CD command. In my case I saved it to Downloads folder so I am going to type:

cd %UserProfile%\Downloads

3. Now, you should be in the right directory. Type the following command:

java -jar webgoat-container-7.1-exec.jar

*webgoat-container-7.1-exec.jar is the filename of the downloaded .jar file

You can also add additional parameter to open webgoat in different port aside from 8080

java -jar webgoat-container-7.1-exec.jar --server.port=9090


4. Press Enter and let it initialize.
5. If you see the message below, you are good to go! You can now access WebGoat via 127.0.0.1:8080/WebGoat



*8080 since I didn't change the default port. You can change this with the --server.port parameter in case there are already services running on port 8080 in your machine.


Cheers!

Popular posts from this blog

Importing Exploit-DB Exploits into Metasploit in Kali Linux for Offline Access

You're going to need three terminals open for this. Terminal 1 for starting metasploit Terminal 2 for importing the exploit to local Metasploit repository Terminal 3 for searchsploit which we will use to search for the exploit instead of opening your browser and looking in exploitdb. Let's be done with it! 1. First, open the first terminal to run metasploit with the following commands: > service postgresql start > msfconsole  2. Go to Terminal 3 and run the following command to update its database: > searchsploit -u 3. Open Terminal 2, then go to the metasploit modules directory by: > cd .msf4/modules 4. Then create a directory inside the msf4 modules folder: > mkdir exploits 5. Now, back to the Terminal 3. We will to search for an exploit we want to import. Let's first try to look for the explore ms15-100 by typing: > searchsploit msf15-100 After pressing Enter, you should be able to see the search result. It will be a t...

Using Termux in Android to Download Youtube Videos

In termux: apt update && apt upgrade Give termux access to your phone's filesystem via ~/storage/shared termux-setup-storage Install python: packages install python Install youtube-dl pip install youtube-dl Create a folder to store your downloaded videos: mkdir /data/data/com.termux/files/home/storage/shared/Youtube Create youtube-dl config (volume-down key emulates Ctrl in termux): nano ~/.config/youtube-dl/config The contents of my config is as follows: --no-mtime -o /data/data/com.termux/files/home/storage/shared/Youtube/%(title)s.%(ext)s -f "best[height<=480]" (the height<=480 tells youtube-dl to download the best quality version up to 480px in width. You can change to 240, 360, 720 or 1080, etc to suit your needs / bandwidth restrictions. Save with "Volume-down" + O, then close nano with "Vol-down" + X Create "termux-url-opener" in ~/bin to enable one-click download via the "Share" menu i...

Awesome Youtube Channels to Learn From

  Eli the Computer Guy Covering diverse topics ranging from web development to networking and various others, Eli The Computer Guy is a top source of learning on YouTube for every tech domain. The channel has tons of videos on web programming illustrated with live practical demonstrations. TheNewBoston  With more than two million subscribers, TheNewBoston is the most-watched web development YouTube channel for learning programming languages. Founded by Bucky Roberts, the channel is a popular source of free web learning for many beginners. It has extensive tutorials available on both backend and frontend languages, intended for a newbie to advanced learners. Derek Banas  Derek Banas brings to the table, extensive web tutorials on different programming languages made for both beginners and advanced developers. With more than 1000 videos already uploaded, this web development YouTube channel has separate playlists for every language and is regularly updated twice a week. Pro...