This script is designed to scan a specified file or directory for known vulnerabilities using Retire.js. It prompts the user for a path, checks if Retire.js is installed (installing it if necessary), and then runs a Retire.js scan on the provided path.
Node.js and npm should be installed on your system.
-
Run the Script
-
Execute the script from your terminal:
./script_name.sh
-
-
Provide Path
- When prompted, enter the file or directory path you want to scan.
-
Scan Results
- The script will install Retire.js if it is not already installed.
- It will then run a Retire.js scan on the specified path and display the results.
This Python script reads a Retire.js JSON output file, processes the vulnerabilities by severity, and generates an HTML file containing a pie chart visualizing the severity distribution using D3.js.
- Python 3.x
d3.js
(loaded from CDN in the HTML file)- No additional Python libraries are required
Clone the Repository:
git clone https://github.com/pratiyk/audit-scanner