mirror of
https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite.git
synced 2025-12-06 09:01:29 +00:00
Fix exclude modules on linPEASS
This commit is contained in:
@@ -292,9 +292,12 @@ class LinpeasBaseBuilder:
|
|||||||
all_module_paths += self.enumerate_directory(LINPEAS_PARTS["variables"])
|
all_module_paths += self.enumerate_directory(LINPEAS_PARTS["variables"])
|
||||||
|
|
||||||
for module in LINPEAS_PARTS["modules"]:
|
for module in LINPEAS_PARTS["modules"]:
|
||||||
|
exclude = False
|
||||||
for ex_module in exclude_modules:
|
for ex_module in exclude_modules:
|
||||||
if ex_module in module["folder_path"] or ex_module in [module["name"], module["name_check"]]:
|
if ex_module in module["folder_path"] or ex_module in [module["name"], module["name_check"]]:
|
||||||
continue
|
exclude = True
|
||||||
|
break
|
||||||
|
if exclude: continue
|
||||||
all_module_paths += self.enumerate_directory(module["folder_path"])
|
all_module_paths += self.enumerate_directory(module["folder_path"])
|
||||||
|
|
||||||
for module in all_module_paths:
|
for module in all_module_paths:
|
||||||
|
|||||||
Reference in New Issue
Block a user