Giter Site home page Giter Site logo

xss's Introduction

XSS Automation Script

This Bash script automates the process of collecting and analyzing domain reconnaissance data. It is designed for bug bounty hunting and penetration testing, utilizing various tools to gather URLs, subdomains, and potential XSS vulnerabilities for a given domain.

Features

  • Automatic Installation: Installs necessary tools for reconnaissance and vulnerability scanning.
  • Domain Data Collection: Gathers data using waybackurls, gau, subfinder, and more.
  • Subdomain Discovery: Identifies active subdomains with httpx.
  • URL Crawling: Uses gospider, hakrawler, and katana for in-depth URL analysis.
  • Path Deduplication: Normalizes and removes duplicate URLs with uro.
  • Live Endpoint Check: Verifies live endpoints using httpx.
  • XSS Vulnerability Detection: Uses gf and dalfox to identify potential XSS vulnerabilities.

Prerequisites

Ensure you have the following installed on your system:

Installation

Clone the repository and run the script to set up all necessary tools:

git clone https://github.com/dirtycoder0124/XSS-Automation.git
cd XSS-Automation
chmod +x xss_automation.sh

Note

Before use, remember to replace the Blind XSS payload with your own in the xss_automation.sh file, or remove the -b option completely. image

The script will install the following tools if they are not already installed:

  • waybackurls
  • gau
  • anew
  • subfinder
  • httpx
  • gospider
  • hakrawler
  • katana
  • dalfox
  • uro
  • gf

Usage

Run the script and follow the prompts to perform reconnaissance on a domain:

./xss_automation.sh

image

  • Enter the domain name when prompted.
  • Enter the payloads.txt file if you want. If not, you can choose default.
  • The script will create a results/<domain> directory to store output files.
  • Each tool will generate specific data files, which will be saved in the corresponding directory.

Output Files

The script generates several output files for each domain:

  • wayback.txt: URLs from Wayback Machine.
  • gau.txt: URLs from Google All URLs.
  • subdomains.txt: List of discovered subdomains.
  • activesubs.txt: Active subdomains.
  • gospider.txt, hakrawler.txt, katana.txt: URLs crawled from various sources.
  • paths.txt: Combined and deduplicated list of URLs.
  • live_uro1.txt: Live endpoints.
  • xss_ready.txt: Potential XSS vectors.
  • Vulnerable_XSS.txt: Confirmed XSS vulnerabilities. image

Legal Disclaimer

This script is intended for educational purposes only. It is designed for use in authorized bug bounty programs and penetration testing engagements. The author is not responsible for any illegal activity or misuse of this tool. Ensure you have proper authorization before using this script on any target.

Troubleshooting

If you encounter any issues with installation or execution, ensure that your environment meets all prerequisites and that your GOPATH and PATH are correctly set.

Contributing

Contributions are welcome! Please submit a pull request or open an issue to suggest improvements or report bugs.

Acknowledgments

  • Inspired by various open-source reconnaissance tools and methodologies.
  • Special thanks to the authors of the tools used in this script.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.