PDA

View Full Version : How to update Metasploit in Kali Linux?



mahmoudissam
2016-10-08, 00:46
Everyday I do the steps below to update Kali Linux including all apps (Including Metasploit):

1- apt-get update && apt-get upgrade && apt-get dist-upgrade
2- Also I execute the command: msfupdate
3- And I run Package updater from the GUI.
4- Then I bounce the machine.

I have got a question:

1- During running the first command, I noticed that the system has downloaded Metasploit v4.12.30.
But when I completed all the commands above , still when I start Metasploit I get the version: v4.12.28-dev
Am I missing anything?

2- Are the steps above enough to update Metasploit framework ( Including the payloads, exploits, Auxiliary ) or I need to do anything else?

Thanks,

mahmoudissam
2016-10-08, 23:07
Any help is highly appreciated :)

grid
2016-10-10, 11:49
apt-get update && apt-get dist-upgrade should work for all packages installed from the Kali repos, including Metasploit. Msfupdate pulls from the Kali repos (assuming /etc/apt/sources.list is set correctly), so it's not necessary to run it. I've not used the GUI package updater, but I suspect that's not needed either.

mahmoudissam
2016-10-10, 12:27
Thanks mate, but why I see the following in the log file : dpkg.log , but when I load the MetaSploit (by running the command msfconsole) I still get this version v4.12.28-dev ?

2016-10-08 10:40:46 configure metasploit-framework:amd64 4.12.30-0kali1 <none>
2016-10-08 10:40:46 status unpacked metasploit-framework:amd64 4.12.30-0kali1
2016-10-08 10:40:46 status half-configured metasploit-framework:amd64 4.12.30-0kali1
2016-10-08 10:40:47 status installed metasploit-framework:amd64 4.12.30-0kali1
2016-10-08 10:40:47 configure libmpg123-0:amd64 1.23.8-1 <none>

grid
2016-10-11, 11:42
Something must've gone wrong during the unpack & install. I'd run apt-get autoclean, uninstall Metasploit, then reinstall.