当前位置: 首页>>代码示例>>Python>>正文


Python burp.ITab方法代码示例

本文整理汇总了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 ### 
开发者ID:thomaspatzke,项目名称:WASE,代码行数:20,代码来源:ElasticBurp.py

示例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 
开发者ID:WallbreakerTeam,项目名称:TomcatBrute,代码行数:12,代码来源:TomcatBrute.py

示例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
    #----------------------- 
开发者ID:pinnace,项目名称:burp-jwt-fuzzhelper-extension,代码行数:14,代码来源:burp-jwt-fuzzhelper.py

示例4: getTabCaption

# 需要导入模块: import burp [as 别名]
# 或者: from burp import ITab [as 别名]
def getTabCaption(self):
        """
        Override ITab method
        :return: tab name
        """
        return "InQL Scanner" 
开发者ID:doyensec,项目名称:inql,代码行数:8,代码来源:tab.py

示例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 
开发者ID:doyensec,项目名称:inql,代码行数:40,代码来源:tab.py


注:本文中的burp.ITab方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。