john8

Learn to Hack and secure Java based Web Applications

May 11th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.03 KB | None | 0 0
  1. Java Vulnerable Lab – Learn to Hack and secure Java based Web Applications
  2.  
  3. How to setup Java Vulnerable Lab?
  4.  
  5. Method 1.Very Easiest Method : VirtualBox VM The Most easiest way to use Java Vulnerable is using the VirtualBox VM which has everything set up and ready to use.
  6.  
  7. Steps:
  8.  
  9.   1. Install the VirtualBox : http://bit.ly/1TQ9o4q
  10.   2. Download the VM Image from here : http://bit.ly/1TQ9okX
  11.   3. Import the JavaVulnerable.ova into VirtualBox.
  12.   4. Change the Network Settings to Host-Only Network
  13.   5. Start the Machine and Log into the Machine( Credentials; username: root password: cspf)
  14.   6. Start Tomcat by entering "service tomcat start" in the Terminal
  15.   7. Start mysql by entering "service mysql start" in the Terminal
  16.   8. Find the IP Address of Machine
  17.   9. In your Browser, go to "http://[IP_ADDRESS_OF_VM]:8080/JavaVulnerableLab/install.jsp
  18.  10. Click the Install Button
  19.  11. Enjoy :)
  20.  
  21.  
  22. Method 2.Easiest Method : Standalone Web Application In this mehtod, you will be running an executable β€œJAR” file which runs the application with an embedded Apache Tomcat.
  23.  
  24. Steps:
  25.  
  26.    1. Install JDK
  27.    2. Download Executable Jar from here: http://bit.ly/21Vu9PJ
  28.    3. Double Click the JavaVulnerable.jar to run( if double click is not working, run this command "java -jar JavaVulnerable.jar" in your Terminal or CMD)
  29.    4. In your Browser, go to "http://localhost:8080/JavaVulnerableLab/install.jsp
  30.     5. Click the Install Button
  31.  
  32.  
  33.  
  34. Method 3. Using War file: This is a NORMAL method to deploy the WAR file.
  35.  
  36. Steps:
  37.  
  38.    1. Install Apache Tomcat server
  39.    2. Go to http://[Tomcat_INSTALLED_IP]:8080/manager/  (make sure you have modified tomcat-users.xml file of the tomcat to allow the manager).
  40.    3. Download our WAR file from here: http://bit.ly/1TzJbEG
  41.    4. Deploy the WAR in Apache Tomcat manager.
  42.    5. Go to http://[Tomcat_INSTALLED_IP]:8080/JavaVulnerableLab/install.jsp
  43.    6. Click the Install Button
  44.  
  45. Warning: Don’t run this app in Your Main Machine or in an online server. Install it in Vitual Machine.
Add Comment
Please, Sign In to add comment