From a2552b5439d216f5726b1ba16cdae48dddfe21f6 Mon Sep 17 00:00:00 2001 From: Caleb Stewart Date: Tue, 2 Jun 2020 22:26:34 -0400 Subject: [PATCH] Added status output while loading privesc methods --- pwncat/privesc/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pwncat/privesc/__init__.py b/pwncat/privesc/__init__.py index 3097c44..6847d49 100644 --- a/pwncat/privesc/__init__.py +++ b/pwncat/privesc/__init__.py @@ -43,6 +43,7 @@ class Finder: def load_package(self, path: list): + util.progress("loading privesc methods") for loader, module_name, is_pkg in pkgutil.walk_packages(path): method_module = loader.find_module(module_name).load_module(module_name) @@ -54,11 +55,14 @@ class Finder: continue try: + util.progress(f"loading privesc methods: {method_module.Method.name}") method_module.Method.check() self.methods.append(method_module.Method()) except PrivescError: pass + util.erase_progress() + def search(self, target_user: str = None) -> List["Technique"]: """ Search for privesc techniques for the current user to get to the target user. If target_user is not specified, all techniques for all