PEASS-ng/linPEAS/builder
Dante fa5578b2ff
Refactor peasLoaded.py for Improved Efficiency
This pull request introduces a set of improvements to the peasLoaded.py file, aimed at enhancing the readability, maintainability, and performance of the code. The key changes include:

- Indentation Correction: Fixed the indentation to comply with Python standards, ensuring proper code block recognition and avoiding potential runtime errors.

- List Comprehension: Implemented list comprehension for the creation of FileRecord instances, which simplifies the code structure and improves readability.

- Configuration Handling: Streamlined the access to the config dictionary by extracting it once at the beginning of the loop, reducing repetitive code and potential access errors.

- Default Value Usage: Utilized the .get() method with default values from DEFAULTS for both `auto_check` and `exec` keys.

These changes do not alter the core functionality of the code but provide a cleaner and more efficient approach to the existing logic.

Please review the changes and let me know if there are any concerns or further improvements that can be made.
2024-05-05 14:50:25 +02:00
..
linpeas_parts Update 3_cloud.sh 2024-04-08 11:31:00 +02:00
src Refactor peasLoaded.py for Improved Efficiency 2024-05-05 14:50:25 +02:00
__init__.py update 2021-06-17 19:29:28 +01:00
linpeas_builder.py Update linpeas_builder.py 2023-07-25 12:22:14 -05:00