GithubHelp home page GithubHelp logo

getMenuShortcutKeyMaskEx bug about autorize HOT 7 OPEN

komomon avatar komomon commented on June 21, 2024
getMenuShortcutKeyMaskEx bug

from autorize.

Comments (7)

terminalJunki3 avatar terminalJunki3 commented on June 21, 2024 1

@komomon can you provide some additional context around when this bug occurs and the steps to reproduce it. I can look into a fix.

from autorize.

timeleaper1999 avatar timeleaper1999 commented on June 21, 2024

@terminalJunki3
Traceback (most recent call last):
File "C:\Users\xxx\AppData\Roaming\BurpSuite\bapps\f9bbac8c4acf4aefa4d7dc92a991af2f\Autorize.py", line 23, in registerExtenderCallbacks
initiator.draw_all()
File "C:\Users\xxx\AppData\Roaming\BurpSuite\bapps\f9bbac8c4acf4aefa4d7dc92a991af2f\helpers\initiator.py", line 58, in draw_all
tabs.draw()
File "C:\Users\xxx\AppData\Roaming\BurpSuite\bapps\f9bbac8c4acf4aefa4d7dc92a991af2f\gui\tabs.py", line 89, in draw
controlR = KeyStroke.getKeyStroke(KeyEvent.VK_R, Toolkit.getDefaultToolkit().getMenuShortcutKeyMaskEx())
AttributeError: 'sun.awt.windows.WToolkit' object has no attribute 'getMenuShortcutKeyMaskEx'

at org.python.core.Py.AttributeError(Py.java:176)
at org.python.core.PyObject.noAttributeError(PyObject.java:965)
at org.python.core.PyObject.object___getattribute__(PyObject.java:3752)
at org.python.core.PyObject$object___getattribute___exposer.__call__(Unknown Source)
at org.python.core.Deriveds.__findattr_ex__(Deriveds.java:59)
at org.python.core.PyObjectDerived.__findattr_ex__(PyObjectDerived.java:1036)
at org.python.core.PyObject.__getattr__(PyObject.java:957)
at gui.tabs$py.draw$7(C:\Users\xxx\AppData\Roaming\BurpSuite\bapps\f9bbac8c4acf4aefa4d7dc92a991af2f\gui\tabs.py:170)
at gui.tabs$py.call_function(C:\Users\xxx\AppData\Roaming\BurpSuite\bapps\f9bbac8c4acf4aefa4d7dc92a991af2f\gui\tabs.py)
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyBaseCode.call(PyBaseCode.java:134)
at org.python.core.PyFunction.__call__(PyFunction.java:416)
at org.python.core.PyMethod.__call__(PyMethod.java:126)
at helpers.initiator$py.draw_all$4(C:\Users\xxx\AppData\Roaming\BurpSuite\bapps\f9bbac8c4acf4aefa4d7dc92a991af2f\helpers\initiator.py:58)
at helpers.initiator$py.call_function(C:\Users\xxx\AppData\Roaming\BurpSuite\bapps\f9bbac8c4acf4aefa4d7dc92a991af2f\helpers\initiator.py)
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyBaseCode.call(PyBaseCode.java:134)
at org.python.core.PyFunction.__call__(PyFunction.java:416)
at org.python.core.PyMethod.__call__(PyMethod.java:126)
at org.python.pycode._pyx4.registerExtenderCallbacks$2(C:\Users\xxx\AppData\Roaming\BurpSuite\bapps\f9bbac8c4acf4aefa4d7dc92a991af2f\Autorize.py:31)
at org.python.pycode._pyx4.call_function(C:\Users\xxx\AppData\Roaming\BurpSuite\bapps\f9bbac8c4acf4aefa4d7dc92a991af2f\Autorize.py)
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyBaseCode.call(PyBaseCode.java:306)
at org.python.core.PyBaseCode.call(PyBaseCode.java:197)
at org.python.core.PyFunction.__call__(PyFunction.java:485)
at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:237)
at org.python.core.PyMethod.__call__(PyMethod.java:228)
at org.python.core.PyMethod.__call__(PyMethod.java:218)
at org.python.core.PyMethod.__call__(PyMethod.java:213)
at org.python.core.PyObject._jcallexc(PyObject.java:3565)
at org.python.core.PyObject._jcall(PyObject.java:3598)
at org.python.proxies.__main__$BurpExtender$23.registerExtenderCallbacks(Unknown Source)
at burp.bw7.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

from autorize.

terminalJunki3 avatar terminalJunki3 commented on June 21, 2024

@komomon what version of JDK are you using. Also what version of jython? Can you try updating your versions to the latest. The error you provided occurs when the code tries to call the "getMenuShortcutKeyMaskEx" method on a "WToolkit" object but the object doesn't have that method.

This can happen for many reasons. Some I can think of...

1.) If the version of the Java Development Kit (JDK) being used by the code is different from the version that was used to compile the code.

2.) There is a problem with the installation of the JDK

3.) There is a conflict with other libraries that the code depends on.

In short I think it's your JDK or jython version. Please let me know.

from autorize.

timeleaper1999 avatar timeleaper1999 commented on June 21, 2024

@terminalJunki3 Thanks for answering.
My version of JDK is 1.8 and I can make sure this problem has nothing to do with version of jython because I've tried different versions including the latest one.So I think it's weird.

from autorize.

Quitten avatar Quitten commented on June 21, 2024

@timeleaper1999 - can you share more data regarding your OS?
As long as we cannot reproduce it, it is going to be hard to help

from autorize.

Quitten avatar Quitten commented on June 21, 2024

@timeleaper1999 - I didnt solved the issue, but I did handled it.
Pushed 127b996, can you please test if this helped?

I decided set CTRL as the default key for shortcuts in case of such exceptions happening (I assume that is related to the OS you are running on, let me know which is it)

from autorize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.