This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

bt-mutillidae-installer

By: tzanany on Oct 8th, 2012  |  syntax: Bash  |  size: 1.36 KB  |  views: 292  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/bash
  2. set +v
  3. clear
  4. echo "  Simple Mutillidae Install Script"
  5. echo "          Made By TzAnAnY"
  6. echo ""
  7. #Start Internet Services
  8. echo "  Start Internet Services."
  9. /etc/init.d/apache2 start
  10. /etc/init.d/mysql start
  11. echo ""
  12. #Download And Extract Mutillidae
  13. echo "  Download And Extract Mutillidae."
  14. wget "http://garr.dl.sourceforge.net/project/mutillidae/mutillidae-project/LATEST-mutillidae-2.3.7.zip" -O LATEST-mutillidae-2.3.7.zip
  15. unzip -os LATEST-mutillidae-2.3.7.zip -d /var/www
  16. echo ""
  17. #Configure And Create Database
  18. echo "  Configure And Create Database."
  19. sed -i 's/$mMySQLDatabasePassword = \"\"/$mMySQLDatabasePassword = \"toor\"/g' /var/www/mutillidae/classes/MySQLHandler.php
  20. wget "http://127.0.0.1/mutillidae/set-up-database.php" -O set-up-database.php
  21. echo ""
  22. #Create Start Script
  23. echo "  Create Start Script File."
  24. mkdir /pentest/training
  25. echo \#\!/bin/bash >/pentest/training/start-mutillidae.sh
  26. echo "/etc/init.d/apache2 start" >>/pentest/training/start-mutillidae.sh
  27. echo "/etc/init.d/mysql start" >>/pentest/training/start-mutillidae.sh
  28. echo "firefox http://localhost/mutillidae" >>/pentest/training/start-mutillidae.sh
  29. chmod +x /pentest/training/start-mutillidae.sh
  30. echo ""
  31. #Clean Up
  32. echo "  Clean up."
  33. rm -f set-up-database.php
  34. rm -f LATEST-mutillidae-2.3.7.zip
  35. echo ""
  36. echo "  To Open Mutillidae:"
  37. echo "sh /pentest/training/start-mutillidae.sh"
  38. #End
clone this paste RAW Paste Data