Install Metasploit on Ubuntu. 9.04


here there are metasploit installing on ubuntu 9.04 and you free to use step by step



root@bejo-legowo:/home/legowo# sudo apt-get install subversion ruby libruby rdoc libyaml-ruby libzlib-ruby
Reading package lists... Done
Building dependency tree
Reading state information... Done
libruby is already the newest version.
libyaml-ruby is already the newest version.
libzlib-ruby is already the newest version.
The following packages were automatically installed and are no longer required:
libstdc++6-4.3-dev g++-4.3 libatk1-ruby1.8 g++ libglib2-ruby1.8
libgdk-pixbuf2-ruby1.8
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
irb1.8 rdoc1.8 ruby1.8
Suggested packages:
graphviz ruby1.8-examples ri1.8 subversion-tools db4.6-util
The following NEW packages will be installed:
irb1.8 rdoc rdoc1.8 ruby ruby1.8 subversion
0 upgraded, 6 newly installed, 0 to remove and 3 not upgraded.
Need to get 26.1kB/594kB of archives.
After this operation, 5665kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://id.archive.ubuntu.com jaunty/universe rdoc 4.2 [5326B]
Get:2 http://id.archive.ubuntu.com jaunty/main ruby 4.2 [20.7kB]
Fetched 26.1kB in 3s (8406B/s)
Selecting previously deselected package ruby1.8.
(Reading database ... 150719 files and directories currently installed.)
Unpacking ruby1.8 (from .../ruby1.8_1.8.7.72-3ubuntu0.1_i386.deb) ...
Selecting previously deselected package irb1.8.
Unpacking irb1.8 (from .../irb1.8_1.8.7.72-3ubuntu0.1_all.deb) ...
Selecting previously deselected package rdoc1.8.
Unpacking rdoc1.8 (from .../rdoc1.8_1.8.7.72-3ubuntu0.1_all.deb) ...
Selecting previously deselected package rdoc.
Unpacking rdoc (from .../apt/archives/rdoc_4.2_all.deb) ...
Selecting previously deselected package ruby.
Unpacking ruby (from .../apt/archives/ruby_4.2_all.deb) ...
Selecting previously deselected package subversion.
Unpacking subversion (from .../subversion_1.5.4dfsg1-1ubuntu2.1_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for menu ...
Setting up ruby1.8 (1.8.7.72-3ubuntu0.1) ...
Setting up irb1.8 (1.8.7.72-3ubuntu0.1) ...

Setting up rdoc1.8 (1.8.7.72-3ubuntu0.1) ...
Setting up rdoc (4.2) ...
Setting up ruby (4.2) ...
Setting up subversion (1.5.4dfsg1-1ubuntu2.1) ...
Processing triggers for menu ...
root@bejo-legowo:/home/legowo# sudo apt-get install libopenssl-ruby libdl-ruby libreadline-ruby
Reading package lists... Done
Building dependency tree
Reading state information... Done
libopenssl-ruby is already the newest version.
libdl-ruby is already the newest version.
libreadline-ruby is already the newest version.
The following packages were automatically installed and are no longer required:
libstdc++6-4.3-dev g++-4.3 libatk1-ruby1.8 g++ libglib2-ruby1.8 libgdk-pixbuf2-ruby1.8
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
root@bejo-legowo:/home/legowo# sudo apt-get install libiconv-ruby rubygems libgtk2-ruby libglade2-ruby
Reading package lists... Done
Building dependency tree
Reading state information... Done
libiconv-ruby is already the newest version.
The following packages were automatically installed and are no longer required:
libstdc++6-4.3-dev g++-4.3 g++
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libcairo-ruby1.8 libglade2-ruby1.8 libgtk2-ruby1.8 libpango1-ruby1.8 rubygems1.8
Suggested packages:
libgnome2-ruby build-essential rubygems-doc
The following NEW packages will be installed:
libcairo-ruby1.8 libglade2-ruby libglade2-ruby1.8 libgtk2-ruby libgtk2-ruby1.8 libpango1-ruby1.8 rubygems rubygems1.8
0 upgraded, 8 newly installed, 0 to remove and 3 not upgraded.
Need to get 771kB/943kB of archives.
After this operation, 3723kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://id.archive.ubuntu.com jaunty/universe libcairo-ruby1.8 1.6.3-1 [59.1kB]
Get:2 http://id.archive.ubuntu.com jaunty/universe libpango1-ruby1.8 0.17.0~rc1-6ubuntu1 [41.3kB]
Get:3 http://id.archive.ubuntu.com jaunty/universe libgtk2-ruby1.8 0.17.0~rc1-6ubuntu1 [323kB]
Get:4 http://id.archive.ubuntu.com jaunty/universe libglade2-ruby1.8 0.17.0~rc1-6ubuntu1 [10.8kB]
Get:5 http://id.archive.ubuntu.com jaunty/universe libglade2-ruby 0.17.0~rc1-6ubuntu1 [28.9kB]
Get:6 http://id.archive.ubuntu.com jaunty/universe libgtk2-ruby 0.17.0~rc1-6ubuntu1 [307kB]
Fetched 771kB in 1min 6s (11.5kB/s)
Selecting previously deselected package rubygems1.8.
(Reading database ... 150917 files and directories currently installed.)
Unpacking rubygems1.8 (from .../rubygems1.8_1.3.1-1_all.deb) ...
Selecting previously deselected package rubygems.
Unpacking rubygems (from .../rubygems_1.3.1-1_all.deb) ...
Selecting previously deselected package libcairo-ruby1.8.
Unpacking libcairo-ruby1.8 (from .../libcairo-ruby1.8_1.6.3-1_i386.deb) ...
Selecting previously deselected package libpango1-ruby1.8.
Unpacking libpango1-ruby1.8 (from .../libpango1-ruby1.8_0.17.0~rc1-6ubuntu1_i386.deb) ...
Selecting previously deselected package libgtk2-ruby1.8.
Unpacking libgtk2-ruby1.8 (from .../libgtk2-ruby1.8_0.17.0~rc1-6ubuntu1_i386.deb) ...
Selecting previously deselected package libglade2-ruby1.8.
Unpacking libglade2-ruby1.8 (from .../libglade2-ruby1.8_0.17.0~rc1-6ubuntu1_i386.deb) ...
Selecting previously deselected package libglade2-ruby.
Unpacking libglade2-ruby (from .../libglade2-ruby_0.17.0~rc1-6ubuntu1_all.deb) ...
Selecting previously deselected package libgtk2-ruby.
Unpacking libgtk2-ruby (from .../libgtk2-ruby_0.17.0~rc1-6ubuntu1_all.deb) ...
Processing triggers for man-db ...
Setting up rubygems1.8 (1.3.1-1) ...

Setting up rubygems (1.3.1-1) ...
Setting up libcairo-ruby1.8 (1.6.3-1) ...
Setting up libpango1-ruby1.8 (0.17.0~rc1-6ubuntu1) ...
Setting up libgtk2-ruby1.8 (0.17.0~rc1-6ubuntu1) ...
Setting up libglade2-ruby1.8 (0.17.0~rc1-6ubuntu1) ...
Setting up libglade2-ruby (0.17.0~rc1-6ubuntu1) ...
Setting up libgtk2-ruby (0.17.0~rc1-6ubuntu1) ...
root@bejo-legowo:/home/legowo# ls
bejo legowo Desktop Downloads examples.desktop framework-3.2 (2) Music Public Templates Videos
legowo Network Documents en_US.UTF-8 framework-3.2 framework-3.2.tar.gz Pictures src text
root@bejo-legowo:/home/legowo# cd framework-3-2
bash: cd: framework-3-2: No such file or directory
root@bejo-legowo:/home/legowo# cd framework-3.2
root@bejo-legowo:/home/legowo/framework-3.2# ls
data external modules msfconsole msfelfscan msfgui msfopcode msfpescan plugins scripts
documentation lib msfcli msfd msfencode msfmachscan msfpayload msfweb README tools
root@bejo-legowo:/home/legowo/framework-3.2# svn update
At revision 7303.
root@bejo-legowo:/home/legowo/framework-3.2# apt-get install postgresql postgresql-client postgresql-contrib
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libstdc++6-4.3-dev g++-4.3 g++
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libossp-uuid15 postgresql-8.3 postgresql-client-8.3 postgresql-client-common postgresql-common postgresql-contrib-8.3
Suggested packages:
uuid oidentd ident-server postgresql-doc-8.3 libdbd-pg-perl
The following NEW packages will be installed:
libossp-uuid15 postgresql postgresql-8.3 postgresql-client postgresql-client-8.3 postgresql-client-common postgresql-common postgresql-contrib
postgresql-contrib-8.3
0 upgraded, 9 newly installed, 0 to remove and 3 not upgraded.
Need to get 5640kB of archives.
After this operation, 22.3MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://id.archive.ubuntu.com jaunty/main libossp-uuid15 1.6.2-0ubuntu1 [51.6kB]
Get:2 http://id.archive.ubuntu.com jaunty/main postgresql-client-common 97 [47.7kB]
Get:3 http://id.archive.ubuntu.com jaunty-updates/main postgresql-client-8.3 8.3.8-0ubuntu9.04 [727kB]
Get:4 http://id.archive.ubuntu.com jaunty/main postgresql-common 97 [84.5kB]
Get:5 http://id.archive.ubuntu.com jaunty-updates/main postgresql-8.3 8.3.8-0ubuntu9.04 [3669kB]
Get:6 http://id.archive.ubuntu.com jaunty-updates/main postgresql 8.3.8-0ubuntu9.04 [241kB]
Get:7 http://id.archive.ubuntu.com jaunty-updates/main postgresql-client 8.3.8-0ubuntu9.04 [241kB]
Get:8 http://id.archive.ubuntu.com jaunty-updates/main postgresql-contrib-8.3 8.3.8-0ubuntu9.04 [337kB]
Get:9 http://id.archive.ubuntu.com jaunty-updates/main postgresql-contrib 8.3.8-0ubuntu9.04 [241kB]
Fetched 5640kB in 8min 15s (11.4kB/s)
Preconfiguring packages ...
Selecting previously deselected package libossp-uuid15.
(Reading database ... 151296 files and directories currently installed.)
Unpacking libossp-uuid15 (from .../libossp-uuid15_1.6.2-0ubuntu1_i386.deb) ...
Selecting previously deselected package postgresql-client-common.
Unpacking postgresql-client-common (from .../postgresql-client-common_97_all.deb) ...
Selecting previously deselected package postgresql-client-8.3.
Unpacking postgresql-client-8.3 (from .../postgresql-client-8.3_8.3.8-0ubuntu9.04_i386.deb) ...
Selecting previously deselected package postgresql-common.
Unpacking postgresql-common (from .../postgresql-common_97_all.deb) ...
Selecting previously deselected package postgresql-8.3.
Unpacking postgresql-8.3 (from .../postgresql-8.3_8.3.8-0ubuntu9.04_i386.deb) ...
Selecting previously deselected package postgresql.
Unpacking postgresql (from .../postgresql_8.3.8-0ubuntu9.04_all.deb) ...
Selecting previously deselected package postgresql-client.
Unpacking postgresql-client (from .../postgresql-client_8.3.8-0ubuntu9.04_all.deb) ...
Selecting previously deselected package postgresql-contrib-8.3.
Unpacking postgresql-contrib-8.3 (from .../postgresql-contrib-8.3_8.3.8-0ubuntu9.04_i386.deb) ...
Selecting previously deselected package postgresql-contrib.
Unpacking postgresql-contrib (from .../postgresql-contrib_8.3.8-0ubuntu9.04_all.deb) ...
Processing triggers for man-db ...
Setting up libossp-uuid15 (1.6.2-0ubuntu1) ...

Setting up postgresql-client-common (97) ...
Setting up postgresql-client-8.3 (8.3.8-0ubuntu9.04) ...

Setting up postgresql-common (97) ...
Adding user postgres to group ssl-cert
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
en_au
en_gb
en_us
en_za

Setting up postgresql-8.3 (8.3.8-0ubuntu9.04) ...
Creating new cluster (configuration: /etc/postgresql/8.3/main, data: /var/lib/postgresql/8.3/main)...
Moving configuration file /var/lib/postgresql/8.3/main/postgresql.conf to /etc/postgresql/8.3/main...
Moving configuration file /var/lib/postgresql/8.3/main/pg_hba.conf to /etc/postgresql/8.3/main...
Moving configuration file /var/lib/postgresql/8.3/main/pg_ident.conf to /etc/postgresql/8.3/main...
Configuring postgresql.conf to use port 5432...
* Starting PostgreSQL 8.3 database server [ OK ]

Setting up postgresql (8.3.8-0ubuntu9.04) ...
Setting up postgresql-client (8.3.8-0ubuntu9.04) ...
Setting up postgresql-contrib-8.3 (8.3.8-0ubuntu9.04) ...

Setting up postgresql-contrib (8.3.8-0ubuntu9.04) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
root@bejo-legowo:/home/legowo/framework-3.2# apt-get install pgadmin3
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libstdc++6-4.3-dev g++-4.3 g++
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libwxbase2.8-0 libwxgtk2.8-0 pgadmin3-data pgagent
The following NEW packages will be installed:
libwxbase2.8-0 libwxgtk2.8-0 pgadmin3 pgadmin3-data pgagent
0 upgraded, 5 newly installed, 0 to remove and 3 not upgraded.
Need to get 8262kB of archives.
After this operation, 23.2MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://id.archive.ubuntu.com jaunty/universe libwxbase2.8-0 2.8.9.1-0ubuntu6 [675kB]
Get:2 http://id.archive.ubuntu.com jaunty/universe libwxgtk2.8-0 2.8.9.1-0ubuntu6 [3407kB]
Get:3 http://id.archive.ubuntu.com jaunty/universe pgadmin3-data 1.8.4-3 [2627kB]
Get:4 http://id.archive.ubuntu.com jaunty/universe pgadmin3 1.8.4-3 [1514kB]
Get:5 http://id.archive.ubuntu.com jaunty/universe pgagent 1.8.4-3 [38.5kB]
Fetched 8262kB in 15min 6s (9113B/s)
Selecting previously deselected package libwxbase2.8-0.
(Reading database ... 151786 files and directories currently installed.)
Unpacking libwxbase2.8-0 (from .../libwxbase2.8-0_2.8.9.1-0ubuntu6_i386.deb) ...
Selecting previously deselected package libwxgtk2.8-0.
Unpacking libwxgtk2.8-0 (from .../libwxgtk2.8-0_2.8.9.1-0ubuntu6_i386.deb) ...
Selecting previously deselected package pgadmin3-data.
Unpacking pgadmin3-data (from .../pgadmin3-data_1.8.4-3_all.deb) ...
Selecting previously deselected package pgadmin3.
Unpacking pgadmin3 (from .../pgadmin3_1.8.4-3_i386.deb) ...
Selecting previously deselected package pgagent.
Unpacking pgagent (from .../pgagent_1.8.4-3_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 1 added doc-base file(s)...
Registering documents with scrollkeeper...
Processing triggers for menu ...
Setting up libwxbase2.8-0 (2.8.9.1-0ubuntu6) ...

Setting up libwxgtk2.8-0 (2.8.9.1-0ubuntu6) ...

Setting up pgadmin3-data (1.8.4-3) ...
Setting up pgadmin3 (1.8.4-3) ...

Setting up pgagent (1.8.4-3) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Processing triggers for menu ...
root@bejo-legowo:/home/legowo/framework-3.2# postgres -c psql
bash: postgres: command not found
root@bejo-legowo:/home/legowo/framework-3.2# sudo su postgres -c psql
Welcome to psql 8.3.8, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit

postgres=# ALTER USER postgres WITH PASSWORD 'your password';
ALTER ROLE
postgres=# xxxxxx
postgres-# \q
root@bejo-legowo:/home/legowo/framework-3.2# sudo passwd -d postgres
Password changed.
root@bejo-legowo:/home/legowo/framework-3.2# sudo su postgres -c passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@bejo-legowo:/home/legowo/framework-3.2# sudo gem1.8 install activerecord
Successfully installed activerecord-2.3.4
1 gem installed
Installing ri documentation for activerecord-2.3.4...
Installing RDoc documentation for activerecord-2.3.4...
root@bejo-legowo:/home/legowo/framework-3.2# sudo apt-get install ruby1.8-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
ruby1.8-dev is already the newest version.
The following packages were automatically installed and are no longer required:
libstdc++6-4.3-dev g++-4.3 g++
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
root@bejo-legowo:/home/legowo/framework-3.2# sudo apt-get install libpq-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libstdc++6-4.3-dev g++-4.3 g++
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
comerr-dev libkadm55 libkrb5-dev
Suggested packages:
krb5-doc postgresql-doc-8.3
The following NEW packages will be installed:
comerr-dev libkadm55 libkrb5-dev libpq-dev
0 upgraded, 4 newly installed, 0 to remove and 3 not upgraded.
Need to get 470kB of archives.
After this operation, 2363kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://id.archive.ubuntu.com jaunty/main libkadm55 1.6.dfsg.4~beta1-5ubuntu2 [151kB]
Get:2 http://id.archive.ubuntu.com jaunty/main comerr-dev 2.1-1.41.4-1ubuntu1 [41.6kB]
Get:3 http://id.archive.ubuntu.com jaunty/main libkrb5-dev 1.6.dfsg.4~beta1-5ubuntu2 [92.9kB]
Get:4 http://id.archive.ubuntu.com jaunty-updates/main libpq-dev 8.3.8-0ubuntu9.04 [184kB]
Fetched 470kB in 21s (21.4kB/s)
Selecting previously deselected package libkadm55.
(Reading database ... 152194 files and directories currently installed.)
Unpacking libkadm55 (from .../libkadm55_1.6.dfsg.4~beta1-5ubuntu2_i386.deb) ...
Selecting previously deselected package comerr-dev.
Unpacking comerr-dev (from .../comerr-dev_2.1-1.41.4-1ubuntu1_i386.deb) ...
Selecting previously deselected package libkrb5-dev.
Unpacking libkrb5-dev (from .../libkrb5-dev_1.6.dfsg.4~beta1-5ubuntu2_i386.deb) ...
Selecting previously deselected package libpq-dev.
Unpacking libpq-dev (from .../libpq-dev_8.3.8-0ubuntu9.04_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 1 added doc-base file(s)...
Registering documents with scrollkeeper...
Setting up libkadm55 (1.6.dfsg.4~beta1-5ubuntu2) ...

Setting up comerr-dev (2.1-1.41.4-1ubuntu1) ...

Setting up libkrb5-dev (1.6.dfsg.4~beta1-5ubuntu2) ...
Setting up libpq-dev (8.3.8-0ubuntu9.04) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
root@bejo-legowo:/home/legowo/framework-3.2# sudo gem1.8 install postgres
Building native extensions. This could take a while...
Successfully installed postgres-0.7.9.2008.01.28
1 gem installed
Installing ri documentation for postgres-0.7.9.2008.01.28...
Installing RDoc documentation for postgres-0.7.9.2008.01.28...
root@bejo-legowo:/home/legowo/framework-3.2# su postgres
postgres@bejo-legowo:/home/legowo/framework-3.2$ ./msfconsole

| | _) |
__ `__ \ _ \ __| _` | __| __ \ | _ \ | __|
| | | __/ | ( |\__ \ | | | ( | | |
_| _| _|\___|\__|\__,_|____/ .__/ _|\___/ _|\__|
_|


=[ msf v3.2-release
+ -- --=[ 320 exploits - 217 payloads
+ -- --=[ 20 encoders - 6 nops
=[ 99 aux

msf >

all using will have risk and resposibility :)

Komentar