pathetiq / BurpSmartBuster

A Burp Suite content discovery plugin that add the smart into the Buster!
MIT License
382 stars 68 forks source link

Load Error : SyntaxError: ("mismatched input 'as' expecting COLON", ('/opt/BurpSmartBuster/BurpSmartBuster.py', 355, 29, #8

Closed SatoshiNakamoto-zz closed 7 years ago

SatoshiNakamoto-zz commented 8 years ago

Burp Free 1.7.03 Jython 2.5.3 (, Jun 20 2016, 07:22:31) [OpenJDK Server VM (Oracle Corporation)] on java1.7.0_91

Error via load:

SyntaxError: ("mismatched input 'as' expecting COLON", ('/opt/BurpSmartBuster/BurpSmartBuster.py', 355, 29, ' except Exception as e:\n'))

at org.python.core.ParserFacade.fixParseError(ParserFacade.java:92)
at org.python.core.ParserFacade.parse(ParserFacade.java:186)
at org.python.core.Py.compile_flags(Py.java:1709)
at org.python.core.__builtin__.execfile_flags(__builtin__.java:514)
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.nk.<init>(Unknown Source)
at burp.atc.a(Unknown Source)
at burp.n0f.run(Unknown Source)
at java.lang.Thread.run(Thread.java:745)
pathetiq commented 8 years ago

Hi,

Can you try with Jython 2.7 and let me know if that works? And also make sure to install all required modules like described on the wiki.

Thanks

SatoshiNakamoto-zz commented 8 years ago

Kali Linux root@kali:/opt/jython2.7/bin# ./jython Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11) [OpenJDK Server VM (Oracle Corporation)] on java1.7.0_91 Type "help", "copyright", "credits" or "license" for more information.

jython standalone with standalone py modules

sys.path.append("/opt/jython2.7/Lib/site-packages")

at org.python.core.PyObject.call(PyObject.java:431) at org.python.core.builtin.import(builtin.java:1232) at org.python.core.imp.importOne(imp.java:1081) at nltk.corpus.reader.panlex_lite$py.f$0(/opt/jython2.7/Lib/site-packages/nltk/corpus/reader/panlex_lite.py:120) at nltk.corpus.reader.panlex_lite$py.call_function(/opt/jython2.7/Lib/site-packages/nltk/corpus/reader/panlex_lite.py) at org.python.core.PyTableCode.call(PyTableCode.java:167) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.imp.createFromCode(imp.java:436) at org.python.core.imp.createFromPyClass(imp.java:236) at org.python.core.imp.createFromPyClass(imp.java:205) at org.python.core.imp.loadFromSource(imp.java:651) at org.python.core.imp.find_module(imp.java:543) at org.python.core.PyModule.impAttr(PyModule.java:106) at org.python.core.imp.import_next(imp.java:842) at org.python.core.imp.import_logic(imp.java:904) at org.python.core.imp.import_module_level(imp.java:978) at org.python.core.imp.importName(imp.java:1062) at org.python.core.ImportFunction.call(builtin.java:1280) at org.python.core.PyObject.call(PyObject.java:431) at org.python.core.builtin.import(builtin.java:1232) at org.python.core.imp.importAll(imp.java:1182) at nltk.corpus.reader$py.f$0(/opt/jython2.7/Lib/site-packages/nltk/corpus/reader/init.py:111) at nltk.corpus.reader$py.call_function(/opt/jython2.7/Lib/site-packages/nltk/corpus/reader/init.py) at org.python.core.PyTableCode.call(PyTableCode.java:167) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.imp.createFromCode(imp.java:436) at org.python.core.imp.createFromPyClass(imp.java:236) at org.python.core.imp.createFromPyClass(imp.java:205) at org.python.core.imp.loadFromSource(imp.java:651) at org.python.core.imp.find_module(imp.java:543) at org.python.core.PyModule.impAttr(PyModule.java:106) at org.python.core.imp.import_next(imp.java:842) at org.python.core.imp.import_logic(imp.java:904) at org.python.core.imp.import_module_level(imp.java:978) at org.python.core.imp.importName(imp.java:1062) at org.python.core.ImportFunction.call(builtin.java:1280) at org.python.core.PyObject.call(PyObject.java:431) at org.python.core.builtin.import(builtin.java:1232) at org.python.core.imp.importAll(imp.java:1182) at nltk.corpus$py.f$0(/opt/jython2.7/Lib/site-packages/nltk/corpus/init.py:315) at nltk.corpus$py.call_function(/opt/jython2.7/Lib/site-packages/nltk/corpus/init.py) at org.python.core.PyTableCode.call(PyTableCode.java:167) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.imp.createFromCode(imp.java:436) at org.python.core.imp.createFromPyClass(imp.java:236) at org.python.core.imp.createFromPyClass(imp.java:205) at org.python.core.imp.loadFromSource(imp.java:651) at org.python.core.imp.find_module(imp.java:543) at org.python.core.PyModule.impAttr(PyModule.java:106) at org.python.core.imp.import_next(imp.java:842) at org.python.core.imp.import_logic(imp.java:904) at org.python.core.imp.import_module_level(imp.java:978) at org.python.core.imp.importName(imp.java:1062) at org.python.core.ImportFunction.call(builtin.java:1280) at org.python.core.PyObject.call(PyObject.java:431) at org.python.core.builtin.import(builtin.java:1232) at org.python.core.imp.importFromAs(imp.java:1156) at org.python.core.imp.importFrom(imp.java:1132) at nltk.stem.snowball$py.f$0(/opt/jython2.7/Lib/site-packages/nltk/stem/snowball.py:3642) at nltk.stem.snowball$py.call_function(/opt/jython2.7/Lib/site-packages/nltk/stem/snowball.py) at org.python.core.PyTableCode.call(PyTableCode.java:167) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.imp.createFromCode(imp.java:436) at org.python.core.imp.createFromPyClass(imp.java:236) at org.python.core.imp.createFromPyClass(imp.java:205) at org.python.core.imp.loadFromSource(imp.java:651) at org.python.core.imp.find_module(imp.java:543) at org.python.core.PyModule.impAttr(PyModule.java:106) at org.python.core.imp.import_next(imp.java:842) at org.python.core.imp.import_logic(imp.java:904) at org.python.core.imp.import_module_level(imp.java:978) at org.python.core.imp.importName(imp.java:1062) at org.python.core.ImportFunction.call(builtin.java:1280) at org.python.core.PyObject.call(PyObject.java:431) at org.python.core.builtin.import(builtin.java:1232) at org.python.core.imp.importFromAs(imp.java:1156) at org.python.core.imp.importFrom(imp.java:1132) at nltk.stem$py.f$0(/opt/jython2.7/Lib/site-packages/nltk/stem/init.py:31) at nltk.stem$py.call_function(/opt/jython2.7/Lib/site-packages/nltk/stem/init.py) at org.python.core.PyTableCode.call(PyTableCode.java:167) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.imp.createFromCode(imp.java:436) at org.python.core.imp.createFromPyClass(imp.java:236) at org.python.core.imp.createFromPyClass(imp.java:205) at org.python.core.imp.loadFromSource(imp.java:651) at org.python.core.imp.find_module(imp.java:543) at org.python.core.PyModule.impAttr(PyModule.java:106) at org.python.core.imp.import_next(imp.java:842) at org.python.core.imp.import_logic(imp.java:904) at org.python.core.imp.import_module_level(imp.java:978) at org.python.core.imp.importName(imp.java:1062) at org.python.core.ImportFunction.call(builtin.java:1280) at org.python.core.PyObject.call(PyObject.java:431) at org.python.core.builtin.import(builtin.java:1232) at org.python.core.imp.importAll(imp.java:1182) at nltk$py.f$0(/opt/jython2.7/Lib/site-packages/nltk/init.py:184) at nltk$py.call_function(/opt/jython2.7/Lib/site-packages/nltk/init.py) at org.python.core.PyTableCode.call(PyTableCode.java:167) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.imp.createFromCode(imp.java:436) at org.python.core.imp.createFromPyClass(imp.java:236) at org.python.core.imp.createFromPyClass(imp.java:205) at org.python.core.imp.loadFromSource(imp.java:651) at org.python.core.imp.find_module(imp.java:543) at org.python.core.imp.import_next(imp.java:840) at org.python.core.imp.import_module_level(imp.java:959) at org.python.core.imp.importName(imp.java:1062) at org.python.core.ImportFunction.call(builtin.java:1280) at org.python.core.PyObject.call(PyObject.java:431) at org.python.core.builtin.import(builtin.java:1232) at org.python.core.imp.importOne(imp.java:1081) at textblob.blob$py.f$0(/tmp/pip_build_root/textblob/textblob/blob.py:690) at textblob.blob$py.call_function(/tmp/pip_build_root/textblob/textblob/blob.py) at org.python.core.PyTableCode.call(PyTableCode.java:167) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.imp.createFromCode(imp.java:436) at org.python.core.imp.createFromPyClass(imp.java:236) at org.python.core.imp.createFromPyClass(imp.java:205) at org.python.core.imp.loadFromSource(imp.java:651) at org.python.core.imp.find_module(imp.java:543) at org.python.core.PyModule.impAttr(PyModule.java:106) at org.python.core.imp.import_next(imp.java:842) at org.python.core.imp.import_module_level(imp.java:959) at org.python.core.imp.importName(imp.java:1062) at org.python.core.ImportFunction.call(builtin.java:1280) at org.python.core.PyObject.call(PyObject.java:431) at org.python.core.builtin.import(builtin.java:1232) at org.python.core.imp.importFromAs(imp.java:1156) at org.python.core.imp.importFrom(imp.java:1132) at textblob$py.f$0(/tmp/pip_build_root/textblob/textblob/init.py:11) at textblob$py.call_function(/tmp/pip_build_root/textblob/textblob/init.py) at org.python.core.PyTableCode.call(PyTableCode.java:167) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.imp.createFromCode(imp.java:436) at org.python.core.imp.createFromPyClass(imp.java:236) at org.python.core.imp.createFromPyClass(imp.java:205) at org.python.core.imp.loadFromSource(imp.java:651) at org.python.core.imp.find_module(imp.java:543) at org.python.core.imp.import_next(imp.java:840) at org.python.core.imp.import_module_level(imp.java:959) at org.python.core.imp.importName(imp.java:1062) at org.python.core.ImportFunction.call(builtin.java:1280) at org.python.core.PyObject.call(PyObject.java:431) at org.python.core.builtin.import(builtin.java:1232) at org.python.core.imp.importFromAs(imp.java:1156) at org.python.core.imp.importFrom(imp.java:1132) at org.python.pycode._pyx2.f$0(/opt/BurpSmartBuster/BurpSmartBuster.py:1570) at org.python.pycode._pyx2.call_function(/opt/BurpSmartBuster/BurpSmartBuster.py) at org.python.core.PyTableCode.call(PyTableCode.java:167) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.Py.runCode(Py.java:1386) at org.python.core.builtin.execfile_flags(builtin.java:535) at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:286) 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.nk.(Unknown Source) at burp.atc.a(Unknown Source) at burp.n0f.run(Unknown Source) at java.lang.Thread.run(Thread.java:745)

pathetiq commented 8 years ago

Not sure on that error, can you verify where the nltk and textblob modules are install and which version (really need textblob 0.11.1).

On my side on Kali I did use: sys.path.append("/usr/local/lib/python2.7/site-packages") after installing the module with the pip program under the jython bin directory.

Let me know the path of those 2 modules.

pathetiq commented 7 years ago

Closing issue as no update for a month.