Ask Your Question
2

Burpsuite java execution error

asked 2018-09-29 07:43:22 -0500

GobbleFly gravatar image

Hello, i'm a beginner hacker and i am trying to hack a website (it is my own website) with burpsuite. I've already downloaded java openjdk and burpsuite. I've then made it an executable file. But when i tried to run it i got this error:

Unpacking JRE ...
Starting Installer ...
No protocol specified
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
    at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:126)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at java.awt.Toolkit$2.run(Toolkit.java:860)
    at java.awt.Toolkit$2.run(Toolkit.java:855)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:854)
    at sun.swing.SwingUtilities2.getSystemMnemonicKeyMask(SwingUtilities2.java:2020)
    at javax.swing.plaf.basic.BasicLookAndFeel.initComponentDefaults(BasicLookAndFeel.java:1158)
    at javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:431)
    at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:148)
    at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1577)
    at javax.swing.UIManager.setLookAndFeel(UIManager.java:539)
    at javax.swing.UIManager.setLookAndFeel(UIManager.java:579)
    at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1349)
    at javax.swing.UIManager.initialize(UIManager.java:1459)
    at javax.swing.UIManager.maybeInitialize(UIManager.java:1426)
    at javax.swing.UIManager.getUI(UIManager.java:1006)
    at javax.swing.JPanel.updateUI(JPanel.java:126)
    at javax.swing.JPanel.<init>(JPanel.java:86)
    at javax.swing.JPanel.<init>(JPanel.java:109)
    at javax.swing.JPanel.<init>(JPanel.java:117)
    at com.install4j.runtime.installer.frontend.FormPanel.<init>(FormPanel.java:50)
    at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:67)
    at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(ConsoleScreenExecutor.java:24)
    at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(InstallerConsoleScreenExecutor.java:6)
    at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:92)
    at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:58)
    at com.install4j.runtime.installer.Installer.main(Installer.java:46)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:65)
    at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:57)
An error occurred:
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
Error log: /tmp/install4jError4963039095856436135.log
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
    at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:126)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at java.awt.Toolkit$2.run(Toolkit.java ...
(more)
edit retag flag offensive close merge delete

Comments

When i executed the file, I got this error:

./burpinstaller.sh: line 1: $'PK\003\004': command not found
./burpinstaller.sh: line 2: $'\b\b\3619\376L\002': command not found
./burpinstaller.sh: line 3: syntax error near unexpected token `)'
./burpinstaller.sh: line 3:9LO"ZMMETA-INF/MANIFEST.MFm

There was some other text here but it was encrypted, I couldnt paste it here because the text was forbidden

GobbleFly gravatar imageGobbleFly ( 2018-09-30 10:01:21 -0500 )edit

From your comment, it looks like the installer script is broken. Please report that bug to upstream so they can fix it.

genodeftest gravatar imagegenodeftest ( 2018-09-30 10:50:14 -0500 )edit

Thank you veryu much it worked!! XD

GobbleFly gravatar imageGobbleFly ( 2018-09-30 13:13:11 -0500 )edit

Could you please convert it to an answer?

GobbleFly gravatar imageGobbleFly ( 2018-10-01 03:41:53 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
1

answered 2018-09-30 13:16:01 -0500

GobbleFly gravatar image

It worked but how can i mark this question as answerred, since the answer came from the comments. :>

edit flag offensive delete link more

Comments

1

By asking the author of the helpful comment to convert it into an answer, so you can accept it.

villykruse gravatar imagevillykruse ( 2018-09-30 13:24:23 -0500 )edit
-1

answered 2018-09-30 10:55:54 -0500

genodeftest gravatar image

I guess you are running the installer with sudo in a default (wayland) graphical session. For security+safety reasons, wayland does not allow its client windows (including XWayland windows) to be run as root. It looks to me like this installer is running pretty dangerous code: Why would you want to run a Java GUI application as root?

Florian's answer on a more general question provides two possible workaround, the other answers provide more info on that issue.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-09-29 07:43:22 -0500

Seen: 188 times

Last updated: Sep 30 '18