當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。