Meatballs1 / burp_jsbeautifier

js-beautifier extension for Burp Suite
Other
30 stars 9 forks source link

Error when clicking automatic toggle button #3

Open hubert3 opened 11 years ago

hubert3 commented 11 years ago

$ Exception in thread "MainThread" Traceback (most recent call last): File "/Users/xxx/burp_jsbeautifier/js-beautifier.py", line 139, in toggleOnOff self._toogleButton.setPressed(self._replaceAll) AttributeError: 'BurpExtender' object has no attribute '_toogleButton' Exception in thread "MainThread" Traceback (most recent call last): File "/Users/xxx/burp_jsbeautifier/js-beautifier.py", line 139, in toggleOnOff self._toogleButton.setPressed(self._replaceAll) AttributeError: 'BurpExtender' object has no attribute '_toogleButton'

Burp v1.5.12, jython-standalone-2.7-b1.jar

Meatballs1 commented 11 years ago

Should be corrected now, thanks for the feedback :)

hubert3 commented 11 years ago

Thanks but now getting a different error...

$ Exception in thread "AWT-EventQueue-0" Traceback (most recent call last): File "/Users/xxx/burp_jsbeautifier/js-beautifier.py", line 139, in toggleOnOff self._toggleButton.setPressed(self._replaceAll) AttributeError: 'javax.swing.JToggleButton' object has no attribute 'setPressed'

$ java -version java version "1.6.0_45" Java(TM) SE Runtime Environment (build 1.6.0_45-b06-451-11M4406) Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01-451, mixed mode)

Running on OSX.

Not actually sure what this button is supposed to do, I guess it does the beautifying automatically as soon as a response comes in and not just when you go to the tab?

Meatballs1 commented 11 years ago

That's the idea - so any browser plugins like firebug will see it in a neater fashion. But it causes significant slowdown if you have large js files coming in!

Hopefully fixed the issue with 28fb29e685dd034913899c83af3cea16ea4b56d8 I guess its down to a different JRE or Jython.

hubert3 commented 11 years ago

Toggle button now works without errors, thanks. Useful option, though it wasn't totally obvious that that's what it does. 'Beautify JS in burp proxy output' would be one way to explain it.