This script generates a JSON file based on the OWASP Testing Checklist Excel file. The generated JSON file can be used for integrating OWASP testing procedures into the SwiftnessX application.
-
Download the OWASP Testing Checklist Excel file:
-
Install the necessary Python modules.
-
Download the OWASP Testing Checklist Excel file:
- You can download it directly from the OWASP Testing Checklist repository.
-
Install the required Python modules: To install the required Python modules, run the following command:
pip install -r requirements.txt
-
Run the script: Once the modules are installed, you can run the script by providing the Excel file as input. For example:
python generate_checklist.py OWASP_WSTG_Checklist.xlsx
You can also specify an output JSON file name:
python generate_checklist.py OWASP_WSTG_Checklist.xlsx output_checklist.json
-
Output: The script will generate a JSON file (
owasp_checklist.jsonby default) with the structured OWASP Testing Checklist data. This JSON can be used for further processing or integration with SwiftnessX.
-
Téléchargez le fichier Excel de la checklist OWASP :
- Vous pouvez le télécharger directement depuis le dépôt OWASP Testing Checklist.
-
Installez les modules Python nécessaires : Pour installer les modules Python requis, exécutez la commande suivante :
pip install -r requirements.txt
-
Exécutez le script : Une fois les modules installés, vous pouvez exécuter le script en fournissant le fichier Excel en entrée. Par exemple :
python generate_checklist.py OWASP_WSTG_Checklist.xlsx
Vous pouvez également spécifier un nom de fichier JSON de sortie :
python generate_checklist.py OWASP_WSTG_Checklist.xlsx output_checklist.json
-
Sortie : Le script générera un fichier JSON (
owasp_checklist.jsonpar défaut) avec les données structurées de la checklist OWASP. Ce fichier JSON peut être utilisé pour un traitement ultérieur ou pour l'intégration dans SwiftnessX.
generate_checklist.py: The script that converts the OWASP Testing Checklist from Excel to JSON format.requirements.txt: Contains the necessary Python dependencies for the script.
openpyxl: Used for reading Excel files.uuid: Generates unique identifiers for each checklist item.
You can install the required dependencies using the command:
pip install openpyxlFeel free to contribute to the repository if you have any improvements or bug fixes!