A tool made in Python
for finding vulnerabilities in JavaScript
code.
-
Set up the virtual environment:
python -m venv analyser_env source analyser_env/bin/activate # Unix/macOS # or .\analyser_env\Scripts\activate # Windows
-
Install dependencies:
pip install -r requirements.txt
-
Run the analyzer:
cd js_analyzer python js_analyser.py <program>.js <program>.patterns.json
The output will be in js_analyzer/output/<program>.output.json
Execute tests with:
cd js_analyzer
python run_test.py
Test cases are located in the tests/
directory (T58-01 through T58-12). These are the tests added to test additional features beyond the project's requirements.