From 0145a483576755d327d1e06369af4f55a0437208 Mon Sep 17 00:00:00 2001 From: Caleb Stewart Date: Sat, 9 May 2020 22:08:05 -0400 Subject: [PATCH] Added privesc output --- pwncat/pty.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pwncat/pty.py b/pwncat/pty.py index eaef489..6d9add9 100644 --- a/pwncat/pty.py +++ b/pwncat/pty.py @@ -605,6 +605,10 @@ class PtyHandler: else: try: self.privesc.escalate(args.user, args.max_depth) + util.success("privilege escalation succeeded using:") + for i, (technique, _) in enumerate(chain): + arrow = "{Fore.YELLOW}\u2ba1{Fore.RESET} " if i > 0 else "" + print(f"{i*' '}{arrow}{technique}") except privesc.PrivescError as exc: util.error(f"escalation failed: {exc}")