First off, thank you for considering contributing! Your help is appreciated.
To add a new scanner, follow these steps:
- Create a new Python file in the
modules/directory (e.g.,modules/new_scan.py). - Implement your scan logic inside a function. This function should accept the target URL or IP and other necessary parameters.
- Return a list of findings. Each finding should be a dictionary with keys like
title,severity,description, andremediation. - Import and integrate your new module into
scanner.py. Add it to the list of scans to be executed.
To ensure the quality of the code, please run the test suite before submitting a pull request.
-
Install the development dependencies:
pip install -r requirements.txt
-
Run the tests using pytest:
pytest
This will run all the tests in the tests/ directory. Make sure all tests pass before submitting your changes.