N
N
nuclear_skillet210112016-01-08 07:28:54
Java
nuclear_skillet21011, 2016-01-08 07:28:54

armitage not starting in kali after java update?

After updating armitage to the latest version available:

13 Aug 15 (tested against msf git revision: 55ef5dd484)

he demanded to update java to at least 1.7, updated (to 1.8) from a third-party repository:
deb ppa.launchpad.net/webupd8team/java/ubuntu precise main
deb-src ppa.launchpad.net/webupd8team/java/ubuntu precise main

and in the process, something went wrong with cross-references , judging by the output of the system, this is the answer given to calls to aritage :
[email protected]:~# sudo armitage
/usr/bin/java: 1: /usr/bin/java: : not found
/usr/bin/java: 1: /usr/bin/java: : not found
@@@@@@@@@@@ | @@[email protected]@387Qtd/lib64/ld-linux-x86-64.so.2GNU	GNUt)N;rZ?h: Directory nonexistent
/usr/bin/java: 1: /usr/bin/java: ELF: not found
/usr/bin/java: 1: /usr/bin/java: : not found
/usr/bin/java: 3: /usr/bin/java: : not found
/usr/bin/java: 1: /usr/bin/java: Syntax error: end of file unexpected (expecting ")")

When called : ~# java version
Answer : bash: /usr/bin/java: cannot execute binary file
Before that I tried to install java as shown here:
https://forums.kali.org/showthread.php?41-Installi...

In particular, it says about update-alternatives :
3.This step registers the downloaded version of Java as an alternative, and switches it to be used as the default:
update-alternatives --install /usr/bin/java java /opt/jdk1.7.0_17/bin/java 1
update -alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_17/bin/javac 1
update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /opt/ jdk1.7.0_17/jre/lib/amd64/libnpjp2.so 1
update-alternatives --set java /opt/jdk1.7.0_17/bin/java
update-alternatives --set javac /opt/jdk1.7.0_17/bin/ javac
update-alternatives --set mozilla-javaplugin.so /opt/jdk1.7.0_17/jre/lib/amd64/libnpjp2.so

By the way, when you run armitage from metasploit, everything works (msf v4.11.5-2016010401), that is, the GUI appears, but it does not respond to adding a host, I enter the host in the add host window and nothing happens.
I checked with the msf > hosts command, its output is:

Hosts
=====
address mac name os_name os_flavor os_sp purpose info comments
------- --- ---- ------- --------- ----- ------- ---- --------

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Malyarov, 2016-01-08
@Konstantin18ko

/usr/bin/java: 1: /usr/bin/java: Syntax error: end of file unexpected (expecting ")")
If you use Google translator (so, purely for quick wits), you can understand the reason.
Syntax error. Somewhere a parenthesis is missing, or it is superfluous somewhere.
If you have experience with java, then open jar archives using intellij idea and look for where it is underlined in red, fix the bug, and build the program again.
If you do not understand any of the above, then simply roll back to the version that will work in your kali.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question