View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002466 | Kali Linux | Kali Package Bug | public | 2015-08-02 18:10 | 2016-02-21 13:16 |
Reporter | g0tmi1k | Assigned To | rhertzog | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | resolved | Resolution | fixed | ||
Fixed in Version | 2.0 | ||||
Summary | 0002466: burpsuite - Java file in $PATH | ||||
Description | When trying to start burp proxy via command line, it will fail due it being a java file. Need to call it differently. Example:root@kali:~# whereis burpsuite | ||||
Additional Information | If we look at backdoor-factory, it calls the program differently root@kali:/usr/bin# cat /usr/bin/backdoor-factory /usr/share/backdoor-factory/backdoor.py "$@" Solution for BurpSuitewe could make a bash script for /usr/bin/burpsuite (see below), and rename the current burp java file somewhere different.... #!/bin/bash /usr/bin/java -Xmx2g -jar /path/to/burp.jar | ||||
Attached Files | |||||
Unable to replicate with sana amd64. root@kali:~# uname -a ---burp launches and works then exit--- Deleting temporary files - please wait ... done. |
|
I add something similar once. It seems to be a bug in the way jarwrapper registers itself... either it misregisters himself or something else registers badly the entry for jarwrapper. I managed to fix it once on my computer but was assuming that it was not reproducible. It looks like I'm wrong. Please give the output of the following commands on the problematic systems: Does it work when you call /usr/bin/jexec /usr/bin/burpsuite or /usr/bin/jarwrapper /usr/bin/burpsuite ? Feel free to implement a work around in the mean time. But it's definitely a bug at the binfmt-support and the way jar files are registered in this system... |
|
Note that there's a single bug open on the Debian side on jarwrapper: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=779895 But I don't think it's relevant. Though it drove in towards the usage of update-binftm and I managed to fix it on my computer once at least... |
|
The mystery deepens. On the affected systems, the jar and jarwrapper binfmts aren't even there: root@kali:~# cat /var/lib/binfmts/jarwrapper The output on a properly functioning system: root@kali:~# cat /var/lib/binfmts/jarwrapper /usr/bin/jarwrapper root@kali:~# cat /var/lib/binfmts/jar /usr/bin/jexec root@kali:~# ls -al /usr/bin/jexec /usr/bin/jarwrapper Both systems have kali-linux-full installed on them and are amd4. On the affected system, burpsuite launches with both '/usr/bin/jexec /usr/bin/burpsuite' and '/usr/bin/jarwrapper /usr/bin/burpsuite' |
|
Ah, that's interesting. Were all the VM installed the same way directly into sana? Or were some upgraded from moto to sana? Given your description, I guess that "apt-get --reinstall install jarwrapper" would fix the issue? Was burpsuite/jarwrapper installed in the live image that was used to install the VM? |
|
All 3 of the VMs I'm testing were built with live build using variants light, mate, and then the regular gnome without specifying a variant. The mate and gnome desktops have burpsuite by default since it's in kali-linux-full but with light, after installation, i installed the kali-linux-full metapackage to get the standard set of tools. When the ISO is booted in live mode, burpsuite still present the same error when it's launched from the command line. |
|
So what's the canonical way to reproduce this problem? Do we have a test ISO where we have the problem in the live image? Or does it manifest only after initial installation? If we have a test image that fails, it would be nice to have the associated build log to see if any error appears when binfmt-support and/or jarwrapper is installed... |
|
I have the same issue in the live image and after installation. I will build a new ISO and update this bug report with the logs. |
|
I generated a new ISO today and have attached the build log. The issue is still present in both live and installed modes. The lines of interest related to jarwrapper: Setting up jarwrapper (0.48) ... |
|
This is known on the Debian side as https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=750245 I have pushed a fixed binfmt-support (2.1.5-1+kali1) as well as an improved jarwrapper (0.52+kali1) in kali-dev and sana. moto is probably also affected. You can avoid the problem by disabling binfmt-support before each ISO build: echo -1 > /proc/sys/fs/binfmt_misc/status |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2015-08-02 18:10 | g0tmi1k | New Issue | |
2015-08-02 18:12 | g0tmi1k | Additional Information Updated | |
2015-08-03 04:31 | dookie | Note Added: 0003648 | |
2015-08-04 19:16 | rhertzog | Note Added: 0003656 | |
2015-08-04 19:19 | rhertzog | Note Added: 0003657 | |
2015-08-04 21:57 | dookie | Note Added: 0003658 | |
2015-08-05 19:23 | rhertzog | Note Added: 0003661 | |
2015-08-05 23:18 | dookie | Note Added: 0003662 | |
2015-08-09 13:05 | rhertzog | Note Added: 0003664 | |
2015-08-09 13:23 | dookie | Note Added: 0003665 | |
2015-08-09 14:07 | rhertzog | Assigned To | => rhertzog |
2015-08-09 14:07 | rhertzog | Status | new => assigned |
2015-08-09 14:31 | dookie | File Added: kali-linux-sana-amd64.log | |
2015-08-09 14:32 | dookie | Note Added: 0003666 | |
2015-08-09 22:06 | rhertzog | Note Added: 0003670 | |
2015-08-09 22:06 | rhertzog | Status | assigned => resolved |
2015-08-09 22:06 | rhertzog | Fixed in Version | => 2.0 |
2015-08-09 22:06 | rhertzog | Resolution | open => fixed |
2016-02-21 13:16 | rhertzog | View Status | private => public |