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.
4.17.6-dev
What OS are you running Metasploit on?
Ubuntu
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.
Most helpful comment
I have a preference for
purge, but you can play it safe.