How to install Nexpose on Kali Linux

Download Nexpose from Rapid7.com.

chmod +x NeXposeSetup-Linux64.bin

./NeXposeSetup-Linux64.bin

To start Nexpose Services:

cd /opt/rapid7/nexpose/nsc/
./nsc.sh

To get Metasploit and NeXpose working together:

The reason is both Metasploit and Nexpose uses two separate PostreSQL databases and if one DB starts at port 5432 the other will fail. The solution is edit the system postgreSQL configuration file at /etc/postgresql/9.1/main/postgresql.conf. Look for the line:

port = 5432

and change it to anything else other than this default port number. For example:

port = 5433

Then go to the <Metasploit installation directory>/apps/pro/ui/config/database.yml and change the PostgreSQL port there to the one you configured in the postgresql.conf file. If you don’t have a database.yml file but have a database.yml.example file, just rename it to database.yml and then edit it. It should be like:

development:

 adapter: postgresql

 database: <db-name>

 username: <username>

 password: <password>

 host: <hostname>

 port: 54321

 pool: 5

 timeout:5

Then start postgre and metasploit service. It should run fine.

/etc/init.d/posgresql start

/etc/init.d/metasploit start

When you have first installed Metasploit and second Nexpose, then follow the following steps:

Remove the installed metasploit packages and place them on hold:

Code:
apt-get remove metasploit && metasploit-framework
echo "metasploit"|dpkg --set-selections
echo "metasploit-framework"|dpkg --set-selections

You must remove all metasploit folders

Code:
updatedb && locate metasploit
rm -rf /usr/share/metasploit-framework/ && rm -rf /usr/share/doc/metasploit/ && rm -rf /usr/share/doc/metasploit-framework/
apt-get purge metasploit -y

Now download neXpose and Metasploit from the rapid7 site and make them executable:
http://www.rapid7.com/products/nexpo…-downloads.jsp
http://www.rapid7.com/products/metasploit/download.jsp

64-Bit Kali Example:

Code:
cd /tmp
wget http://downloads.metasploit.com/data/releases/metasploit-latest-linux-x64-installer.run
chmod 755 metasploit-latest-linux-x64-installer.run
wget http://download2.rapid7.com/download/NeXpose-v4/NeXposeSetup-Linux64.bin
chmod 755 NeXposeSetup-Linux64.bin

Then simply run the packages one at a time to install:

Code:
./metasploit-latest-linux-x64-installer.run

then

Code:
./NeXposeSetup-Linux64.bin

After that everything should be working as expected and you can run both neXpose and Metasploit at the same time.

(Optional)
If you want that Metasploit starts with Kali.
Code:
update-rc.d postgreSQL enable

update-rc.d metasploit enable


If you want also to install Armitage to the following:

Code:

apt-get install armitage

Kali Linux, nexpose, Rapid7


Vincent Verloop

Ervaren ICT Professional met een bewezen geschiedenis van werken in de IT- en dienstensector. Bekwaam in OS X, Search Engine Optimization (SEO), PHP, WordPress en Domain Name System (DNS). Sterke media- en communicatieprofessional met een diploma MBO niveau 4 gericht op ICT-beheer / ICT-beheerder. Volg Vincent Verloop op Twitter.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Webdeveloper + ICT

Contact

Vincent Verloop
Boermarke 37
9481 HD Vries
Nederland

T +31 646413941
E info@vincentverloop.nl

Copyright © 2018 Vincent Verloop