[SSH] Logic fix

Signed-off-by: Xiaoli Chan <2209553467@qq.com>
main
Xiaoli Chan 2023-10-08 00:02:08 +08:00
parent ea62e42526
commit 95ccfca992
1 changed files with 2 additions and 3 deletions

View File

@ -269,13 +269,12 @@ class ssh(connection):
if self.args.key_file:
password = f"{process_secret(password)} (keyfile: {self.args.key_file})"
display_shell_access = "- {} {} {}".format(
display_shell_access = "{} {} {}".format(
f"({self.user_principal})" if self.admin_privs else f"(non {self.user_principal})",
self.server_os_platform,
'- Shell access!' if shell_access else ''
)
# Force show pwn3d label
self.admin_privs = True
self.logger.success(f"{username}:{password} {self.mark_pwned()} {highlight(display_shell_access)}")
return True