Jump to content

Ubuntu Metasploit Install Script ....


Trip

Recommended Posts

Installs all required libs for metasploit, nmap, sqlmap, aircrack-ng & wireless-tools (iwconfig etc)

using gedit ....

copy the text below to a file ...

clear

echo "Installing metasploit for all users."

echo "Process started by $USER"

echo "======================================"

echo "Installing metasploit dependancies ..."

sudo apt-get install ruby libruby rdoc

sudo apt-get install libyaml-ruby

sudo apt-get install libzlib-ruby

sudo apt-get install libopenssl-ruby

sudo apt-get install libdl-ruby

sudo apt-get install libreadline-ruby

sudo apt-get install libiconv-ruby

sudo apt-get install rubygems

clear

echo "Installing additional tools ..."

sudo apt-get install nmap

sudo apt-get install aircrack-ng

sudo apt-get install wireless-tools

sudo apt-get install wifi-radar

sudo apt-get install sqlmap

clear

echo "Installing metasploit ..."

cd /

cd opt

svn co http://metasploit.com/svn/framework3/trunk/ metasploit

cd metasploit

clear

echo "Metasploit install complete."

echo "Executing metasploit console (msfconsole) ..."

./msfconsole

exit 0

save this as "ubuntu_metasploit.sh" in Documents

now open click

applications > accessories > terminal

when terminal has loaded type

su

press enter, login as super user using the SU password

(if you don't know the password chances are you havn't set it up yet in this case type "sudo passwd" press enter, now enter your user password to begin with, then type a password for the root account, now u can login as SU, go login as SU, by typing SU)

cd Documents

(ensure your in the correct directory, if you saved your file some place other than in Documents)

now type

chmod -x ubuntu_metasploit.sh

chmod 755 ubuntu_metasploit.sh

and lastly type

./ubuntu_metasploit.sh

confirm the installs as prompted

and wait for the msfconsole to load :)

peace

Trip

Edited by Trip
Link to comment
Share on other sites

Also, use "sudo su" instead of creating a root password.

svn update will not run if the version is the most recent .... i suppose i should take this out as it will almost always be the most recent version lol

and thanks h@l0 will update the script when i get chance

and please go easy on me im very new to linux .... wanted to help out a little & make some people's lives easier ;0)

and i suppose i ought to mention ... that this should be run from /opt not Documents as it will install it to the current folder

bbs lol :)

Edited by Trip
Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...