Skip to content

Commit

Permalink
#1 prints placeholder in request tab
Browse files Browse the repository at this point in the history
  • Loading branch information
gingeleski committed Jun 8, 2018
1 parent 1cc3fde commit d56c139
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions wcf_binary_soap.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,20 @@

# 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

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
Expand Down Expand Up @@ -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)

0 comments on commit d56c139

Please sign in to comment.