Skip to main content

A small library for working with the Burp Suite API

Project description

Burp Suite Professional & Enterprise API client (Unofficial)

A small Python library for working with the Burp Suite API.

Note - Requires Burp Suite Professional or Enterprise - https://portswigger.net/

Example usage:

import burpsuite
import os

# This example uses the DVWA web application running on localhost as the target app to scan.
# https://hub.docker.com/r/vulnerables/web-dvwa/

# It's recommended to use an API key when working with the Burp Suite API. It can be set in the 'User Options' menu

SERVER_URL = os.getenv("BURP_SERVER_URL", None)
API_KEY = os.getenv("BURP_API_KEY", None)

burp_api_client = burpsuite.BurpSuiteApi(server_url=SERVER_URL, api_key=API_KEY)

# Each scan request requires a scan options object. You can learn more about these options via the Burp Suite REST API
# documentation along with the values required
options = {
    "urls": ["http://localhost/login.php"],
    "application_logins": [{"username": "admin", "password": "example"}],
    "scan_callback": {"url": "https://mycallback.com/callbacks/burp/c540ce68-eb7f-469b-914e-b21a903bc152"}
}

# Initiate a scan
task_id = burp_api_client.initiate_scan(options=options)
print("Burp Suite scan initiated! task_id: {}".format(task_id))

# Get the scan progress of a task
progress = burp_api_client.get_scan(task_id=task_id)
print(progress)

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

burpsuite-0.0.2.tar.gz (51.3 kB view details)

Uploaded Source

File details

Details for the file burpsuite-0.0.2.tar.gz.

File metadata

  • Download URL: burpsuite-0.0.2.tar.gz
  • Upload date:
  • Size: 51.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for burpsuite-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8daaa8ae9caee0bb9b6895b8d5beeea30457f3d126f37425eeccf37fdd055f97
MD5 784fdaecb6dd42a64d9ddb29066225b3
BLAKE2b-256 3c32023f310eab42d566c49f159de833e349ee41e362b400be2a6a9fe6d08354

See more details on using hashes here.

Supported by

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