本文整理汇总了Python中burp.ITab方法的典型用法代码示例。如果您正苦于以下问题:Python burp.ITab方法的具体用法?Python burp.ITab怎么用?Python burp.ITab使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类burp
的用法示例。
在下文中一共展示了burp.ITab方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: applyConfig
# 需要导入模块: import burp [as 别名]
# 或者: from burp import ITab [as 别名]
def applyConfig(self):
try:
print("Connecting to '%s', index '%s'" % (self.confESHost, self.confESIndex))
self.es = connections.create_connection(hosts=[self.confESHost])
self.idx = Index(self.confESIndex)
self.idx.doc_type(DocHTTPRequestResponse)
if self.idx.exists():
self.idx.open()
else:
self.idx.create()
self.callbacks.saveExtensionSetting("elasticburp.host", self.confESHost)
self.callbacks.saveExtensionSetting("elasticburp.index", self.confESIndex)
self.callbacks.saveExtensionSetting("elasticburp.tools", str(self.confBurpTools))
self.callbacks.saveExtensionSetting("elasticburp.onlyresp", str(int(self.confBurpOnlyResp)))
except Exception as e:
JOptionPane.showMessageDialog(self.panel, "<html><p style='width: 300px'>Error while initializing ElasticSearch: %s</p></html>" % (str(e)), "Error", JOptionPane.ERROR_MESSAGE)
### ITab ###
示例2: registerExtenderCallbacks
# 需要导入模块: import burp [as 别名]
# 或者: from burp import ITab [as 别名]
def registerExtenderCallbacks(self, callbacks):
self._callbacks = callbacks
self._helpers = callbacks.getHelpers()
self._callbacks.setExtensionName('TomcatBrute')
self._tomcatForceLogin()
self._initTab(callbacks)
# Override ITab Method
示例3: addSigningKeyFromCmdTextField
# 需要导入模块: import burp [as 别名]
# 或者: from burp import ITab [as 别名]
def addSigningKeyFromCmdTextField(self):
c = GridBagConstraints()
c.gridx = 1
c.gridy = 6
self._configurationPanel.add(self._fromCmdTextField, c)
#-----------------------
# End Helpers
#-----------------------
#-----------------------
# Implement ITab
#-----------------------
示例4: getTabCaption
# 需要导入模块: import burp [as 别名]
# 或者: from burp import ITab [as 别名]
def getTabCaption(self):
"""
Override ITab method
:return: tab name
"""
return "InQL Scanner"
示例5: getUiComponent
# 需要导入模块: import burp [as 别名]
# 或者: from burp import ITab [as 别名]
def getUiComponent(self):
"""
Override ITab method
:return: Tab UI Component
"""
overrideheaders = {}
repeater_omnimenu = OmniMenuItem(callbacks=self._callbacks, helpers=self._helpers, text="Send to Repeater")
graphiql_omnimenu = OmniMenuItem(callbacks=self._callbacks, helpers=self._helpers, text="Send to GraphiQL")
http_mutator = EnhancedHTTPMutator(
callbacks=self._callbacks, helpers=self._helpers, overrideheaders=overrideheaders)
repeater_sender = RepeaterSenderAction(omnimenu=repeater_omnimenu, http_mutator=http_mutator)
graphiql_sender = GraphiQLSenderAction(omnimenu=graphiql_omnimenu, http_mutator=http_mutator)
custom_header_setter = CustomHeaderSetterAction(overrideheaders=overrideheaders, text="Set Custom Header")
try:
restore = self._callbacks.loadExtensionSetting(GraphQLPanel.__name__)
except Exception as ex:
print("Cannot restore state! %s" % ex)
restore = None
proxy = None
for request_listener in json.loads(self._callbacks.saveConfigAsJson())["proxy"]["request_listeners"]:
if request_listener["running"]:
proxy = "localhost:%s" % request_listener["listener_port"]
break
self.panel = GraphQLPanel(
actions=[
repeater_sender,
graphiql_sender,
custom_header_setter],
restore=restore,
proxy=proxy,
http_mutator=http_mutator,
texteditor_factory=self._callbacks.createTextEditor
)
self._callbacks.customizeUiComponent(self.panel.this)
return self.panel.this