Metasploit-framework: Uninstall Metasploit completely

Created on 27 Aug 2018  路  3Comments  路  Source: rapid7/metasploit-framework

I wanted to remove and reinstall Metasploit completely because I messed up with it.
But I couldn't find the uninstall script like this doc said : https://metasploit.help.rapid7.com/docs/uninstalling-metasploit .
So I removed two folders at :
/home/.msf4 and /opt/metasploit-framework.

So I tried to reinstall it with nightly installers :
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && \ chmod 755 msfinstall && \ ./msfinstall

It returns me that that blocks me :
chmod 755 msfinstall && \ ./msfinstall % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 5525 100 5525 0 0 12672 0 --:--:-- --:--:-- --:--:-- 12672 Switching to root user to update the package Checking for and installing update.. Reading packets list... Done Building dependencies tree.. Reading state information... Done metasploit-framework is already the latest version (4.17.0+20180815103558.git.3.27bab54~1rapid7-1).

So I'm blocked.

Metasploit version

4.17.6-dev

I installed Metasploit with:

  • [ ] Kali package via apt
  • [x] Omnibus installer (nightly)
  • [] Commercial/Community installer (from http://www.rapid7.com/products/metasploit/download.jsp)
  • [ ] Source install (please specify ruby version)

OS

What OS are you running Metasploit on?
Ubuntu

Most helpful comment

sudo apt remove metasploit-framework

I have a preference for purge, but you can play it safe.

All 3 comments

sudo apt remove metasploit-framework

I have a preference for purge, but you can play it safe.

Thank you for that. So there's no more uninstall script for Linux because I searched it in all the folders of metasploit and couldn't find it.

It's installed as a package, so it's managed by your package manager.

Was this page helpful?
0 / 5 - 0 ratings