Posted By

olorinj on 10/17/13


Tagged

security ubuntu lite


Versions (?)

Live Ubuntu Security Converter


 / Published in: Bash
 

Script to prepare a live or new installation ubuntu image to use for penetration testing

  1. sudo apt-get purge -y --force-yes accountsservice* aisleriot* gnome-mahjongg* gnome-mines* gnome-sudoku gnomine* gnome-orca* bluez* ubiquity* usb-creator* brasero* evolution* rhythmbox* simple-scan* telepathy* ubuntu-sounds* ubuntuone* thunderbird* ubuntu-wallpapers* language-pack-zh* dvd+rw-tools* firefox-locale-zh* totem*
  2. sudo rm -rf /usr/lib/ubiquity /usr/lib/python3/dist-packages/usbcreator /usr/lib/python3/dist-packages/orca
  3. sudo apt-get autoremove
  4. sudo apt-get clean
  5. sudo apt-get autoclean
  6. # Agregar repositorios. Fuente: http://askubuntu.com/questions/78613/how-do-i-enable-the-universe-repository-from-the-command-line
  7. sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
  8. sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
  9. sudo apt-get update
  10. sudo apt-get install -y --force-yes aptitude synaptic aptitude
  11. # JoomScan . Fuente: http://samiux.blogspot.com.es/2013/05/howto-joomscan-on-ubuntu-desktop-1204.html
  12. sudo apt-get install -y --force-yes libwww-perl libwww-mechanize-perl
  13. sudo -sH
  14. cd /opt
  15. mkdir joomscan
  16. cd joomscan
  17. wget http://sourceforge.net/projects/joomscan/files/latest/download?source=files -O joomscan.zip
  18. unzip joomscan.zip
  19. rm joomscan.zip
  20. chmod +x joomscan.pl
  21. ./joomscan.pl update
  22. echo [Desktop Entry] > /usr/share/applications/joomscan.desktop
  23. echo Comment=Analizador JoomScan >> /usr/share/applications/joomscan.desktop
  24. echo Name=JoomScan >> /usr/share/applications/joomscan.desktop
  25. echo Exec=gksudo perl /opt/joomscan/joomscan.pl >> /usr/share/applications/joomscan.desktop
  26. echo Encoding=UTF-8 >> /usr/share/applications/joomscan.desktop
  27. echo Terminal=true >> /usr/share/applications/joomscan.desktop
  28. echo Type=Application >> /usr/share/applications/joomscan.desktop
  29. cd /usr/local/bin
  30. sudo ln -s /opt/joomscan/joomscan.pl
  31. # Metasploit. Fuente: http://samiux.blogspot.com.es/2013/05/howto-metasploit-on-ubuntu-desktop-1204.html
  32. sudo apt-get install -y --force-yes ruby1.9.1 build-essential
  33. wget http://downloads.metasploit.com/data/releases/metasploit-latest-linux-x64-installer.run
  34. chmod +x metasploit-latest-linux-x64-installer.run
  35. sudo ./metasploit-latest-linux-x64-installer.run

Report this snippet  

You need to login to post a comment.