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:
parent
010d09d795
commit
0145a48357
@ -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}")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user