Comments (7)
@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.
@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.
@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.
@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.
@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.
@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)
- Default filter HOT 1
- Exception “0d 0a” HOT 3
- Headers are case-sensitive HOT 1
- Interception Filter based on Burp's listener port HOT 2
- Add parameter to query or body without removing headers HOT 1
- Send request to repeater HOT 4
- Right Click not working(send to rep/comp ...) HOT 1
- Request for multiple tabs HOT 1
- Filter by header HOT 1
- Encoding error when enable autorize HOT 3
- "Retest all requests" fails when table not sorted by ID ascending HOT 6
- Extraneous newline added when no temporary headers specified HOT 5
- Interception filter on HTTP headers HOT 1
- Autorize use
- Autorize use
- OWASP ZAP – Access Control Testing
- [feature request] ^R --> to repeater HOT 11
- Bug on "send_request_to_autorize" function HOT 1
- [Feature] Match Response Header in Interception Filters HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autorize.