Devido receber varios e-mails perguntando como se instala (e quando digo varios, e varios meeeesmo :S) o metasploit no ubuntu, resolvi fazer rapidamente este script para tal fim.E eu sei que o codigo tem bugs, mais ao que se propoe ele cumpre. :DTestado nas versoes 11.04 e 11.10.#!/bin/bashclearechoechoecho " ..:[ Install MSF ]:.."echoecho " Roberto Soares (espreto)"echo " robertoespreto@gmail.com"echoechoecho "[+] Install the Metasploit Framework on Ubuntu Linux now? y/n "; read whx if [ $whx = "y" ] then echo echo "[+] Installing the Ruby dependencies..." apt-get install -y ruby libopenssl-ruby libyaml-ruby libdl-ruby libiconv-ruby libreadline-ruby irb ri rubygems 1> /dev/null 2> /dev/stdout echo "OK!" echo "[+] Installing the Subversion client..." apt-get install -y subversion 1> /dev/null 2> /dev/stdout echo "OK!" echo "[+] Installing extensions (pcaprub, lorcon2, etc)..." apt-get install -y build-essential ruby-dev libpcap-dev 1> /dev/null 2> /dev/stdout echo "OK!" echo "[+] Download framework..." echo wget -c http://downloads.metasploit.com/data/releases/framework-latest.tar.bz2 echo "[+] Unpacking the file..." tar -jxvf framework-latest.tar.bz2 1> /dev/null 2> /dev/stdout mkdir -p /opt/metasploit cp -a msf/ /opt/metasploit/msf3 chown root:root -R /opt/metasploit/msf3 ln -sf /opt/metasploit/msf3/msf* /usr/local/bin/ rm -rf msf/ echo "OK!" echo echo " CONGRATULATIONS! Install Metasploit Successful!!!" else echo echo "Why?" echo " You do not know what you're missing!" echo exit 0; fiechoecho "[+] Update now? y/n "; read whx if [ $whx = "y" ] then echo " Wait..." msfupdate 1> /dev/null 2> /dev/stdout echo " OK!" else echo " Future use in the terminal: msfupdate" fiechoecho "[+] Install PostgreSQL Database now? y/n "; read whx if [ $whx = "y" ] then echo " Wait..." apt-get install -y postgresql-8.4 rubygems libpq-dev 1> /dev/null 2> /dev/stdout gem install pg 1> /dev/null 2> /dev/stdout apt-get install -y libreadline-dev libssl-dev libpq5 ruby-dev 1> /dev/null 2> /dev/stdout echo " OK!" echo echo "1o Choice a username (user for connect in database):" ; read username sudo -u postgres createuser -D -A -P $username echo " Done!" echo echo "2o Choice a database name (that will be used by msf):" ; read db_name sudo -u postgres createdb -O $username $db_name echo " Done!" echo echo " Connect to the postgreSQL database in msfconsole using:" echo " msf> db_driver postgresql" echo " msf> db_connect $username:password@127.0.0.1/$db_name" echo " msf> db_status" echo sleep 8 ficlearechoecho " Installation Complete!"echo " In terminal, run: msfconsole"echoechoecho " Good bye!"echo# end script:wq! orkut - meu perfil arranjo de flores em vaso de vidro. so 120,90. pelo ;3372-9610 ATUAL BAZAR TAMBEM COM VARIEDADES DE PRESENTES E ACESSORIOS!!!! DIVIDIMOS SUAS COMPRAS NO CARTAO EM ATE 24 VEZES COM O CREDIARIO ITAUCARD.... DIAS DAS MAES, ATUAL BAZAR!!!! Todos Visoes sobre a dinamica de Leitores - Ajuda do Blogger ATUAL BAZAR... COM XEROX, PAPELARIA, AVIAMENTOS, DIGITACAO DE TEXTOS, FAZEMOS CARTOES DE VISITA, IMPRIMIMOS DOCUMENTOS DE PEN DRIVE E CARTAO DE MEMORIA, RECARGA DE CELULAR,....RUA : BARROSO, 69 TELEFONE 24 24525759 EMAIL atualbazarvalenca@hotmail.comescaneamos documentos para enviar por email...imprimimos boletos da internet Visite nossa loja, e tenha variedade de escolha com o menor preco a cidade! ATUAL BAZAR, RUA DO BARROSO, 69 TEL ; 24 24525759 Uma Noite em ParisAssessoria e Cerimonial: Jadson BacellarDecoracao: Armazem das FestasFoto: Carol MarquesVideo: