The Amass-Log-to-CSV tool is a Python script designed to transform the output from an Amass scan into a more manageable CSV file format. This conversion facilitates easier data manipulation and analysis, allowing users to extract valuable insights from their Amass scan results.
-
Perform an Amass scan and save the output to a log file using the following command:
sudo amass enum -active -d anir0y.in -p 21,22 -o anir0y.log
-
Run the provided Python script to convert the Amass log file to CSV format. Use the following command in the command-line interface (CLI):
python3 amass-log-to-csv.py anir0y.log
-
The script will create an output CSV file with the same name as the input log file, but with the
.csv
extension. For example, if the input file isanir0y.log
, the output file will beanir0y.csv
. -
IF you just want domain names
cat anir0y.log | grep a_record| awk -F ' ' '{print $1}' | sort | uniq | tee tmp.log
After that
python3 amass-log-to-csv.py tmp.log
Ensure you have the required Python packages installed by running the following command:
pip install -r requirements.txt