Recovering from Kali Linux network manager error

I’ve been working with a virtual image of Kali recently using VMWare workstation and had a problem where the machine would work fine for a few hours and then the applications would freeze and would not allow you to open new windows or tabs(you could close existing apps)

If I restarted the virtual machine it then failed to boot. The screen would freeze on this image below and start flashing between showing the text and a black screen.

The main clue pointing the problem is the reoccurring error [Failed] Failed to start network manager:network manager 1

The first time it happened I just reinstalled the image but after the second time I thought it would be smarter to see if there was a quicker way to fix the problem. You can’t do anything from the above screen but it was possible to reinstall the network manager from recovery mode.

To do so, reboot the virtual machine and select the 2nd option from the GRUB window:

network manager 2

After that select recovery mode:

network manager 3

This will eventually ask for the root password and give you a prompt you can use to reinstall the faulty package. This will also update it if possible (which hopefully fixes the bugs causing it to crash in the first place)

sudo apt-get –reinstall install network-manager

network manager 4



How to add a custom module to Metasploit

Metasploit comes with thousands of modules preinstalled but there is nothing stopping you from adding some brand new ones from the internet or altering existing ones.

Here is the method for taking an existing exploit and adding your own custom version of it to Metasploit, the same instructions can be adapted for adding a brand new exploit from the internet.

  • By default in Kali the modules are all stored in /usr/share/metasploit-framework/modules it’s worth checking yours are here before we continue.


  1. Open up msfconsole and navigate to your modules folder2
  2. In this example we will be making a custom version of the ms02_056_hello.rb mssql exploit. Use the mkdir command to create a custom folder in a sensible location and copy the exploit into it using cp.3
  3. navigate to your custom folder and confirm the exploit copy is there:4
  4. Open up the exploit using any editor (Ignore this if you don’t intend on making any changes and have found a module from the internet:5
  5. Make the changes you want. In the screenshot below we have just changed the description to as a demonstration. Save your new exploit.6
  6. Use the mv command to give your exploit a custom name, this stops you accidentally confusing it with the original code in the future.7
  7. Metasploit won’t be able to find your exploit until it after you exit and reopen msfconsole. You’ll see a search error if you try: 8
  8. After closing and reopening msfconsole your code should be visible within Metasploit to use just like the preinstalled ones.9