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:
apt-get remove metasploit && metasploit-framework echo "metasploit"|dpkg --set-selections echo "metasploit-framework"|dpkg --set-selections
You must remove all metasploit folders
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
http://www.rapid7.com/products/nexpo…-downloads.jsp
http://www.rapid7.com/products/metasploit/download.jsp
64-Bit Kali Example:
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:
./metasploit-latest-linux-x64-installer.run
then
./NeXposeSetup-Linux64.bin
After that everything should be working as expected and you can run both neXpose and Metasploit at the same time.
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