From d41f48853a42944107e35317fefcad863ec67558 Mon Sep 17 00:00:00 2001 From: James Barnett Date: Mon, 3 Dec 2018 16:46:30 -0600 Subject: [PATCH] Use to_s when printing credential private --- lib/msf/ui/console/command_dispatcher/creds.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/msf/ui/console/command_dispatcher/creds.rb b/lib/msf/ui/console/command_dispatcher/creds.rb index a38ab83317..0c96933d6f 100644 --- a/lib/msf/ui/console/command_dispatcher/creds.rb +++ b/lib/msf/ui/console/command_dispatcher/creds.rb @@ -428,7 +428,7 @@ class Creds matched_cred_ids << core.id public_val = core.public ? core.public.username : "" - private_val = core.private ? core.private.data : "" + private_val = core.private ? core.private.to_s : "" realm_val = core.realm ? core.realm.value : "" human_val = core.private ? core.private.class.model_name.human : "" @@ -463,7 +463,7 @@ class Creds matched_cred_ids << core.id public_val = core.public ? core.public.username : "" - private_val = core.private ? core.private.data : "" + private_val = core.private ? core.private.to_s : "" realm_val = core.realm ? core.realm.value : "" human_val = core.private ? core.private.class.model_name.human : ""