Skip to main content

Burp interface with typing hints

Project description

Installation

pip install burp

Usage

Now you should be able to import burp and receive typing hints!

# Burp need to load each class explicitly
from burp import IBurpExtender, IScannerCheck

# This allow us to get typing hints for all burp classes in our IDE
from burp import *

class BurpExtender(IBurpExtender, IScannerCheck):
    def registerExtenderCallbacks(self, callbacks):  # type: (IBurpExtenderCallbacks) -> ()
        print "Loading plugin"
        callbacks.registerScannerCheck(self)

    def doPassiveScan(self, baseRequestResponse):  # type: (IHttpRequestResponse) -> List[IScanIssue]
        return []

    def doActiveScan(self, baseRequestResponse, insertionPoint):  # type: (IHttpRequestResponse, IScannerInsertionPoint) -> List[IScanIssue]
        return []

Documentation

This is a python implementation of https://portswigger.net/burp/extender/api/

The purpose of this module is to provide typing hints to your IDE.

Known Issues

  • Multiple signatures not supported in Python

python do not support multiple signatures. In many cases typing hints support multiple signatures. When this is not the case, the methods will have an extra optional parameter called hey_check_docs to remind you that there are multiple signatures for the given method.

  • No typing hints for java types - #TODO#

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

burp-1.0.tar.gz (22.0 kB view details)

Uploaded Source

File details

Details for the file burp-1.0.tar.gz.

File metadata

  • Download URL: burp-1.0.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/2.7.18

File hashes

Hashes for burp-1.0.tar.gz
Algorithm Hash digest
SHA256 ab153456095d940d9fddc32fcfc8d50b97a4bd362c928b0ac0862ea53c14089b
MD5 bc664950c89714e7182c4869f25d9e4c
BLAKE2b-256 d2f7065a12f42b4116e4068d4e8abf49d8f7d6302049985f5d9badfb244d78c4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page