-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-webgoad.sh
executable file
·34 lines (27 loc) · 1.13 KB
/
build-webgoad.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash -
#===============================================================================
#
# FILE: build-webgoad.sh
#
# USAGE: ./build-webgoad.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Amit Agarwal (aka), [email protected]
# ORGANIZATION: Mobileum
# CREATED: 04/30/2017 22:02
# Last modified: Sun Apr 30, 2017 11:34PM
# REVISION: ---
#===============================================================================
set -o nounset # Treat unset variables as an error
cd /root
mkdir WebGoat
cd WebGoat
curl --header 'Host: codeload.github.com' --header 'User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0' --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' --header 'Accept-Language: en-US,en;q=0.5' --header 'Connection: keep-alive' --header 'Upgrade-Insecure-Requests: 1' 'https://codeload.github.com/WebGoat/WebGoat/tar.gz/develop' -L -o webgoat.tar.gz
tar xvf webgoat.tar.gz
cd WebGoat-develop/
mvn clean install