This repository contains a Python script that automates the process of running Rustscan on a list of subdomains, storing the results in XML format, and merging the individual XML files into a single aggregated XML file. The script also converts the aggregated XML to an HTML report for easier analysis.
Provides Subdomains along with their IPs in a single file.
Before running the script, ensure you have the following installed on your system:
- Python 3.x
- Rustscan
xsltproc
(for converting XML to HTML)
- Clone this repository to your local machine:
git clone https://github.com/Somchandra17/Rustscan-XML-Aggregator.git
- Ensure Rustscan is installed and accessible from the command line. You can install Rustscan using:
cargo install rustscan
- Ensure xsltproc is installed on your system. You can install it using:
sudo apt-get install xsltproc # On Debian/Ubuntu
brew install xsltproc # On macOS
- Prepare a file containing the list of subdomains, each on a new line. For example, subdomains.txt:
example.com
test.example.com
anotherdomain.com
- Run the python script:
python aggregator.py
- When prompted, enter the path to your subdomains file:
Enter the path to the subdomains file: subdomains.txt
The script will:
> Run Rustscan for each domain in the subdomains file.
> Store the output XML files in the results directory.
> Add the domain name to each resulting XML file.
> Merge all the XML files into a single file named aggregated_results.xml.
> Convert the aggregated XML to an HTML report named report.html.
This was used from l4rm4nd. Check the repositry nmap-bootstrap-xsl