Xray automation Script
This repository contains a Bash script for downloading and using Xray to scan websites for vulnerabilities. The script provides options to scan a list of URLs from a file or a single URL, and it can also handle downloading Xray if it is not already installed.
Features
- Scan a list of URLs from a text file.
- Scan a single URL.
- Download Xray if it is not already installed.
- Help documentation to guide users.
Requirements
- Bash
wgetunzippython3withvenvmodulepip(Python package installer)
Usage
Download Xray
To download Xray if it is not already installed, use:
./xray.sh -d
Scan a List of URLs
To scan a list of URLs from a file:
./xray.sh -f <file.txt>
Scan a Single URL
To scan a single URL:
./xray.sh -s <url>
Display Help
To display help information:
./xray.sh -h
Output
The scan results will be saved in a file named vuln.txt, and the results will also be displayed in the terminal.
Notes
- Make sure you have the necessary permissions to execute the script.
- You might need to run the script with
sudoif you encounter permission issues during installation.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Feel free to customize any section based on your preferences or specific details about your project! If you need any further adjustments, just let me know.