Introduction
As the title describes, this article will show how to install metasploit framework in Linux Ubuntu 18.04. Since 2007, Metasploit framework is using Ruby completely as its main programming language. There are several steps for installing metasploit framework. All of the descriptions is available on the following sections.
Installation Preparation
The following are the steps for preparing the installation of metasploit framework :
1. First of all, execute the following step for installing necessary packages :
root@hostname:~# sudo apt-get install build-essential libreadline-dev libssl-dev libpq5 libpq-dev libreadline5 libsqlite3-dev libpcap-dev git-core autoconf postgresql pgadmin3 curl zlib1g-dev libxml2-dev libxslt1-dev libyaml-dev curl zlib1g-dev gawk bison libffi-dev libgdbm-dev libncurses5-dev libtool sqlite3 libgmp-dev gnupg2 dirmngr Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'git' instead of 'git-core' autoconf is already the newest version (2.69-11). autoconf set to manually installed. bison is already the newest version (2:3.0.4.dfsg-1build1). build-essential is already the newest version (12.4ubuntu1). gawk is already the newest version (1:4.1.4+dfsg-1build1). gawk set to manually installed. libffi-dev is already the newest version (3.2.1-8). libgmp-dev is already the newest version (2:6.1.2+dfsg-2). libgmp-dev set to manually installed. libreadline-dev is already the newest version (7.0-3). libreadline5 is already the newest version (5.2+dfsg-3build1). libreadline5 set to manually installed. libtool is already the newest version (2.4.6-2). zlib1g-dev is already the newest version (1:1.2.11.dfsg-0ubuntu2). dirmngr is already the newest version (2.2.4-1ubuntu1.2). git is already the newest version (1:2.17.1-1ubuntu0.4). libpq-dev is already the newest version (10.6-0ubuntu0.18.04.1). libpq5 is already the newest version (10.6-0ubuntu0.18.04.1). libpq5 set to manually installed. The following packages were automatically installed and are no longer required: cabextract fonts-wine gstreamer1.0-plugins-base:i386 gyp icoutils libasn1-8-heimdal:i386 libasound2:i386 libasound2-plugins:i386 libasyncns0:i386 libavahi-client3:i386 libavahi-common-data:i386 libavahi-common3:i386 libbsd0:i386 libc-ares2 libcairo2:i386 libcap2:i386 libcapi20-3 libcapi20-3:i386 libcdparanoia0:i386 libcups2:i386 libdbus-1-3:i386 libexif12:i386 libflac8:i386 libfontconfig1:i386 libfreetype6:i386 libgd3:i386 libgl1:i386 libgl1-mesa-glx:i386 libglib2.0-0:i386 libglu1-mesa:i386 libglvnd0:i386 libglx-mesa0:i386 libglx0:i386 libgmp10:i386 libgnutls30:i386 libgphoto2-6:i386 libgphoto2-port12:i386 libgsm1:i386 libgssapi-krb5-2:i386 libgssapi3-heimdal:i386 libgstreamer-plugins-base1.0-0:i386 libgstreamer1.0-0:i386 libhcrypto4-heimdal:i386 libheimbase1-heimdal:i386 libheimntlm0-heimdal:i386 libhogweed4:i386 libhttp-parser2.7.1 libhx509-5-heimdal:i386 libidn2-0:i386 libieee1284-3:i386 libjack-jackd2-0:i386 libjbig0:i386 libjpeg-turbo8:i386 libjpeg8:i386 libjs-async libjs-inherits libjs-node-uuid libk5crypto3:i386 libkeyutils1:i386 libkrb5-26-heimdal:i386 libkrb5-3:i386 libkrb5support0:i386 liblcms2-2:i386 libldap-2.4-2:i386 libllvm6.0:i386 libltdl7:i386 libmpg123-0:i386 libmspack0 libnettle6:i386 libodbc1 libodbc1:i386 libogg0:i386 libopenal1:i386 libopus0:i386 liborc-0.4-0:i386 libosmesa6 libosmesa6:i386 libp11-kit0:i386 libpcap0.8:i386 libpixman-1-0:i386 libpng16-16:i386 libpulse0:i386 libroken18-heimdal:i386 libsamplerate0:i386 libsane1:i386 libsasl2-2:i386 libsasl2-modules-db:i386 libsndfile1:i386 libsndio6.1:i386 libspeexdsp1:i386 libsqlite3-0:i386 libssl1.1:i386 libtasn1-6:i386 libtheora0:i386 libtiff5:i386 libunistring2:i386 libusb-1.0-0:i386 libuv1 libuv1-dev libv4l-0:i386 libv4lconvert0:i386 libvisual-0.4-0:i386 libvorbis0a:i386 libvorbisenc2:i386 libwebp6:i386 libwind0-heimdal:i386 libwine libwine:i386 libwrap0:i386 libwxgtk3.0-gtk3-0v5 libx11-6:i386 libx11-xcb1:i386 libxau6:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386 libxcb-render0:i386 libxcb-shm0:i386 libxcb-sync1:i386 libxcb1:i386 libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxi6:i386 libxinerama1:i386 libxml2:i386 libxpm4:i386 libxrandr2:i386 libxrender1:i386 libxshmfence1:i386 libxslt1.1:i386 libxxf86vm1:i386 node-abbrev node-ansi node-ansi-color-table node-archy node-async node-balanced-match node-block-stream node-brace-expansion node-builtin-modules node-combined-stream node-concat-map node-cookie-jar node-delayed-stream node-forever-agent node-form-data node-fs.realpath node-fstream node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs node-hosted-git-info node-inflight node-inherits node-ini node-is-builtin-module node-isexe node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once node-osenv node-path-is-absolute node-pseudomap node-qs node-read node-read-package-json node-request node-retry node-rimraf node-semver node-sha node-slide node-spdx-correct node-spdx-expression-parse node-spdx-license-ids node-tar node-tunnel-agent node-underscore node-validate-npm-package-license node-which node-wrappy node-yallist nodejs nodejs-doc ocl-icd-libopencl1 ocl-icd-libopencl1:i386 pkg-php-tools python-wxgtk3.0 python-wxversion shtool wine-stable wine32:i386 wine64 Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: gir1.2-harfbuzz-0.0 icu-devtools libcurl4 libglib2.0-dev libglib2.0-dev-bin libgraphite2-dev libharfbuzz-dev libharfbuzz-gobject0 libicu-dev libicu-le-hb-dev libicu-le-hb0 libiculx60 libpcap0.8-dev libwxgtk3.0-0v5 pgadmin3-data pgagent postgresql-10 postgresql-client-10 postgresql-client-common postgresql-common sysstat Suggested packages: libglib2.0-doc libgraphite2-utils icu-doc ncurses-doc sqlite3-doc libyaml-doc postgresql-contrib postgresql-doc locales-all postgresql-doc-10 isag The following packages will be REMOVED: libcurl3 libssl1.0-dev mssql-server node-gyp nodejs-dev npm The following NEW packages will be installed: curl gir1.2-harfbuzz-0.0 gnupg2 icu-devtools libcurl4 libgdbm-dev libglib2.0-dev libglib2.0-dev-bin libgraphite2-dev libharfbuzz-dev libharfbuzz-gobject0 libicu-dev libicu-le-hb-dev libicu-le-hb0 libiculx60 libncurses5-dev libpcap-dev libpcap0.8-dev libsqlite3-dev libssl-dev libwxgtk3.0-0v5 libxml2-dev libxslt1-dev libyaml-dev pgadmin3 pgadmin3-data pgagent postgresql postgresql-10 postgresql-client-10 postgresql-client-common postgresql-common sqlite3 sysstat 0 upgraded, 34 newly installed, 6 to remove and 32 not upgraded. Need to get 30,3 MB of archives. After this operation, 813 MB disk space will be freed. Do you want to continue? [Y/n] Y Get:1 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic-updates/main amd64 libcurl4 amd64 7.58.0-2ubuntu3.6 [214 kB] Get:2 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic-updates/main amd64 curl amd64 7.58.0-2ubuntu3.6 [159 kB] Get:3 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/main amd64 gir1.2-harfbuzz-0.0 amd64 1.7.2-1ubuntu1 [18,6 kB] Get:4 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/main amd64 icu-devtools amd64 60.2-3ubuntu3 [179 kB] Get:5 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/main amd64 libgdbm-dev amd64 1.14.1-6 [79,3 kB] Get:6 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic-updates/main amd64 libglib2.0-dev-bin amd64 2.56.3-0ubuntu0.18.04.1 [102 kB] Get:7 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic-updates/main amd64 libglib2.0-dev amd64 2.56.3-0ubuntu0.18.04.1 [1.384 kB] Get:8 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/main amd64 libgraphite2-dev amd64 1.3.11-2 [14,5 kB] Get:9 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/main amd64 libharfbuzz-gobject0 amd64 1.7.2-1ubuntu1 [13,4 kB] Get:10 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/main amd64 libicu-le-hb0 amd64 1.0.3+git161113-4 [14,3 kB] Get:11 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/main amd64 libiculx60 amd64 60.2-3ubuntu3 [18,9 kB] Get:12 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/main amd64 libicu-le-hb-dev amd64 1.0.3+git161113-4 [29,5 kB] Get:13 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/main amd64 libicu-dev amd64 60.2-3ubuntu3 [8.893 kB] Get:14 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/main amd64 libharfbuzz-dev amd64 1.7.2-1ubuntu1 [302 kB] Get:15 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic-updates/main amd64 libncurses5-dev amd64 6.1-1ubuntu1.18.04 [174 kB] Get:16 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/main amd64 libpcap0.8-dev amd64 1.8.1-6ubuntu1 [217 kB] Get:17 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/main amd64 libpcap-dev amd64 1.8.1-6ubuntu1 [3.480 B] Get:18 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/main amd64 libsqlite3-dev amd64 3.22.0-1 [632 kB] Get:19 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic-updates/main amd64 libssl-dev amd64 1.1.0g-2ubuntu4.3 [1.374 kB] Get:20 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/universe amd64 libwxgtk3.0-0v5 amd64 3.0.4+dfsg-3 [4.182 kB] Get:21 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic-updates/main amd64 libxml2-dev amd64 2.9.4+dfsg1-6.1ubuntu1.2 [757 kB] Get:22 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/main amd64 libxslt1-dev amd64 1.1.29-5 [407 kB] Get:23 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/universe amd64 pgadmin3-data all 1.22.2-4 [1.878 kB] Get:24 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/universe amd64 pgadmin3 amd64 1.22.2-4 [3.187 kB] Get:25 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/universe amd64 pgagent amd64 3.4.1-5build1 [61,5 kB] Get:26 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/main amd64 postgresql-client-common all 190 [29,5 kB] Get:27 http://ixxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic-updates/main amd64 postgresql-client-10 amd64 10.6-0ubuntu0.18.04.1 [934 kB] Get:28 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/main amd64 postgresql-common all 190 [157 kB] Get:29 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic-updates/main amd64 postgresql-10 amd64 10.6-0ubuntu0.18.04.1 [3.754 kB] Get:30 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/main amd64 postgresql all 10+190 [5.784 B] Get:31 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/main amd64 sqlite3 amd64 3.22.0-1 [751 kB] Get:32 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/main amd64 sysstat amd64 11.6.1-1 [295 kB] Get:33 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic-updates/universe amd64 gnupg2 all 2.2.4-1ubuntu1.2 [4.668 B] Get:34 http://xxxx.xxxxxxxx.xxxxxx.xxx/ubuntu bionic/main amd64 libyaml-dev amd64 0.1.7-2ubuntu3 [55,7 kB] Fetched 30,3 MB in 34s (900 kB/s) Extracting templates from packages: 100% Preconfiguring packages ... (Reading database ... 336287 files and directories currently installed.) Removing mssql-server (14.0.3025.34-3) ... Removing libcurl3:amd64 (7.58.0-2ubuntu2) ... Removing npm (3.5.2-0ubuntu4) ... Removing node-gyp (3.6.2-1ubuntu1) ... Removing nodejs-dev (8.10.0~dfsg-2ubuntu0.4) ... Removing libssl1.0-dev:amd64 (1.0.2n-1ubuntu5.2) ... Selecting previously unselected package libcurl4:amd64. (Reading database ... 332983 files and directories currently installed.) Preparing to unpack .../00-libcurl4_7.58.0-2ubuntu3.6_amd64.deb ... Unpacking libcurl4:amd64 (7.58.0-2ubuntu3.6) ... Selecting previously unselected package curl. Preparing to unpack .../01-curl_7.58.0-2ubuntu3.6_amd64.deb ... Unpacking curl (7.58.0-2ubuntu3.6) ... Selecting previously unselected package gir1.2-harfbuzz-0.0:amd64. Preparing to unpack .../02-gir1.2-harfbuzz-0.0_1.7.2-1ubuntu1_amd64.deb ... Unpacking gir1.2-harfbuzz-0.0:amd64 (1.7.2-1ubuntu1) ... Selecting previously unselected package icu-devtools. Preparing to unpack .../03-icu-devtools_60.2-3ubuntu3_amd64.deb ... Unpacking icu-devtools (60.2-3ubuntu3) ... Selecting previously unselected package libgdbm-dev:amd64. Preparing to unpack .../04-libgdbm-dev_1.14.1-6_amd64.deb ... Unpacking libgdbm-dev:amd64 (1.14.1-6) ... Selecting previously unselected package libglib2.0-dev-bin. Preparing to unpack .../05-libglib2.0-dev-bin_2.56.3-0ubuntu0.18.04.1_amd64.deb ... Unpacking libglib2.0-dev-bin (2.56.3-0ubuntu0.18.04.1) ... Selecting previously unselected package libglib2.0-dev:amd64. Preparing to unpack .../06-libglib2.0-dev_2.56.3-0ubuntu0.18.04.1_amd64.deb ... Unpacking libglib2.0-dev:amd64 (2.56.3-0ubuntu0.18.04.1) ... Selecting previously unselected package libgraphite2-dev:amd64. Preparing to unpack .../07-libgraphite2-dev_1.3.11-2_amd64.deb ... Unpacking libgraphite2-dev:amd64 (1.3.11-2) ... Selecting previously unselected package libharfbuzz-gobject0:amd64. Preparing to unpack .../08-libharfbuzz-gobject0_1.7.2-1ubuntu1_amd64.deb ... Unpacking libharfbuzz-gobject0:amd64 (1.7.2-1ubuntu1) ... Selecting previously unselected package libicu-le-hb0:amd64. Preparing to unpack .../09-libicu-le-hb0_1.0.3+git161113-4_amd64.deb ... Unpacking libicu-le-hb0:amd64 (1.0.3+git161113-4) ... Selecting previously unselected package libiculx60:amd64. Preparing to unpack .../10-libiculx60_60.2-3ubuntu3_amd64.deb ... Unpacking libiculx60:amd64 (60.2-3ubuntu3) ... Selecting previously unselected package libicu-le-hb-dev:amd64. Preparing to unpack .../11-libicu-le-hb-dev_1.0.3+git161113-4_amd64.deb ... Unpacking libicu-le-hb-dev:amd64 (1.0.3+git161113-4) ... Selecting previously unselected package libicu-dev. Preparing to unpack .../12-libicu-dev_60.2-3ubuntu3_amd64.deb ... Unpacking libicu-dev (60.2-3ubuntu3) ... Selecting previously unselected package libharfbuzz-dev:amd64. Preparing to unpack .../13-libharfbuzz-dev_1.7.2-1ubuntu1_amd64.deb ... Unpacking libharfbuzz-dev:amd64 (1.7.2-1ubuntu1) ... Selecting previously unselected package libncurses5-dev:amd64. Preparing to unpack .../14-libncurses5-dev_6.1-1ubuntu1.18.04_amd64.deb ... Unpacking libncurses5-dev:amd64 (6.1-1ubuntu1.18.04) ... Selecting previously unselected package libpcap0.8-dev:amd64. Preparing to unpack .../15-libpcap0.8-dev_1.8.1-6ubuntu1_amd64.deb ... Unpacking libpcap0.8-dev:amd64 (1.8.1-6ubuntu1) ... Selecting previously unselected package libpcap-dev:amd64. Preparing to unpack .../16-libpcap-dev_1.8.1-6ubuntu1_amd64.deb ... Unpacking libpcap-dev:amd64 (1.8.1-6ubuntu1) ... Selecting previously unselected package libsqlite3-dev:amd64. Preparing to unpack .../17-libsqlite3-dev_3.22.0-1_amd64.deb ... Unpacking libsqlite3-dev:amd64 (3.22.0-1) ... Selecting previously unselected package libssl-dev:amd64. Preparing to unpack .../18-libssl-dev_1.1.0g-2ubuntu4.3_amd64.deb ... Unpacking libssl-dev:amd64 (1.1.0g-2ubuntu4.3) ... Selecting previously unselected package libwxgtk3.0-0v5:amd64. Preparing to unpack .../19-libwxgtk3.0-0v5_3.0.4+dfsg-3_amd64.deb ... Unpacking libwxgtk3.0-0v5:amd64 (3.0.4+dfsg-3) ... Selecting previously unselected package libxml2-dev:amd64. Preparing to unpack .../20-libxml2-dev_2.9.4+dfsg1-6.1ubuntu1.2_amd64.deb ... Unpacking libxml2-dev:amd64 (2.9.4+dfsg1-6.1ubuntu1.2) ... Selecting previously unselected package libxslt1-dev:amd64. Preparing to unpack .../21-libxslt1-dev_1.1.29-5_amd64.deb ... Unpacking libxslt1-dev:amd64 (1.1.29-5) ... Selecting previously unselected package pgadmin3-data. Preparing to unpack .../22-pgadmin3-data_1.22.2-4_all.deb ... Unpacking pgadmin3-data (1.22.2-4) ... Selecting previously unselected package pgadmin3. Preparing to unpack .../23-pgadmin3_1.22.2-4_amd64.deb ... Unpacking pgadmin3 (1.22.2-4) ... Selecting previously unselected package pgagent. Preparing to unpack .../24-pgagent_3.4.1-5build1_amd64.deb ... Unpacking pgagent (3.4.1-5build1) ... Selecting previously unselected package postgresql-client-common. Preparing to unpack .../25-postgresql-client-common_190_all.deb ... Unpacking postgresql-client-common (190) ... Selecting previously unselected package postgresql-client-10. Preparing to unpack .../26-postgresql-client-10_10.6-0ubuntu0.18.04.1_amd64.deb ... Unpacking postgresql-client-10 (10.6-0ubuntu0.18.04.1) ... Selecting previously unselected package postgresql-common. Preparing to unpack .../27-postgresql-common_190_all.deb ... Adding 'diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev by postgresql-common' Unpacking postgresql-common (190) ... Selecting previously unselected package postgresql-10. Preparing to unpack .../28-postgresql-10_10.6-0ubuntu0.18.04.1_amd64.deb ... Unpacking postgresql-10 (10.6-0ubuntu0.18.04.1) ... Selecting previously unselected package postgresql. Preparing to unpack .../29-postgresql_10+190_all.deb ... Unpacking postgresql (10+190) ... Selecting previously unselected package sqlite3. Preparing to unpack .../30-sqlite3_3.22.0-1_amd64.deb ... Unpacking sqlite3 (3.22.0-1) ... Selecting previously unselected package sysstat. Preparing to unpack .../31-sysstat_11.6.1-1_amd64.deb ... Unpacking sysstat (11.6.1-1) ... Selecting previously unselected package gnupg2. Preparing to unpack .../32-gnupg2_2.2.4-1ubuntu1.2_all.deb ... Unpacking gnupg2 (2.2.4-1ubuntu1.2) ... Selecting previously unselected package libyaml-dev:amd64. Preparing to unpack .../33-libyaml-dev_0.1.7-2ubuntu3_amd64.deb ... Unpacking libyaml-dev:amd64 (0.1.7-2ubuntu3) ... Setting up sysstat (11.6.1-1) ...</pre">Creating config file /etc/default/sysstat with new version update-alternatives: using /usr/bin/sar.sysstat to provide /usr/bin/sar (sar) in auto mode Created symlink /etc/systemd/system/multi-user.target.wants/sysstat.service → /lib/systemd/system/sysstat.service. Processing triggers for mime-support (3.60ubuntu1) ... Processing triggers for ureadahead (0.100.0-20) ... ureadahead will be reprofiled on next reboot Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ... Setting up libglib2.0-dev-bin (2.56.3-0ubuntu0.18.04.1) ... Setting up libgdbm-dev:amd64 (1.14.1-6) ... Setting up libsqlite3-dev:amd64 (3.22.0-1) ... Setting up pgadmin3-data (1.22.2-4) ... Processing triggers for install-info (6.5.0.dfsg.1-2) ... Setting up libssl-dev:amd64 (1.1.0g-2ubuntu4.3) ... Processing triggers for libglib2.0-0:i386 (2.56.3-0ubuntu0.18.04.1) ... Processing triggers for libglib2.0-0:amd64 (2.56.3-0ubuntu0.18.04.1) ... Setting up libicu-le-hb0:amd64 (1.0.3+git161113-4) ... Setting up libcurl4:amd64 (7.58.0-2ubuntu3.6) ... Setting up libpcap0.8-dev:amd64 (1.8.1-6ubuntu1) ... Setting up libwxgtk3.0-0v5:amd64 (3.0.4+dfsg-3) ... Setting up libyaml-dev:amd64 (0.1.7-2ubuntu3) ... Setting up libglib2.0-dev:amd64 (2.56.3-0ubuntu0.18.04.1) ... Setting up sqlite3 (3.22.0-1) ... Setting up libncurses5-dev:amd64 (6.1-1ubuntu1.18.04) ... Setting up gnupg2 (2.2.4-1ubuntu1.2) ... Processing triggers for libc-bin (2.27-3ubuntu1) ... Setting up gir1.2-harfbuzz-0.0:amd64 (1.7.2-1ubuntu1) ... Setting up postgresql-client-common (190) ... Processing triggers for systemd (237-3ubuntu10.12) ... Setting up postgresql-common (190) ... Adding user postgres to group ssl-cert Creating config file /etc/postgresql-common/createcluster.conf with new version Building PostgreSQL dictionaries from installed myspell/hunspell packages... ERROR: no ecoding defined in /usr/share/hunspell/ar.aff, ignoring en_au en_ca en_gb en_us en_za es_es it_it ko ru_ru Removing obsolete dictionary files: Created symlink /etc/systemd/system/multi-user.target.wants/postgresql.service → /lib/systemd/system/postgresql.service. Setting up libiculx60:amd64 (60.2-3ubuntu3) ... Setting up libpcap-dev:amd64 (1.8.1-6ubuntu1) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... Setting up icu-devtools (60.2-3ubuntu3) ... Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ... Setting up libgraphite2-dev:amd64 (1.3.11-2) ... Setting up libharfbuzz-gobject0:amd64 (1.7.2-1ubuntu1) ... Setting up pgagent (3.4.1-5build1) ... Setting up postgresql-client-10 (10.6-0ubuntu0.18.04.1) ... update-alternatives: using /usr/share/postgresql/10/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode Setting up curl (7.58.0-2ubuntu3.6) ... Setting up pgadmin3 (1.22.2-4) ... Setting up postgresql-10 (10.6-0ubuntu0.18.04.1) ... Creating new PostgreSQL cluster 10/main ... /usr/lib/postgresql/10/bin/initdb -D /var/lib/postgresql/10/main --auth-local peer --auth-host md5 The files belonging to this database system will be owned by user "postgres". This user must also own the server process. The database cluster will be initialized with locales COLLATE: en_US.UTF-8 CTYPE: en_US.UTF-8 MESSAGES: en_US.UTF-8 MONETARY: id_ID.UTF-8 NUMERIC: id_ID.UTF-8 TIME: id_ID.UTF-8 The default database encoding has accordingly been set to "UTF8". The default text search configuration will be set to "english". Data page checksums are disabled. fixing permissions on existing directory /var/lib/postgresql/10/main ... ok creating subdirectories ... ok selecting default max_connections ... 100 selecting default shared_buffers ... 128MB selecting dynamic shared memory implementation ... posix creating configuration files ... ok running bootstrap script ... ok performing post-bootstrap initialization ... ok syncing data to disk ... ok Success. You can now start the database server using: /usr/lib/postgresql/10/bin/pg_ctl -D /var/lib/postgresql/10/main -l logfile start Ver Cluster Port Status Owner Data directory Log file 10 main 5432 down postgres /var/lib/postgresql/10/main /var/log/postgresql/postgresql-10-main.log update-alternatives: using /usr/share/postgresql/10/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode Setting up postgresql (10+190) ... Setting up libharfbuzz-dev:amd64 (1.7.2-1ubuntu1) ... Setting up libicu-le-hb-dev:amd64 (1.0.3+git161113-4) ... Setting up libicu-dev (60.2-3ubuntu3) ... Setting up libxml2-dev:amd64 (2.9.4+dfsg1-6.1ubuntu1.2) ... Setting up libxslt1-dev:amd64 (1.1.29-5) ... Processing triggers for systemd (237-3ubuntu10.12) ... Processing triggers for ureadahead (0.100.0-20) ... Processing triggers for libc-bin (2.27-3ubuntu1) ... root@hostname:~#
2. Next, get the source installer of metasploit framework using the ‘git’ command as follows :
root@hostname:/opt# sudo git clone https://github.com/rapid7/metasploit-framework.git Cloning into 'metasploit-framework'... remote: Enumerating objects: 45, done. remote: Counting objects: 100% (45/45), done. remote: Compressing objects: 100% (34/34), done. remote: Total 484728 (delta 20), reused 22 (delta 11), pack-reused 484683 Receiving objects: 100% (484728/484728), 383.90 MiB | 664.00 KiB/s, done. Resolving deltas: 100% (354533/354533), done. Checking out files: 100% (9633/9633), done. root@hostname:/opt#
Installing Metasploit Framework
After finishing all the preparations, the following are steps for installing metasploit framework. This installation section consists of two separate sections. The first section is the steps for the installation of the tool or gem with the name of ‘bundler’. The last one is the steps for installing the metasploit framework.
Installing gem with the name of ‘bundler’
1. First of all, get into the root folder of the metasploit framework as follows :
root@hostname:/opt# cd metasploit-framework/ root@hostname:/opt#
2. After that, using the ‘gem’ command, install a new gem or tool to help the installation process of metasploit framework :
root@hostname:/opt/metasploit-framework# gem install bundler Fetching: bundler-2.0.1.gem (100%) 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 4 seconds 1 gem installed root@hostname:/opt/metasploit-framework#
3. Using the installed gem, the ‘bundle’ tool, install the metasploit framework using the command below :
bundle install
The following is the execution of the command ‘bundle install’. Sadly, the execution of the ‘bundle install’ fails as follows :
root@hostname:/opt/metasploit-framework# bundle install
Traceback (most recent call last):
2: from /usr/local/bin/bundle:23:in <main>'
1: from /usr/lib/ruby/2.5.0/rubygems.rb:308:in
activate_bin_path' /usr/lib/ruby/2.5.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException) root@hostname:/opt/metasploit-framework
Fortunately, there is a way to solve it. Just read the article in this link. In short, just remove the following entry in the Gemfile.lock inside the root folder of metasploit framework :
BUNDLED WITH 1.17.3
4. Apparently, after searching through several references, it seems a package with the name of jekyll is necessary to continue the installation process. So, continue on the installation, proceed to install an additional package with the name of ‘jekyll’ as follows :
root@hostname:/opt/metasploit-framework# apt -y install jekyll Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: cabextract fonts-wine gstreamer1.0-plugins-base:i386 gyp icoutils libasn1-8-heimdal:i386 libasound2:i386 libasound2-plugins:i386 libasyncns0:i386 libavahi-client3:i386 libavahi-common-data:i386 libavahi-common3:i386 libbsd0:i386 libcairo2:i386 libcap2:i386 libcapi20-3 libcapi20-3:i386 libcdparanoia0:i386 libcups2:i386 libdbus-1-3:i386 libexif12:i386 libflac8:i386 libfontconfig1:i386 libfreetype6:i386 libgd3:i386 libgl1:i386 libgl1-mesa-glx:i386 libglib2.0-0:i386 libglu1-mesa:i386 libglvnd0:i386 libglx-mesa0:i386 libglx0:i386 libgmp10:i386 libgnutls30:i386 libgphoto2-6:i386 libgphoto2-port12:i386 libgsm1:i386 libgssapi-krb5-2:i386 libgssapi3-heimdal:i386 libgstreamer-plugins-base1.0-0:i386 libgstreamer1.0-0:i386 libhcrypto4-heimdal:i386 libheimbase1-heimdal:i386 libheimntlm0-heimdal:i386 libhogweed4:i386 libhx509-5-heimdal:i386 libidn2-0:i386 libieee1284-3:i386 libjack-jackd2-0:i386 libjbig0:i386 libjpeg-turbo8:i386 libjpeg8:i386 libjs-async libjs-inherits libjs-node-uuid libk5crypto3:i386 libkeyutils1:i386 libkrb5-26-heimdal:i386 libkrb5-3:i386 libkrb5support0:i386 liblcms2-2:i386 libldap-2.4-2:i386 libllvm6.0:i386 libltdl7:i386 libmpg123-0:i386 libmspack0 libnettle6:i386 libodbc1 libodbc1:i386 libogg0:i386 libopenal1:i386 libopus0:i386 liborc-0.4-0:i386 libosmesa6 libosmesa6:i386 libp11-kit0:i386 libpcap0.8:i386 libpixman-1-0:i386 libpng16-16:i386 libpulse0:i386 libroken18-heimdal:i386 libsamplerate0:i386 libsane1:i386 libsasl2-2:i386 libsasl2-modules-db:i386 libsndfile1:i386 libsndio6.1:i386 libspeexdsp1:i386 libsqlite3-0:i386 libssl1.1:i386 libtasn1-6:i386 libtheora0:i386 libtiff5:i386 libunistring2:i386 libusb-1.0-0:i386 libuv1-dev libv4l-0:i386 libv4lconvert0:i386 libvisual-0.4-0:i386 libvorbis0a:i386 libvorbisenc2:i386 libwebp6:i386 libwind0-heimdal:i386 libwine libwine:i386 libwrap0:i386 libwxgtk3.0-gtk3-0v5 libx11-6:i386 libx11-xcb1:i386 libxau6:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-glx0:i386 libxcb-present0:i386 libxcb-render0:i386 libxcb-shm0:i386 libxcb-sync1:i386 libxcb1:i386 libxcomposite1:i386 libxcursor1:i386 libxdamage1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxi6:i386 libxinerama1:i386 libxml2:i386 libxpm4:i386 libxrandr2:i386 libxrender1:i386 libxshmfence1:i386 libxslt1.1:i386 libxxf86vm1:i386 node-abbrev node-ansi node-ansi-color-table node-archy node-async node-balanced-match node-block-stream node-brace-expansion node-builtin-modules node-combined-stream node-concat-map node-cookie-jar node-delayed-stream node-forever-agent node-form-data node-fs.realpath node-fstream node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs node-hosted-git-info node-inflight node-inherits node-ini node-is-builtin-module node-isexe node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once node-osenv node-path-is-absolute node-pseudomap node-qs node-read node-read-package-json node-request node-retry node-rimraf node-semver node-sha node-slide node-spdx-correct node-spdx-expression-parse node-spdx-license-ids node-tar node-tunnel-agent node-underscore node-validate-npm-package-license node-which node-wrappy node-yallist ocl-icd-libopencl1 ocl-icd-libopencl1:i386 pkg-php-tools python-wxgtk3.0 python-wxversion shtool wine-stable wine32:i386 wine64 Use 'apt autoremove' to remove them. The following additional packages will be installed: libjs-coffeescript ruby-afm ruby-ascii85 ruby-blankslate ruby-classifier-reborn ruby-coderay ruby-coffee-script ruby-coffee-script-source ruby-colorator ruby-execjs ruby-fast-stemmer ruby-ffi ruby-hashery ruby-jekyll-coffeescript ruby-jekyll-feed ruby-jekyll-gist ruby-jekyll-paginate ruby-jekyll-sass-converter ruby-jekyll-watch ruby-json ruby-kramdown ruby-launchy-shim ruby-liquid ruby-listen ruby-mercenary ruby-mime-types ruby-mime-types-data ruby-multi-json ruby-oj ruby-parslet ruby-pdf-core ruby-pdf-reader ruby-pg ruby-posix-spawn ruby-prawn ruby-prawn-table ruby-pygments.rb ruby-rb-inotify ruby-rc4 ruby-rdiscount ruby-redcarpet ruby-rouge ruby-safe-yaml ruby-sass ruby-sequel ruby-sequel-pg ruby-stringex ruby-toml ruby-ttfunk ruby-yajl Suggested packages: coffeescript libjs-mathjax ruby-activesupport doc-base coderay fonts-arphic-gkai00mp ruby-pdf-inspector ruby-prawn-doc ttf-dejavu-core Recommended packages: ruby-mysql The following NEW packages will be installed: jekyll libjs-coffeescript ruby-afm ruby-ascii85 ruby-blankslate ruby-classifier-reborn ruby-coderay ruby-coffee-script ruby-coffee-script-source ruby-colorator ruby-execjs ruby-fast-stemmer ruby-ffi ruby-hashery ruby-jekyll-coffeescript ruby-jekyll-feed ruby-jekyll-gist ruby-jekyll-paginate ruby-jekyll-sass-converter ruby-jekyll-watch ruby-json ruby-kramdown ruby-launchy-shim ruby-liquid ruby-listen ruby-mercenary ruby-mime-types ruby-mime-types-data ruby-multi-json ruby-oj ruby-parslet ruby-pdf-core ruby-pdf-reader ruby-pg ruby-posix-spawn ruby-prawn ruby-prawn-table ruby-pygments.rb ruby-rb-inotify ruby-rc4 ruby-rdiscount ruby-redcarpet ruby-rouge ruby-safe-yaml ruby-sass ruby-sequel ruby-sequel-pg ruby-stringex ruby-toml ruby-ttfunk ruby-yajl 0 upgraded, 51 newly installed, 0 to remove and 32 not upgraded. Need to get 3.687 kB of archives. After this operation, 17,7 MB of additional disk space will be used. Get:1 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-fast-stemmer amd64 1.0.2-1build8 [7.980 B] Get:2 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-classifier-reborn all 2.2.0-1 [18,7 kB] Get:3 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-colorator all 1.1.0-1 [4.676 B] Get:4 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 libjs-coffeescript all 1.12.7~dfsg-3 [93,2 kB] Get:5 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-coffee-script-source all 1.10.0-1 [3.366 B] Get:6 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-multi-json all 1.12.1-1 [15,5 kB] Get:7 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-execjs all 2.6.0-1 [14,9 kB] Get:8 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-coffee-script all 2.4.1-1 [4.276 B] Get:9 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-jekyll-coffeescript all 1.0.1-2 [4.198 B] Get:10 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-jekyll-feed all 0.3.1-1 [6.012 B] Get:11 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-jekyll-gist all 1.1.0-1 [4.274 B] Get:12 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-jekyll-paginate all 1.1.0-1 [5.954 B] Get:13 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-sass all 3.4.23-1 [175 kB] Get:14 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-jekyll-sass-converter all 1.5.2-1 [5.676 B] Get:15 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-ffi amd64 1.9.10debian-1build4 [74,9 kB] Get:16 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-rb-inotify all 0.9.7-1 [11,2 kB] Get:17 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-listen all 3.1.5-1 [26,4 kB] Get:18 http://xxx.xxxxxx.xxxxxxx.xxxubuntu bionic/universe amd64 ruby-jekyll-watch all 1.3.0-1 [5.258 B] Get:19 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-coderay all 1.1.2-2 [76,3 kB] Get:20 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-afm all 0.2.2-1 [5.350 B] Get:21 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-ascii85 all 1.0.2-3 [9.004 B] Get:22 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-hashery all 2.1.2-1 [30,2 kB] Get:23 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-rc4 all 0.1.5-3 [4.058 B] Get:24 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-ttfunk all 1.4.0-1 [23,7 kB] Get:25 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-pdf-reader all 1.4.0-2 [124 kB] Get:26 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-pdf-core all 0.6.1-1 [18,3 kB] Get:27 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-prawn all 2.1.0+dfsg-1 [435 kB] Get:28 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-prawn-table all 0.2.2-1 [94,6 kB] Get:29 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-rouge all 2.2.1-1 [232 kB] Get:30 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-stringex all 2.8.4-1 [83,6 kB] Get:31 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-kramdown all 1.15.0-1 [252 kB] Get:32 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-launchy-shim all 2.3.0.1 [2.838 B] Get:33 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-liquid all 3.0.6-1 [30,1 kB] Get:34 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-mercenary all 0.3.6-1 [11,5 kB] Get:35 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-mime-types-data all 3.2015.1120-1 [66,7 kB] Get:36 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-mime-types all 3.1-1 [20,1 kB] Get:37 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-posix-spawn amd64 0.3.13-2build1 [23,8 kB] Get:38 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-yajl amd64 1.3.1-1build1 [35,2 kB] Get:39 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-pygments.rb all 1.2.0-2 [133 kB] Get:40 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-rdiscount amd64 2.1.8-1build5 [39,7 kB] Get:41 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-redcarpet amd64 3.4.0-4build1 [46,8 kB] Get:42 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-safe-yaml all 1.0.4-2 [17,8 kB] Get:43 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-blankslate all 3.1.3-1 [4.650 B] Get:44 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-parslet all 1.8.2-2 [48,9 kB] Get:45 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-toml all 0.2.0-3 [8.768 B] Get:46 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 jekyll all 3.1.6+dfsg-3 [82,9 kB] Get:47 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-json amd64 2.1.0+dfsg-2 [42,8 kB] Get:48 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-oj amd64 3.4.0-1build1 [112 kB] Get:49 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-pg amd64 0.19.0-2build1 [249 kB] Get:50 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-sequel all 5.6.0-1 [821 kB] Get:51 http://xxx.xxxxxx.xxxxxxx.xxx/ubuntu bionic/universe amd64 ruby-sequel-pg amd64 1.6.16-1build2 [19,5 kB] Fetched 3.687 kB in 6s (635 kB/s) Extracting templates from packages: 100% Selecting previously unselected package ruby-fast-stemmer. (Reading database ... 335424 files and directories currently installed.) Preparing to unpack .../00-ruby-fast-stemmer_1.0.2-1build8_amd64.deb ... Unpacking ruby-fast-stemmer (1.0.2-1build8) ... Selecting previously unselected package ruby-classifier-reborn. Preparing to unpack .../01-ruby-classifier-reborn_2.2.0-1_all.deb ... Unpacking ruby-classifier-reborn (2.2.0-1) ... Selecting previously unselected package ruby-colorator. Preparing to unpack .../02-ruby-colorator_1.1.0-1_all.deb ... Unpacking ruby-colorator (1.1.0-1) ... Selecting previously unselected package libjs-coffeescript. Preparing to unpack .../03-libjs-coffeescript_1.12.7~dfsg-3_all.deb ... Unpacking libjs-coffeescript (1.12.7~dfsg-3) ... Selecting previously unselected package ruby-coffee-script-source. Preparing to unpack .../04-ruby-coffee-script-source_1.10.0-1_all.deb ... Unpacking ruby-coffee-script-source (1.10.0-1) ... Selecting previously unselected package ruby-multi-json. Preparing to unpack .../05-ruby-multi-json_1.12.1-1_all.deb ... Unpacking ruby-multi-json (1.12.1-1) ... Selecting previously unselected package ruby-execjs. Preparing to unpack .../06-ruby-execjs_2.6.0-1_all.deb ... Unpacking ruby-execjs (2.6.0-1) ... Selecting previously unselected package ruby-coffee-script. Preparing to unpack .../07-ruby-coffee-script_2.4.1-1_all.deb ... Unpacking ruby-coffee-script (2.4.1-1) ... Selecting previously unselected package ruby-jekyll-coffeescript. Preparing to unpack .../08-ruby-jekyll-coffeescript_1.0.1-2_all.deb ... Unpacking ruby-jekyll-coffeescript (1.0.1-2) ... Selecting previously unselected package ruby-jekyll-feed. Preparing to unpack .../09-ruby-jekyll-feed_0.3.1-1_all.deb ... Unpacking ruby-jekyll-feed (0.3.1-1) ... Selecting previously unselected package ruby-jekyll-gist. Preparing to unpack .../10-ruby-jekyll-gist_1.1.0-1_all.deb ... Unpacking ruby-jekyll-gist (1.1.0-1) ... Selecting previously unselected package ruby-jekyll-paginate. Preparing to unpack .../11-ruby-jekyll-paginate_1.1.0-1_all.deb ... Unpacking ruby-jekyll-paginate (1.1.0-1) ... Selecting previously unselected package ruby-sass. Preparing to unpack .../12-ruby-sass_3.4.23-1_all.deb ... Unpacking ruby-sass (3.4.23-1) ... Selecting previously unselected package ruby-jekyll-sass-converter. Preparing to unpack .../13-ruby-jekyll-sass-converter_1.5.2-1_all.deb ... Unpacking ruby-jekyll-sass-converter (1.5.2-1) ... Selecting previously unselected package ruby-ffi. Preparing to unpack .../14-ruby-ffi_1.9.10debian-1build4_amd64.deb ... Unpacking ruby-ffi (1.9.10debian-1build4) ... Selecting previously unselected package ruby-rb-inotify. Preparing to unpack .../15-ruby-rb-inotify_0.9.7-1_all.deb ... Unpacking ruby-rb-inotify (0.9.7-1) ... Selecting previously unselected package ruby-listen. Preparing to unpack .../16-ruby-listen_3.1.5-1_all.deb ... Unpacking ruby-listen (3.1.5-1) ... Selecting previously unselected package ruby-jekyll-watch. Preparing to unpack .../17-ruby-jekyll-watch_1.3.0-1_all.deb ... Unpacking ruby-jekyll-watch (1.3.0-1) ... Selecting previously unselected package ruby-coderay. Preparing to unpack .../18-ruby-coderay_1.1.2-2_all.deb ... Unpacking ruby-coderay (1.1.2-2) ... Selecting previously unselected package ruby-afm. Preparing to unpack .../19-ruby-afm_0.2.2-1_all.deb ... Unpacking ruby-afm (0.2.2-1) ... Selecting previously unselected package ruby-ascii85. Preparing to unpack .../20-ruby-ascii85_1.0.2-3_all.deb ... Unpacking ruby-ascii85 (1.0.2-3) ... Selecting previously unselected package ruby-hashery. Preparing to unpack .../21-ruby-hashery_2.1.2-1_all.deb ... Unpacking ruby-hashery (2.1.2-1) ... Selecting previously unselected package ruby-rc4. Preparing to unpack .../22-ruby-rc4_0.1.5-3_all.deb ... Unpacking ruby-rc4 (0.1.5-3) ... Selecting previously unselected package ruby-ttfunk. Preparing to unpack .../23-ruby-ttfunk_1.4.0-1_all.deb ... Unpacking ruby-ttfunk (1.4.0-1) ... Selecting previously unselected package ruby-pdf-reader. Preparing to unpack .../24-ruby-pdf-reader_1.4.0-2_all.deb ... Unpacking ruby-pdf-reader (1.4.0-2) ... Selecting previously unselected package ruby-pdf-core. Preparing to unpack .../25-ruby-pdf-core_0.6.1-1_all.deb ... Unpacking ruby-pdf-core (0.6.1-1) ... Selecting previously unselected package ruby-prawn. Preparing to unpack .../26-ruby-prawn_2.1.0+dfsg-1_all.deb ... Unpacking ruby-prawn (2.1.0+dfsg-1) ... Selecting previously unselected package ruby-prawn-table. Preparing to unpack .../27-ruby-prawn-table_0.2.2-1_all.deb ... Unpacking ruby-prawn-table (0.2.2-1) ... Selecting previously unselected package ruby-rouge. Preparing to unpack .../28-ruby-rouge_2.2.1-1_all.deb ... Unpacking ruby-rouge (2.2.1-1) ... Selecting previously unselected package ruby-stringex. Preparing to unpack .../29-ruby-stringex_2.8.4-1_all.deb ... Unpacking ruby-stringex (2.8.4-1) ... Selecting previously unselected package ruby-kramdown. Preparing to unpack .../30-ruby-kramdown_1.15.0-1_all.deb ... Unpacking ruby-kramdown (1.15.0-1) ... Selecting previously unselected package ruby-launchy-shim. Preparing to unpack .../31-ruby-launchy-shim_2.3.0.1_all.deb ... Unpacking ruby-launchy-shim (2.3.0.1) ... Selecting previously unselected package ruby-liquid. Preparing to unpack .../32-ruby-liquid_3.0.6-1_all.deb ... Unpacking ruby-liquid (3.0.6-1) ... Selecting previously unselected package ruby-mercenary. Preparing to unpack .../33-ruby-mercenary_0.3.6-1_all.deb ... Unpacking ruby-mercenary (0.3.6-1) ... Selecting previously unselected package ruby-mime-types-data. Preparing to unpack .../34-ruby-mime-types-data_3.2015.1120-1_all.deb ... Unpacking ruby-mime-types-data (3.2015.1120-1) ... Selecting previously unselected package ruby-mime-types. Preparing to unpack .../35-ruby-mime-types_3.1-1_all.deb ... Unpacking ruby-mime-types (3.1-1) ... Selecting previously unselected package ruby-posix-spawn. Preparing to unpack .../36-ruby-posix-spawn_0.3.13-2build1_amd64.deb ... Unpacking ruby-posix-spawn (0.3.13-2build1) ... Selecting previously unselected package ruby-yajl. Preparing to unpack .../37-ruby-yajl_1.3.1-1build1_amd64.deb ... Unpacking ruby-yajl (1.3.1-1build1) ... Selecting previously unselected package ruby-pygments.rb. Preparing to unpack .../38-ruby-pygments.rb_1.2.0-2_all.deb ... Unpacking ruby-pygments.rb (1.2.0-2) ... Selecting previously unselected package ruby-rdiscount. Preparing to unpack .../39-ruby-rdiscount_2.1.8-1build5_amd64.deb ... Unpacking ruby-rdiscount (2.1.8-1build5) ... Selecting previously unselected package ruby-redcarpet. Preparing to unpack .../40-ruby-redcarpet_3.4.0-4build1_amd64.deb ... Unpacking ruby-redcarpet (3.4.0-4build1) ... Selecting previously unselected package ruby-safe-yaml. Preparing to unpack .../41-ruby-safe-yaml_1.0.4-2_all.deb ... Unpacking ruby-safe-yaml (1.0.4-2) ... Selecting previously unselected package ruby-blankslate. Preparing to unpack .../42-ruby-blankslate_3.1.3-1_all.deb ... Unpacking ruby-blankslate (3.1.3-1) ... Selecting previously unselected package ruby-parslet. Preparing to unpack .../43-ruby-parslet_1.8.2-2_all.deb ... Unpacking ruby-parslet (1.8.2-2) ... Selecting previously unselected package ruby-toml. Preparing to unpack .../44-ruby-toml_0.2.0-3_all.deb ... Unpacking ruby-toml (0.2.0-3) ... Selecting previously unselected package jekyll. Preparing to unpack .../45-jekyll_3.1.6+dfsg-3_all.deb ... Unpacking jekyll (3.1.6+dfsg-3) ... Selecting previously unselected package ruby-json. Preparing to unpack .../46-ruby-json_2.1.0+dfsg-2_amd64.deb ... Unpacking ruby-json (2.1.0+dfsg-2) ... Selecting previously unselected package ruby-oj:amd64. Preparing to unpack .../47-ruby-oj_3.4.0-1build1_amd64.deb ... Unpacking ruby-oj:amd64 (3.4.0-1build1) ... Selecting previously unselected package ruby-pg. Preparing to unpack .../48-ruby-pg_0.19.0-2build1_amd64.deb ... Unpacking ruby-pg (0.19.0-2build1) ... Selecting previously unselected package ruby-sequel. Preparing to unpack .../49-ruby-sequel_5.6.0-1_all.deb ... Unpacking ruby-sequel (5.6.0-1) ... Selecting previously unselected package ruby-sequel-pg. Preparing to unpack .../50-ruby-sequel-pg_1.6.16-1build2_amd64.deb ... Unpacking ruby-sequel-pg (1.6.16-1build2) ... Setting up ruby-redcarpet (3.4.0-4build1) ... Setting up ruby-fast-stemmer (1.0.2-1build8) ... Setting up ruby-safe-yaml (1.0.4-2) ... Setting up ruby-rc4 (0.1.5-3) ... Setting up ruby-ascii85 (1.0.2-3) ... Setting up ruby-json (2.1.0+dfsg-2) ... Setting up ruby-sass (3.4.23-1) ... Setting up ruby-classifier-reborn (2.2.0-1) ... Setting up ruby-oj:amd64 (3.4.0-1build1) ... Setting up ruby-jekyll-gist (1.1.0-1) ... Setting up ruby-liquid (3.0.6-1) ... Setting up ruby-pg (0.19.0-2build1) ... Setting up ruby-multi-json (1.12.1-1) ... Setting up ruby-jekyll-feed (0.3.1-1) ... Setting up ruby-rouge (2.2.1-1) ... Setting up ruby-coderay (1.1.2-2) ... Setting up ruby-hashery (2.1.2-1) ... Setting up ruby-jekyll-paginate (1.1.0-1) ... Setting up ruby-execjs (2.6.0-1) ... Setting up ruby-mercenary (0.3.6-1) ... Setting up ruby-colorator (1.1.0-1) ... Setting up ruby-ffi (1.9.10debian-1build4) ... Setting up ruby-rb-inotify (0.9.7-1) ... Setting up ruby-ttfunk (1.4.0-1) ... Setting up ruby-launchy-shim (2.3.0.1) ... Setting up libjs-coffeescript (1.12.7~dfsg-3) ... Setting up ruby-stringex (2.8.4-1) ... Setting up ruby-listen (3.1.5-1) ... Setting up ruby-yajl (1.3.1-1build1) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... Setting up ruby-blankslate (3.1.3-1) ... Setting up ruby-posix-spawn (0.3.13-2build1) ... Setting up ruby-mime-types-data (3.2015.1120-1) ... Setting up ruby-mime-types (3.1-1) ... Setting up ruby-pygments.rb (1.2.0-2) ... Setting up ruby-afm (0.2.2-1) ... Setting up ruby-parslet (1.8.2-2) ... Setting up ruby-sequel (5.6.0-1) ... Setting up ruby-rdiscount (2.1.8-1build5) ... Setting up ruby-jekyll-sass-converter (1.5.2-1) ... Setting up ruby-coffee-script-source (1.10.0-1) ... Setting up ruby-toml (0.2.0-3) ... Setting up ruby-coffee-script (2.4.1-1) ... Setting up ruby-pdf-reader (1.4.0-2) ... Setting up ruby-jekyll-watch (1.3.0-1) ... Setting up ruby-sequel-pg (1.6.16-1build2) ... Setting up ruby-jekyll-coffeescript (1.0.1-2) ... Setting up ruby-pdf-core (0.6.1-1) ... Setting up ruby-prawn (2.1.0+dfsg-1) ... Setting up ruby-prawn-table (0.2.2-1) ... Setting up ruby-kramdown (1.15.0-1) ... Setting up jekyll (3.1.6+dfsg-3) ... root@hostname:/opt/metasploit-framework#
Installing metasploit framework using ‘bundle’ command
In this section, the real installation is finally begins. Using the ‘bundle’ gem, install the metaploit framework.
1. Finally, carrying the installation process, execute the command ‘bundle install’ :
user@hostname:/opt/metasploit-framework$ bundle install
Fetching gem metadata from https://rubygems.org/...........
Following files may not be writable, so sudo is needed:
/usr/local/bin
/var/lib/gems/2.5.0
/var/lib/gems/2.5.0/build_info
/var/lib/gems/2.5.0/cache
/var/lib/gems/2.5.0/doc
/var/lib/gems/2.5.0/extensions
/var/lib/gems/2.5.0/gems
/var/lib/gems/2.5.0/specifications
Fetching rake 12.3.2
Your user account isn't allowed to install to the system RubyGems.
You can cancel this installation and run:
bundle install --path vendor/bundle
to install the gems into ./vendor/bundle/, or you can enter your password
and install the bundled gems to RubyGems using sudo.
Password:
Installing rake 12.3.2
Fetching Ascii85 1.0.3
Installing Ascii85 1.0.3
Fetching concurrent-ruby 1.0.5
Installing concurrent-ruby 1.0.5
Fetching i18n 0.9.5
Installing i18n 0.9.5
Fetching minitest 5.11.3
Installing minitest 5.11.3
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.5
Installing tzinfo 1.2.5
Fetching activesupport 4.2.11
Installing activesupport 4.2.11
Fetching builder 3.2.3
Installing builder 3.2.3
Fetching erubis 2.7.0
Installing erubis 2.7.0
Fetching mini_portile2 2.4.0
Installing mini_portile2 2.4.0
Fetching nokogiri 1.10.1
Installing nokogiri 1.10.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /tmp/bundler20190215-6232-1yag4b9nokogiri-1.10.1/gems/nokogiri-1.10.1/ext/nokogiri
/usr/bin/ruby2.5 -r ./siteconf20190215-6232-tyetzx.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /tmp/bundler20190215-6232-1yag4b9nokogiri-1.10.1/gems/nokogiri-1.10.1 for inspection.
Results logged to /tmp/bundler20190215-6232-1yag4b9nokogiri-1.10.1/extensions/x86_64-linux/2.5.0/nokogiri-1.10.1/gem_make.out
An error occurred while installing nokogiri (1.10.1), and Bundler cannot continue.
Make sure that gem install nokogiri -v '1.10.1' --source 'https://rubygems.org/'
succeeds before bundling. In Gemfile: factory_bot_rails was resolved to 5.0.1, which depends on railties was resolved to 4.2.11, which depends on actionpack was resolved to 4.2.11, which depends on actionview was resolved to 4.2.11, which depends on rails-dom-testing was resolved to 1.0.9, which depends on nokogiri
The above problem must be taken care of before pursuing the installation. Read the following article in this link to find out how to solve it.
2. Try to install nokogiri again.
user@hostmame:/opt/metasploit-framework$ sudo gem install nokogiri -v '1.10.1' Building native extensions. This could take a while... Successfully installed nokogiri-1.10.1 Parsing documentation for nokogiri-1.10.1 Installing ri documentation for nokogiri-1.10.1 Done installing documentation for nokogiri after 6 seconds 1 gem installed user@hostname:/opt/metasploit-framework$
3. Another obstacle for installing metasploit framework appears as in the output command above. Just install ‘ruby-dev’ to solve the problem. Read the detail in the article in this link.
user@hostname:/opt/metasploit-framework$ sudo bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. ^C user@hostname:/opt/metasploit-framework$
4. The installation fails above since it is using the ‘sudo’ command. At last, this is the last step of all. Just stop installing with root account and type the command normally as follows :
user@hostname:/opt/metasploit-framework$ bundle install Fetching gem metadata from https://rubygems.org/........... Using rake 12.3.2 Following files may not be writable, so sudo is needed: /usr/local/bin /var/lib/gems/2.5.0 /var/lib/gems/2.5.0/build_info /var/lib/gems/2.5.0/cache /var/lib/gems/2.5.0/doc /var/lib/gems/2.5.0/extensions /var/lib/gems/2.5.0/gems /var/lib/gems/2.5.0/specifications Using Ascii85 1.0.3 Using concurrent-ruby 1.0.5 Using i18n 0.9.5 Using minitest 5.11.3 Using thread_safe 0.3.6 Using tzinfo 1.2.5 Using activesupport 4.2.11 Using builder 3.2.3 Using erubis 2.7.0 Using mini_portile2 2.4.0 Using nokogiri 1.10.1 Fetching rails-deprecated_sanitizer 1.0.3 Your user account isn't allowed to install to the system RubyGems. You can cancel this installation and run: bundle install --path vendor/bundle to install the gems into ./vendor/bundle/, or you can enter your password and install the bundled gems to RubyGems using sudo. Password: Installing rails-deprecated_sanitizer 1.0.3 Fetching rails-dom-testing 1.0.9 Installing rails-dom-testing 1.0.9 Fetching crass 1.0.4 Installing crass 1.0.4 Fetching loofah 2.2.3 Installing loofah 2.2.3 Fetching rails-html-sanitizer 1.0.4 Installing rails-html-sanitizer 1.0.4 Fetching actionview 4.2.11 Installing actionview 4.2.11 Fetching rack 1.6.11 Installing rack 1.6.11 Fetching rack-test 0.6.3 Installing rack-test 0.6.3 Fetching actionpack 4.2.11 Installing actionpack 4.2.11 Fetching activemodel 4.2.11 Installing activemodel 4.2.11 Fetching arel 6.0.4 Installing arel 6.0.4 Fetching activerecord 4.2.11 Installing activerecord 4.2.11 Fetching public_suffix 3.0.3 Installing public_suffix 3.0.3 Fetching addressable 2.5.2 Installing addressable 2.5.2 Using afm 0.2.2 Fetching arel-helpers 2.8.0 Installing arel-helpers 2.8.0 Fetching backports 3.11.4 Installing backports 3.11.4 Fetching bcrypt 3.1.12 Installing bcrypt 3.1.12 with native extensions Fetching bcrypt_pbkdf 1.0.0 Installing bcrypt_pbkdf 1.0.0 with native extensions Fetching bindata 2.4.4 Installing bindata 2.4.4 Fetching bit-struct 0.16 Installing bit-struct 0.16 Using bundler 2.0.1 Using coderay 1.1.2 Fetching cookiejar 0.3.3 Installing cookiejar 0.3.3 Fetching daemons 1.3.1 Installing daemons 1.3.1 Fetching diff-lcs 1.3 Installing diff-lcs 1.3 Fetching dnsruby 1.61.2 Installing dnsruby 1.61.2 Fetching docile 1.3.1 Installing docile 1.3.1 Fetching ed25519 1.2.4 Installing ed25519 1.2.4 with native extensions Fetching eventmachine 1.2.7 Installing eventmachine 1.2.7 with native extensions Fetching em-socksify 0.3.2 Installing em-socksify 0.3.2 Fetching http_parser.rb 0.6.0 Installing http_parser.rb 0.6.0 with native extensions Fetching em-http-request 1.1.5 Installing em-http-request 1.1.5 Fetching factory_bot 5.0.0 Installing factory_bot 5.0.0 Fetching thor 0.20.3 Installing thor 0.20.3 Fetching railties 4.2.11 Installing railties 4.2.11 Fetching factory_bot_rails 5.0.1 Installing factory_bot_rails 5.0.1 Fetching faker 1.9.3 Installing faker 1.9.3 Fetching multipart-post 2.0.0 Installing multipart-post 2.0.0 Fetching faraday 0.15.4 Installing faraday 0.15.4 Fetching filesize 0.2.0 Installing filesize 0.2.0 Fetching fivemat 1.3.7 Installing fivemat 1.3.7 Using hashery 2.1.2 Fetching rkelly-remix 0.0.7 Installing rkelly-remix 0.0.7 Fetching jsobfu 0.4.2 Installing jsobfu 0.4.2 Using json 2.1.0 Fetching metasm 1.0.3 Installing metasm 1.0.3 Fetching metasploit-concern 2.0.5 Installing metasploit-concern 2.0.5 Fetching metasploit-model 2.0.4 Installing metasploit-model 2.0.4 Fetching pg 0.21.0 Installing pg 0.21.0 with native extensions Fetching pg_array_parser 0.0.9 Installing pg_array_parser 0.0.9 with native extensions Fetching postgres_ext 3.0.1 Installing postgres_ext 3.0.1 Fetching recog 2.1.46 Installing recog 2.1.46 Fetching metasploit_data_models 3.0.5 Installing metasploit_data_models 3.0.5 Fetching net-ssh 5.1.0 Installing net-ssh 5.1.0 Fetching rex-core 0.1.13 Installing rex-core 0.1.13 Fetching rex-socket 0.1.16 Installing rex-socket 0.1.16 Fetching rubyntlm 0.6.2 Installing rubyntlm 0.6.2 Fetching rubyzip 1.2.2 Installing rubyzip 1.2.2 Fetching metasploit-credential 3.0.3 Installing metasploit-credential 3.0.3 Fetching metasploit-payloads 1.3.62 Installing metasploit-payloads 1.3.62 Fetching metasploit_payloads-mettle 0.5.7 Installing metasploit_payloads-mettle 0.5.7 Fetching mqtt 0.5.0 Installing mqtt 0.5.0 Fetching msgpack 1.2.6 Installing msgpack 1.2.6 with native extensions Fetching nessus_rest 0.1.6 Installing nessus_rest 0.1.6 Fetching network_interface 0.0.2 Installing network_interface 0.0.2 with native extensions Fetching nexpose 7.2.1 Installing nexpose 7.2.1 Fetching sawyer 0.8.1 Installing sawyer 0.8.1 Fetching octokit 4.13.0 Installing octokit 4.13.0 Fetching openssl-ccm 1.2.2 Installing openssl-ccm 1.2.2 Fetching openvas-omp 0.0.4 Installing openvas-omp 0.0.4 Fetching pcaprub 0.13.0 Installing pcaprub 0.13.0 with native extensions Fetching packetfu 1.1.13 Installing packetfu 1.1.13 Fetching patch_finder 1.0.2 Installing patch_finder 1.0.2 Using ruby-rc4 0.1.5 Fetching ttfunk 1.5.1 Installing ttfunk 1.5.1 Fetching pdf-reader 2.2.0 Installing pdf-reader 2.2.0 Fetching rb-readline 0.5.5 Installing rb-readline 0.5.5 Using redcarpet 3.4.0 Fetching rex-text 0.2.21 Installing rex-text 0.2.21 Fetching rex-arch 0.1.13 Installing rex-arch 0.1.13 Fetching rex-struct2 0.1.2 Installing rex-struct2 0.1.2 Fetching rex-bin_tools 0.1.6 Installing rex-bin_tools 0.1.6 Fetching rex-encoder 0.1.4 Installing rex-encoder 0.1.4 Fetching rex-exploitation 0.1.20 Installing rex-exploitation 0.1.20 Fetching rex-java 0.1.5 Installing rex-java 0.1.5 Fetching rex-mime 0.1.5 Installing rex-mime 0.1.5 Fetching rex-nop 0.1.1 Installing rex-nop 0.1.1 Fetching rex-ole 0.1.6 Installing rex-ole 0.1.6 Fetching rex-random_identifier 0.1.4 Installing rex-random_identifier 0.1.4 Fetching rex-powershell 0.1.79 Installing rex-powershell 0.1.79 Fetching rex-registry 0.1.3 Installing rex-registry 0.1.3 Fetching rex-rop_builder 0.1.3 Installing rex-rop_builder 0.1.3 Fetching rex-sslscan 0.1.5 Installing rex-sslscan 0.1.5 Fetching rex-zip 0.1.3 Installing rex-zip 0.1.3 Fetching ruby-macho 2.1.0 Installing ruby-macho 2.1.0 Fetching windows_error 0.1.2 Installing windows_error 0.1.2 Fetching ruby_smb 1.0.5 Installing ruby_smb 1.0.5 Fetching rack-protection 1.5.5 Installing rack-protection 1.5.5 Fetching tilt 2.0.9 Installing tilt 2.0.9 Fetching sinatra 1.4.8 Installing sinatra 1.4.8 Fetching sqlite3 1.3.13 Installing sqlite3 1.3.13 with native extensions Fetching sshkey 2.0.0 Installing sshkey 2.0.0 Fetching thin 1.7.2 Installing thin 1.7.2 with native extensions Fetching tzinfo-data 1.2018.9 Installing tzinfo-data 1.2018.9 Fetching warden 1.2.7 Installing warden 1.2.7 Fetching xdr 2.0.0 Installing xdr 2.0.0 Fetching xmlrpc 0.3.0 Installing xmlrpc 0.3.0 Using metasploit-framework 5.0.7 from source at `.` Fetching method_source 0.9.2 Installing method_source 0.9.2 Fetching pry 0.12.2 Installing pry 0.12.2 Fetching rspec-support 3.8.0 Installing rspec-support 3.8.0 Fetching rspec-core 3.8.0 Installing rspec-core 3.8.0 Fetching rspec-expectations 3.8.2 Installing rspec-expectations 3.8.2 Fetching rspec-mocks 3.8.0 Installing rspec-mocks 3.8.0 Fetching rspec 3.8.0 Installing rspec 3.8.0 Fetching rspec-rails 3.8.2 Installing rspec-rails 3.8.2 Fetching rspec-rerun 1.1.0 Installing rspec-rerun 1.1.0 Fetching simplecov-html 0.10.2 Installing simplecov-html 0.10.2 Fetching simplecov 0.16.1 Installing simplecov 0.16.1 Fetching swagger-blocks 2.0.2 Installing swagger-blocks 2.0.2 Fetching timecop 0.9.1 Installing timecop 0.9.1 Fetching yard 0.9.18 Installing yard 0.9.18 Bundle complete! 14 Gemfile dependencies, 135 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. Post-install message from dnsruby: Installing dnsruby... For issues and source code: https://github.com/alexdalitz/dnsruby For general discussion (please tell us how you use dnsruby): https://groups.google.com/forum/#!forum/dnsruby Post-install message from openssl-ccm: Thanks for installing! Post-install message from yard: -------------------------------------------------------------------------------- As of YARD v0.9.2: RubyGems "--document=yri,yard" hooks are now supported. You can auto-configure YARD to automatically build the yri index for installed gems by typing: $ yard config --gem-install-yri See `yard config --help` for more information on RubyGems install hooks. You can also add the following to your .gemspec to have YARD document your gem on install: spec.metadata["yard.run"] = "yri" # use "yard" to build full HTML docs. -------------------------------------------------------------------------------- user@hostname:/opt/metasploit-framework$