1
0
mirror of https://github.com/calebstewart/pwncat.git synced 2024-11-30 20:34:15 +01:00

Added privesc output

This commit is contained in:
Caleb Stewart 2020-05-09 22:08:05 -04:00
parent 010d09d795
commit 0145a48357

View File

@ -605,6 +605,10 @@ class PtyHandler:
else: else:
try: try:
self.privesc.escalate(args.user, args.max_depth) 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: except privesc.PrivescError as exc:
util.error(f"escalation failed: {exc}") util.error(f"escalation failed: {exc}")