Fixed Vagrant file
- Added correct wget urls for .jar files - changed server address to 0.0.0.0(pointing to all interfaces) because by default it listens for connections on VM's localhost only but we want to access webgoat on NAT adapter via port forwarding
This commit is contained in:
		
				
					committed by
					
						 Nanne Baars
						Nanne Baars
					
				
			
			
				
	
			
			
			
						parent
						
							a2f28460c0
						
					
				
				
					commit
					b6e4995d11
				
			
							
								
								
									
										8
									
								
								webgoat-images/vagrant-training/Vagrantfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								webgoat-images/vagrant-training/Vagrantfile
									
									
									
									
										vendored
									
									
								
							| @ -19,17 +19,17 @@ Vagrant.configure(2) do |config| | |||||||
|   end |   end | ||||||
|  |  | ||||||
|   config.vm.provision "shell", inline: <<-SHELL |   config.vm.provision "shell", inline: <<-SHELL | ||||||
|     wget https://github.com/WebGoat/WebGoat/releases/download/v8.0.0.RELEASE/webgoat-server-8.0.0.RELEASE.jar |     wget https://github.com/WebGoat/WebGoat/releases/download/v8.0.0.M21/webgoat-server-8.0.0.M21.jar | ||||||
|     wget https://github.com/WebGoat/WebGoat/releases/download/v8.0.0.RELEASE/webwolf-8.0.0.RELEASE.jar |     wget https://github.com/WebGoat/WebGoat/releases/download/v8.0.0.M21/webwolf-8.0.0.M21.jar | ||||||
|     sudo add-apt-repository ppa:openjdk-r/ppa |     sudo add-apt-repository ppa:openjdk-r/ppa | ||||||
|     sudo apt-get update |     sudo apt-get update | ||||||
|     sudo apt-get install openjdk-8-jre -y |     sudo apt-get install openjdk-8-jre -y | ||||||
|     SHELL |     SHELL | ||||||
|  |  | ||||||
|   config.vm.provision "shell", run: "always", privileged: false, inline: <<-SHELL |   config.vm.provision "shell", run: "always", privileged: false, inline: <<-SHELL | ||||||
|     java -jar webgoat-server-8.0.0.RELEASE.jar & |     java -jar webgoat-server-8.0.0.M21.jar --server.address=0.0.0.0 & | ||||||
|     sleep 40s |     sleep 40s | ||||||
|     java -jar webwolf-8.0.0.RELEASE.jar |     java -jar webwolf-8.0.0.M21.jar --server.address=0.0.0.0 & | ||||||
|     SHELL |     SHELL | ||||||
|  |  | ||||||
| end | end | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user