Skip to content

Automating scans with Burp Suite Professional's REST API

Notifications You must be signed in to change notification settings

iosecurityio/burpomator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

burpomator

A small python wrapper to get started with automating BURP Professional scans via REST API.

Usage

The BURP documentation can be found here.

  1. Create and activate Python virtual environment

    python3 -m venv venv
    source ./venv/bin/activate
  2. Install python packages

    pip install -r requirements.txt
  3. Enable the REST API and create an API key in BURP

    Burpomator API Key

  4. Put the API key in your .env file (or use the .env.example file)

    echo API_KEY="<api_key>" > .env
  5. Set your scan target or configure appropriate scan settings in burpomator.py

  6. Run burpomator

    python3 burpomator.py

Scan Configuration

A full scan configuration can be defined as follows:

{
  "urls": [
    "<string>",
    "<string>"
  ],
  "name": "<string>",
  "scope": {
    "include": [
      {
        "rule": "<string>"
      },
      {
        "rule": "<string>"
      }
    ],
    "exclude": [
      {
        "rule": "<string>"
      },
      {
        "rule": "<string>"
      }
    ]
  },
  "application_logins": [
    {
      "username": "<string>",
      "password": "<string>"
    },
    {
      "username": "<string>",
      "password": "<string>"
    }
  ],
  "scan_configurations": [
    {
      "name": "<string>"
    },
    {
      "name": "<string>"
    }
  ],
  "resource_pool": "<string>",
  "scan_callback": {
    "url": "<string>"
  },
  "protocol_option": "httpAndHttps"
}

Swagger

You can check out the API specs at:

http://127.0.0.1:1337/<api_key>

BURP REST API

Also check out the swagger.json in specs/burp_openapi.json for the OpenAPI Specification file.

About

Automating scans with Burp Suite Professional's REST API

Topics

Resources

Stars

Watchers

Forks

Languages