albinowax/ActiveScanPlusPlus

ImportError: No module named pickle

ethicalhack3r opened this issue · 4 comments

Mac OS X
Burp Pro 1.6.05
ActiveScan++ version 1.0.8
Python 2.7.8
Java 1.7.0_67
Jython 2.7-b2

From Burp's Extensions log:

Traceback (most recent call last):
  File "/Users/ryan/Tools/Burp Pro/bapps/3123d5b5f25c4128894d97ea1acc4976/activeScan++.py", line 16, in <module>
    import pickle
ImportError: No module named pickle

    at org.python.core.Py.ImportError(Py.java:300)
    at org.python.core.imp.import_first(imp.java:774)
    at org.python.core.imp.import_module_level(imp.java:866)
    at org.python.core.imp.importName(imp.java:946)
    at org.python.core.ImportFunction.__call__(__builtin__.java:1300)
    at org.python.core.PyObject.__call__(PyObject.java:373)
    at org.python.core.__builtin__.__import__(__builtin__.java:1253)
    at org.python.core.imp.importOne(imp.java:965)
    at org.python.pycode._pyx1.f$0(/Users/ryan/Tools/Burp Pro/bapps/3123d5b5f25c4128894d97ea1acc4976/activeScan++.py:498)
    at org.python.pycode._pyx1.call_function(/Users/ryan/Tools/Burp Pro/bapps/3123d5b5f25c4128894d97ea1acc4976/activeScan++.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:1312)
    at org.python.core.__builtin__.execfile_flags(__builtin__.java:520)
    at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:225)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at burp.r8c.<init>(Unknown Source)
    at burp.ri.a(Unknown Source)
    at burp.whd.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:745)

This looks like the kind of error inexplicably triggered by the Jython 2.7 beta. Could you try Jython 2.5.3 from http://www.jython.org/downloads.html and see if that fixes it?

Downloaded Jython 2.5.3 standalone (jython-standalone-2.5.3.jar) and all works now! Thanks!

Not sure if it is worth adding to the README incase others come across the same issue.

I can see it is already mentioned in the README, maybe suggest this version of Jython?

Will do. Unfortunately some other BApps require Jython 2.7, so I'll see if I can make it give a more helpful error message too.