本文整理汇总了Python中burp.IMessageEditorTabFactory方法的典型用法代码示例。如果您正苦于以下问题:Python burp.IMessageEditorTabFactory方法的具体用法?Python burp.IMessageEditorTabFactory怎么用?Python burp.IMessageEditorTabFactory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类burp
的用法示例。
在下文中一共展示了burp.IMessageEditorTabFactory方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1:
# 需要导入模块: import burp [as 别名]
# 或者: from burp import IMessageEditorTabFactory [as 别名]
def registerExtenderCallbacks(self, callbacks):
# keep a reference to our callbacks object
self._callbacks = callbacks
# obtain an extension helpers object
self._helpers = callbacks.getHelpers()
sys.stdout = callbacks.getStdout() # ADDED LINE
# set our extension name
callbacks.setExtensionName("Serialized input editor")
# register ourselves as a message editor tab factory
callbacks.registerMessageEditorTabFactory(self)
return
#
# implement IMessageEditorTabFactory
#
示例2: registerExtenderCallbacks
# 需要导入模块: import burp [as 别名]
# 或者: from burp import IMessageEditorTabFactory [as 别名]
def registerExtenderCallbacks(self, callbacks):
# keep a reference to our callbacks object
self._callbacks = callbacks
self._helpers = callbacks.getHelpers()
callbacks.setExtensionName("Caidao Crypto(AES)")
# register ourselves as a message editor tab factory
callbacks.registerMessageEditorTabFactory(self)
# add http listener
callbacks.registerHttpListener(self)
# Parsia: for burp-exceptions
sys.stdout = callbacks.getStdout()
print("Caidao Crypto(AES) is ready")
#
# implement IMessageEditorTabFactory
#