Skip to content

Karanmaurya003/BugBounty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Here's a sample README.md content that outlines all the necessary steps for setting up and running the script:

# Automated Bug Bounty Script

This repository contains a Python-based script for automating bug bounty tasks, focusing on subdomain enumeration, alive subdomain checks, and vulnerability scanning using popular tools such as **Subfinder**, **httpx**, and **WPScan**. 

## Requirements

Before running the script, make sure to install the following tools and dependencies:

### 1. **Python** (>= 3.6)
Ensure Python is installed on your system. You can verify by running:

```bash
python --version

If Python is not installed, download and install it from here.

2. Required Python Libraries

The script uses several Python libraries for interacting with external tools and performing HTTP requests. Install the dependencies using pip:

pip install -r requirements.txt

Make sure to have requirements.txt file in the repository with the following content:

requests
subprocess

3. Subfinder

  • Subfinder is a tool for discovering subdomains. Install it by following the instructions from its GitHub page: Subfinder Installation.

    Example:

    wget https://github.com/projectdiscovery/subfinder/releases/download/v2.4.3/subfinder-linux-amd64.tar.gz
    tar -xvzf subfinder-linux-amd64.tar.gz
    mv subfinder /usr/local/bin/

4. httpx

  • httpx is used to find alive subdomains and identify services and technologies. Install it by following the instructions from its GitHub page: httpx Installation.

    Example:

    wget https://github.com/projectdiscovery/httpx/releases/download/v1.0.0/httpx-linux-amd64-v1.0.0.tar.gz
    tar -xvzf httpx-linux-amd64-v1.0.0.tar.gz
    mv httpx /usr/local/bin/

5. WPScan (Optional)

  • WPScan is used for vulnerability scanning on WordPress-based sites. Install it by following the instructions from its GitHub page: WPScan Installation.

    Example:

    sudo apt-get install wpscan
  • Get WPScan API Token (Required for WPScan): You can obtain an API token by signing up on the WPScan website: WPScan API.

6. Git (Optional)

Make sure you have Git installed for version control and to clone this repository:

git --version

If not installed, you can install it from here.

7. Setting Up WPScan API Token

For WPScan to function properly, you need to set your API token. Open a terminal and run:

echo 'export WPSCAN_API_TOKEN="your_api_token"' >> ~/.bashrc  # for bash users
source ~/.bashrc

Or, for zsh users:

echo 'export WPSCAN_API_TOKEN="your_api_token"' >> ~/.zshrc
source ~/.zshrc

Make sure to replace "your_api_token" with your actual WPScan API token.

How to Use the Script

  1. Clone the repository:

    git clone https://github.com/Karanmaurya003/BugBounty.git
    cd BugBounty
  2. Run the script:

    The script takes a file with a list of domains to scan. Make sure the file is in the same directory or provide the full path.

    python3 bug_bounty_automation.py --input domains.txt

    Replace domains.txt with the filename containing the list of domains.

Script Features

  • Subdomain Enumeration using Subfinder
  • Alive Subdomain Checking and service/technology detection using httpx
  • Vulnerability Scanning using WPScan for WordPress-based subdomains

Output

The script will output:

  • Subdomains based on the technologies detected (e.g., WordPress, PHP, SQL, etc.)
  • Vulnerabilities for WordPress sites (if applicable)
  • All results will be saved in separate files based on technology (e.g., wordpress_subdomains.txt)

Known Issues

  • Ensure you have the necessary permissions to run these tools.
  • Some tools may need elevated privileges (e.g., WPScan).

License

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


Feel free to open an issue if you encounter any problems or have questions about how to use the script!


---

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages