Burp community forum

failed to coerce [Lburp.IHttpRequestResponse; to burp.IHttpRequestResponse

HAHWUL | Last updated: Aug 01, 2018 06:24AM UTC

Hi everyone. I writing burp extender code using Jruby. and... come in error :( Plz help me... [ Error ] failed to coerce [Lburp.IHttpRequestResponse; to burp.IHttpRequestResponse [ Code line ] def createMenuItems(invocation) .... requestResponse = invocation.getSelectedMessages .... Blahblah~~ @callbacks.saveBuffersToTempFiles(requestResponse) # I think, error in this line end [ Question ] - invocation on createMenuItems(IContextMenu) is Java Object? - How to casting Java object to Ruby object? - Um.. Just save me.

Burp User | Last updated: Aug 01, 2018 08:35AM UTC

Sorry.. I fixed it. requestResponse = invocation.getSelectedMessages => requestResponse = invocation.getSelectedMessages requestResponse.each do | m | blahblah~~~ end

You need to Log in to post a reply. Or register here, for free.