carstein / burp-extensions Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/burp-extensions
Automatically exported from code.google.com/p/burp-extensions
Hi,
I am unable to load the extension in burp after following all the steps. I have
the jython.jar loaded as well but I get the following error message when I try
and load JSONdecoder.py file:
Traceback (most recent call last):
File "C:\..\..\JSONDecoder.py", line 6, in <module>
import json
ImportError: No module named json
at org.python.core.Py.ImportError(Py.java:304)
at org.python.core.imp.import_first(imp.java:755)
at org.python.core.imp.import_module_level(imp.java:837)
at org.python.core.imp.importName(imp.java:917)
at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
at org.python.core.PyObject.__call__(PyObject.java:357)
at org.python.core.__builtin__.__import__(__builtin__.java:1173)
at org.python.core.imp.importOne(imp.java:936)
at org.python.pycode._pyx1.f$0(C:\Users\nipgupta\Desktop\JSONDecoder.py:26)
at org.python.pycode._pyx1.call_function(C:\Users\nipgupta\Desktop\JSONDecoder.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1275)
at org.python.core.__builtin__.execfile_flags(__builtin__.java:522)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at burp.und.<init>(Unknown Source)
at burp.b1c.a(Unknown Source)
at burp.rsc.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Any ideas how I can *actually* start using the extension ?
What version of the product are you using? On what operating system?
Burp Pro 1.5.05 on Windows 7x64.
Original issue reported on code.google.com by [email protected]
on 26 Mar 2013 at 8:12
What steps will reproduce the problem?
1. put a request into the repeater
2. switch to JSON decoder tab
3. send the request
What is the expected output? What do you see instead?
An extra blank line appears above the JSON in the request window. For each
request sent a new blank line is added.
What version of the product are you using? On what operating system?
Latest from git with Burp 1.5.14 under linux
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 19 Jul 2013 at 2:17
hello good morning
i am using jython 2.7.1 and java jdk 8.
burp 1.7.36 community edition.When i installed json decoder it installed successfully but not loaded in burp .i noticed in the burp Extensions windows as it is showing unchecked.When i tried to make it check.it throwed this error.
java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer;
at org.python.core.io.BufferedReader.clear(BufferedReader.java:147)
at org.python.core.io.BufferedReader.(BufferedReader.java:27)
at org.python.core.PyFile.createBuffer(PyFile.java:227)
at org.python.core.PyFile.file___init__(PyFile.java:185)
at org.python.core.PyFile.file___init__(PyFile.java:178)
at org.python.core.PyFile.(PyFile.java:101)
at org.python.core.PySystemState.(PySystemState.java:237)
at org.python.core.PySystemState.doInitialize(PySystemState.java:1112)
at org.python.core.PySystemState.initialize(PySystemState.java:1023)
at org.python.core.PySystemState.initialize(PySystemState.java:979)
at org.python.core.PySystemState.initialize(PySystemState.java:974)
at org.python.core.PySystemState.initialize(PySystemState.java:969)
at org.python.core.PySystemState.initialize(PySystemState.java:965)
at org.python.core.ThreadStateMapping.getThreadState(ThreadStateMapping.java:56)
at org.python.core.Py.getThreadState(Py.java:1668)
at org.python.core.Py.getThreadState(Py.java:1664)
at org.python.core.Py.getSystemState(Py.java:1684)
at org.python.util.PythonInterpreter.(PythonInterpreter.java:105)
at org.python.util.PythonInterpreter.(PythonInterpreter.java:94)
at org.python.util.PythonInterpreter.(PythonInterpreter.java:71)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at burp.ohg.(Unknown Source)
at burp.spf.a(Unknown Source)
at burp.khc.a(Unknown Source)
at burp.khc.a(Unknown Source)
at burp.vkb.run(Unknown Source)
at java.lang.Thread.run(Thread.java:748)
how can sort out this issue.Thanks in Advance
Would it be possible to add the feature to the repeater tab? Working great in
proxy but would be more useful in the repeater.
Original issue reported on code.google.com by [email protected]
on 19 Jul 2013 at 9:02
Hi,
could you please enable JSONDecoderTab also for application/hal+json
Content-Type?
Thank you.
Original issue reported on code.google.com by [email protected]
on 19 May 2015 at 1:01
What steps will reproduce the problem?
1. Get a server to respond with a JSON array (i.e.
[{"key":"val"},{"key":"val"}])
2. View the extension logging (it shows an error)
What is the expected output? What do you see instead?
I expect the extension to properly parse and pretty print the array.
What version of the product are you using? On what operating system?
Latest (1.1)
Please provide any additional information below.
The problem is with the garbage removal code. It will remove anything
(including the '[') before the first '{'.
This issue can be resolved by changing some code in setMessage:
if msg[len(msg)-1:] == "]":
garbageChr = "["
else:
garbageChr = "{"
garbage = msg[:msg.find(garbageChr)]
clean = msg[msg.find(garbageChr):]
Also, the getMessage function should be changed:
if pre_data[len(pre_data)-1:] == "]":
garbageChr = "["
else:
garbageChr = "{"
garbage = pre_data[:pre_data.find(garbageChr)]
clean = pre_data[pre_data.find(garbageChr):]
I attached the new file. I'm not very good with Python but it all seems to be
working for me.
PS I also fixed an issue in the getMessage method where the extension tried to
do an array.find() which doesn't work. Fix:
def getMessage(self):
if self._txtInput.isTextModified():
try:
pre_data = self._txtInput.getText().tostring()
Original issue reported on code.google.com by [email protected]
on 22 Jul 2015 at 2:57
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.