Friday 12 February 2016

Cannot start Maltego on Kali Linux 2.0



Recently I started a security course where one of the tools we use is Kali. As my next week’s lab is about Maltego, I’ve decided to build a Virtual Machine with Kali.

However, after registering for a community license, when trying to start Maltego, I am getting as far as Loading Modules or Starting Modules.

I've tried removing Maltego and installing it again and updating Kali. None of this helped. I’ve also tried to install Maltego on Ubuntu and that has worked fine.

I couldn't find any further information on the Internet apart of some comments with 2 other people facing similar issue:


I did some further research and apparently Maltego Chlorine needs Java 8 while Kali has Java 7.
You can check which version of Java you have installed by typing:

java --version

in a terminal window.

Anyway, I decided to update Java and see what happens. The commands I run were:

echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list

echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" >> /etc/apt/sources.list

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886

sudo apt-get update

sudo apt-get install oracle-java8-installer


Once this was done, Maltego has loaded fine.

I hope it helps somebody. If it was helpful for you, please leave a comment so I will know ;)


15 comments:

  1. Hi, thanks for sharing this.

    I was able to get it to work by installing the latest updates for Kali (using Package Updater).

    This is of course several days since your post, so it's possible that the Kali package sources now have the updated Java (I had over 600 updates, so didn't bother to check if Java 8 was part of them).

    ReplyDelete
  2. Hi, I managed to install java 8:
    Oracle JRE 8 browser plugin installed
    But Maltego still doesn't load. Maybe I have to restart my PC. Thnx anyway.

    ReplyDelete
    Replies
    1. Hi

      the above applies to Kali.

      As Hubby pointed it out if you run a

      apt-get update
      apt-get upgrade

      should work after. I tried it on one of my VMs and it worked fine after without any Java updates

      Delete
  3. thnks ,however,I tried all above its not working,frustrated,please help
    i m running 64 not 32
    Java 8 installed
    racle JDK 8 installed
    Oracle JRE 8 browser plugin installed

    I faced below but its updated

    W: GPG error: http://ppa.launchpad.net/webupd8team/java/ubuntu trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
    W: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu trusty InRelease' is not signed.
    N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    W: There is no public key available for the following key IDs:
    C2518248EEA14886
    W: GPG error: http://ppa.launchpad.net/webupd8team/java/ubuntu precise InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C2518248EEA14886
    W: The repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu precise InRelease' is not signed.
    N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    W: There is no public key available for the following key IDs:
    C2518248EEA14886

    ReplyDelete
  4. I m running kali linux 2016.1 64 bit

    ReplyDelete
  5. Works perfectly fine with the bundled version of java.

    You need to edit:

    /usr/share/maltego/etc/maltego.conf

    and uncomment the line:

    #jdkhome="/path/to/jdk"

    and add in the correct path:

    jdkhome="/usr/lib/jvm/java-7-openjdk-i386/"

    ReplyDelete
    Replies
    1. thanks. It works fine with the latest Kali update.

      Delete
  6. finally it worked :) Kali linux 2016.1 64-Bit

    update Kali

    apt-get update
    apt-get upgrade

    you need to edit:

    /usr/share/maltego/etc/maltego.conf

    and uncomment the line:

    #jdkhome="/path/to/jdk"

    and add in the correct path:

    jdkhome="/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java"

    ReplyDelete
  7. i did that successfully
    at first , Maltego stuck loading modules
    after doing the above
    Maltego stuck startingmodules

    ReplyDelete
  8. i did that successfully
    at first , Maltego stuck loading modules
    after doing the above
    Maltego stuck startingmodules

    ReplyDelete
  9. Hi Maltego is "starting modules", I upgrade Kali, Java to 8version, I am running on WMWare workstation 11. What is the solution?

    ReplyDelete
  10. Hi

    U have to do this:

    Update to java 8, instructions in webpage of JAVA
    Change the like, above explained
    Change the line
    default_options.... for this
    default_options="-J-Xms32m -J-Xmx256m --laf javax.swing.plaf.metal.MetalLookAndFeel"

    Run Maltego

    ReplyDelete
  11. it was the only thing to work
    i literally tried everything else all day and then just like that it was awesome thank you

    ReplyDelete