install metasploit | zuhdi.org

Install Metasploit

Environment

  • Debian 9.7 x64 (RAM 1GB)
  • Ruby 2.6.2
  • Metasploit 5.0.25

Pre-requisite Install Ruby

Excerpt https://github.com/rapid7/metasploit-framework

Log 2019 / 05

1. Install Metasploit

root@athos:~# apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade

root@athos:~# apt-get -y --no-install-recommends install git libpq-dev libpcap-dev

root@athos:~# gem install bundler
Fetching bundler-2.0.1.gem
Successfully installed bundler-2.0.1
Parsing documentation for bundler-2.0.1
Installing ri documentation for bundler-2.0.1
Done installing documentation for bundler after 6 seconds
1 gem installed

root@athos:~# git clone https://github.com/rapid7/metasploit-framework.git
Cloning into 'metasploit-framework'...
remote: Enumerating objects: 123, done.
remote: Counting objects: 100% (123/123), done.
remote: Compressing objects: 100% (87/87), done.
remote: Total 496744 (delta 66), reused 77 (delta 36), pack-reused 496621
Receiving objects: 100% (496744/496744), 389.01 MiB | 17.68 MiB/s, done.
Resolving deltas: 100% (364273/364273), done.

root@athos:~# cd metasploit-framework/
ruby-2.6.2 - #gemset created /usr/local/rvm/gems/ruby-2.6.2@metasploit-framework
ruby-2.6.2 - #generating metasploit-framework wrappers.........

root@athos:~/metasploit-framework# bundle install
(truncated)

root@athos:~/metasploit-framework# ./msfconsole
[-] ***rting the Metasploit Framework console.../
[-] * WARNING: No database support: No database YAML file
[-] ***

Call trans opt: received. 2-19-98 13:24:18 REC:Loc

     Trace program: running

           wake up, Neo...
        the matrix has you
      follow the white rabbit.

          knock, knock, Neo.

                        (`.         ,-,
                        ` `.    ,;' /
                         `.  ,'/ .'
                          `. X /.'
                .-;--''--.._` ` (
              .'            /   `
             ,           ` '   Q '
             ,         ,   `._    \
          ,.|         '     `-.;_'
          :  . `  ;    `  ` --,.._;
           ' `    ,   )   .'
              `._ ,  '   /_
                 ; ,''-,;' ``-
                  ``-..__``--`

                             https://metasploit.com


       =[ metasploit v5.0.25-dev-ce6db9c648               ]
+ -- --=[ 1894 exploits - 1068 auxiliary - 329 post       ]
+ -- --=[ 547 payloads - 44 encoders - 10 nops            ]
+ -- --=[ 2 evasion                                       ]

msf5 > version
Framework: 5.0.25-dev-ce6db9c648
Console  : 5.0.25-dev-ce6db9c648

Hugo. Malte Kiefer & Zuhdi Najib.