Skip to main content

A tool for managing Bug Bounty SA programs in Saudi Arabia

Project description

Bug Bounty SA CLI Tool

A command-line interface tool for managing and analyzing Bug Bounty SA programs. This tool helps security researchers track programs, analyze scopes, and extract domains from the Bug Bounty SA platform.

Features

  • ๐Ÿ” Fetch and analyze Bug Bounty SA programs
  • ๐Ÿ“Š Display detailed program analysis including bounty ranges
  • ๐ŸŒ Extract and manage program domains
  • ๐Ÿ’พ Save program data locally for offline access
  • ๐ŸŽฏ Filter programs by name or status
  • ๐Ÿ“œ Multiple output formats (JSON/TXT)

Installation

Using pip

pip install bugbountysa

From Source

git clone https://github.com/ShulkwiSEC/bugbountysa.git
cd bugbountysa
pip install -e .

Usage

Basic Commands

# Show all programs with analysis
bugbountysa

# Extract domains only
bugbountysa --domains

# Save all data
bugbountysa --save

# Process specific program
bugbountysa --program "Program Name"

# Show only active programs
bugbountysa --active-only

# Export all domains to a file
bugbountysa --all-domains --output-file domains.txt

# JSON output
bugbountysa --format json

Command Line Options

Option Description
--save Save data to output directory
--output-dir DIR Specify output directory (default: output)
--output-file FILE Save output to a file
--format {json,txt} Output format
--domains Show domains only
--all-domains Export all domains in a single list
--no-analysis Skip analysis output
-v, --verbose Verbose output
--quiet Suppress all non-error output
--program NAME Process specific program by name
--active-only Only process active programs

Output Structure

When using --save, the tool creates the following directory structure:

output/
โ”œโ”€โ”€ programs.json
โ””โ”€โ”€ program_name/
    โ””โ”€โ”€ scopes/
        โ”œโ”€โ”€ scope_{id}.json
        โ””โ”€โ”€ domains.txt

Example Output

Program Analysis

โ”Œโ”€โ”€โ”€[ Program: Example Program ]โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
โ”‚ Status       : ACTIVE
โ”‚ Type         : PUBLIC
โ”‚ Platform     : Web
โ”‚ Start Date   : 2025-02-25
โ”‚ End Date     : 2025-05-12 (26 days remaining)
โ”‚ Duration     : 76 days
โ”‚ Policy Size  : 2286 chars
โ”‚ Out of Scope : 1766 chars

โ”œโ”€โ”€โ”€[ Bounty Ranges (SAR) ]
โ•’โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•คโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•คโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ••
โ”‚ Severity   โ”‚ Range       โ”‚ Visual                         โ”‚
โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ชโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ชโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ก
โ”‚ Critical   โ”‚ 5238 โ€“ 7000 โ”‚ 5238โ€“7000 SAR [โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– ] โ”‚
โ”‚ High       โ”‚ 2729 โ€“ 5082 โ”‚ 2729โ€“5082 SAR [โ– โ– โ– โ– โ– โ– โ– โ– โ– โ– ]     โ”‚
โ”‚ Medium     โ”‚ 916 โ€“ 2635  โ”‚ 916โ€“2635 SAR [โ– โ– โ– โ– โ– ]           โ”‚
โ”‚ Low        โ”‚ 500 โ€“ 885   โ”‚ 500โ€“885 SAR [โ– ]                โ”‚
โ•˜โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•งโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•งโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•›

Configuration

Environment Variables

Copy .env.example to .env and set your configuration:

cp .env.example .env

Required environment variables:

  • ACCOUNT_TOKEN: Your Bug Bounty SA API token

The tool uses the following configuration settings:

  • API_ENDPOINT: The Bug Bounty SA API endpoint
  • HEADERS: API authentication headers
  • OUTPUT_DIR: Default output directory for saved data

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Acknowledgments

  • Bug Bounty SA Platform for providing the API
  • The bug bounty community in Saudi Arabia

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

bugbountysa-1.0.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bugbountysa-1.0.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file bugbountysa-1.0.0.tar.gz.

File metadata

  • Download URL: bugbountysa-1.0.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for bugbountysa-1.0.0.tar.gz
Algorithm Hash digest
SHA256 08089a66203a3cf891e60a11ae4c95a6e8df50661995d2b78350b5fd76236303
MD5 a04ab0b8679f08b243b4da7f9db5738c
BLAKE2b-256 90009058931d5b277dbb1702e09e5dd66e967287ca3ffa2240f2d406338811c6

See more details on using hashes here.

File details

Details for the file bugbountysa-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: bugbountysa-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for bugbountysa-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc0ffa86b2040ee31aaa3f4007294b831b4d5be7099b44278669faf7ce0ad948
MD5 d2d91e304182f486b6cfb499942c0345
BLAKE2b-256 4af0817b590b6fbe9cf24c31439c82e843cae1085525d876c53faf699f008ac4

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