No project description provided
Project description
Burpgraphql
This is a Python module for controlling / automating Burpsuite Enterprise via their GraphQL API.
Usage
python3 -m pip install BurpGraphQl
import BurpGraphQl
obj = BurpGraphQl("Burpsuite Enterprise GraphQL API Path", "API token")
print(obj.list_scans())
Methods
-
BurpGraphQl.run_query(str_query)
Run a GraphQL Query. All methods in this class are using this method to run queries. -
BurpGraphQl.get_configs()
Get Scan configurations. -
BurpGraphQl.start_scan(str_siteID, str_config_id)
- Start a Scan on Burpsuite Enterprise. Example :
configs = obj.get_configs() siteid = obj.get_site_id("http://insecure-site") if siteid is not None: scan = obj.start_scan(siteid, "8741f9d8-8624-48b4-af2b-e9bcebf012dd") # Start Scan
-
BurpGraphQl.SiteTree()
Returns all Sites in Burpsuite Enterprise. -
BurpGraphQl.new_site(str_folderid, str_sites)
Create a new Site in Burpsuite Enterprise. -
BurpGraphQl.stop_scan(str_scan_id)
Stop a scan. -
BurpGraphQl.scan_info(str_scan_ID)
Get Scan information. -
BurpGraphQl.get_report(str_scan_ID)
Get Scan Report. (HTML) -
BurpGraphQl.get_folder_id(str_folder_name)
Get Folder ID. -
BurpGraphQl.get_site_id(str_site_name)
Get Site ID. -
BurpGraphQl.get_scan_id(str_site_name)
Get Scan ID. -
get_percentage(str_site_name)
Get Scan Percentage.
Examples
Start a Scan on burpsuite enterprise.
configs = obj.get_configs()
siteid = obj.get_site_id("http://insecure-site")
if siteid is not None:
scan = obj.start_scan(siteid, "8741f9d8-8624-48b4-af2b-e9bcebf012dd") # Start Scan
Create New Folder and Add Sites to it
obj = obj.create_folder("0", "Folder1")
folder_id = obj.get_folder_id("Folder1")
print("Created folder with id {}".format(folder_id))
new_site = obj.new_site(folder_id, "http://insecure-site")
print(new_site)
Contributing
Hello! Help me in improving this module for people who want to integrate the amazing Burpsuite Enterprise. Fork and Create a pull request!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file BurpGraphQl-1.5.tar.gz
.
File metadata
- Download URL: BurpGraphQl-1.5.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2bcc2f12054ff48827b0bc6995f4bae49bb8956ace87b6ca0257d4a53f5b2f4 |
|
MD5 | b95bb5c8184aee3740dbbe5d8dca4b76 |
|
BLAKE2b-256 | 576f98683a08ab4165a6a5fc5a7e934707b86338a4e91273a4260cedd7c6c132 |