From d56c139190af9fc6a4fc382adbc59e8862af16ae Mon Sep 17 00:00:00 2001 From: Randy Gingeleski Date: Fri, 8 Jun 2018 14:34:50 -0400 Subject: [PATCH] #1 prints placeholder in request tab --- wcf_binary_soap.py | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/wcf_binary_soap.py b/wcf_binary_soap.py index 8ac84b2..e09dec9 100644 --- a/wcf_binary_soap.py +++ b/wcf_binary_soap.py @@ -16,8 +16,6 @@ # Java classes being imported using Python syntax (Jython magic) from burp import IBurpExtender -#from burp import ActionListener -from burp import IHttpListener from burp import IExtensionHelpers from burp import IMessageEditorTabFactory from burp import IMessageEditorTab @@ -25,12 +23,13 @@ from datetime import datetime class CustomDecoderTab(IMessageEditorTab): + def __init__(self, extender, controller, editable): self._extender = extender self._editable = editable self._controller = controller # create an instance of Burp's text editor to display decoded data - self._txtInput = extender.mCalbacks.createTextEditor() + self._txtInput = extender._callbacks.createTextEditor() self._txtInput.setEditable(editable) self._currentMessage = '' return @@ -89,24 +88,15 @@ def isModified(self): def getSelectedData(self): return self._txtInput.getSelectedText() -class BurpExtender(IBurpExtender, IHttpListener, IMessageEditorTabFactory): - def __init_(self): - pass +class BurpExtender(IBurpExtender, IMessageEditorTabFactory): def registerExtenderCallbacks(self, callbacks): self._callbacks = callbacks self._helpers = callbacks.getHelpers() callbacks.setExtensionName('WCF Binary Soap Inspector') - callbacks.registerHttpListener(self) callbacks.registerMessageEditorTabFactory(self) return # ** Message Editor Tab Factory method def createNewInstance(self, controller, editable): - tab = CustomDecoderTab(self, controller, editable) - return tab - - # ** HTTP Listener method - def processHttpMessage(self, toolFlag, messageIsRequest, currentRequest): - # TODO do we need this any more - return + return CustomDecoderTab(self, controller, editable)