Burp Suite User Forum

Create new post

Python Extension don't load in Burp on Fedora

jcubic | Last updated: Dec 21, 2017 08:33AM UTC

I've create test python extension: <pre> from burp import IBurpExtender class BurpExtender(IBurpExtender): def registerExtenderCallbacks(self, callbacks): # your extension code here return </pre> <pre> java.lang.NoClassDefFoundError: com/google/common/collect/MapMaker </pre> I've installed jython using Fedora installer and put path to jython.jar in options but I didn't use path to load modules. Is python require something else (google modules) to be installed?

PortSwigger Agent | Last updated: Dec 21, 2017 10:20AM UTC

You need to use the Jython standalone jar which includes all the dependencies in a single jar. The error shows you've used the Jython jar that does not include dependencies.

Burp User | Last updated: Dec 22, 2017 09:36AM UTC

I've found this old bug report https://bugzilla.redhat.com/show_bug.cgi?id=1178546 I've try to run burp using provided fix: java -cp $(build-classpath jython/jython guava jnr-constants jnr-ffi jnr-netdb jnr-posix jffi libreadline-java/libreadline-java jline1/jline-1 antlr32/antlr-runtime objectweb-asm/asm objectweb-asm/asm-commons objectweb-asm/asm-util commons-compress icu4j netty/netty-buffer netty/netty-codec netty/netty-common netty/netty-handler netty/netty-transport):. -Dpython.home=/usr/share/jython -jar burpsuite_community_v1.7.30.jar but it didn't help and I can't put class path because options accept single folder.

PortSwigger Agent | Last updated: Dec 22, 2017 09:38AM UTC

Did you try using the Jython standalone jar? It should be approximately 37mb in size. If yours is much smaller, you are using the wrong jar. If you're still having difficulty, please reply with a screenshot of the Extender > Options screen.

Burp User | Last updated: Dec 22, 2017 09:46AM UTC

Thanks it work

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.