Use to_s when printing credential private

GSoC/Meterpreter_Web_Console
James Barnett 2018-12-03 16:46:30 -06:00
parent 50c5eeee1d
commit d41f48853a
No known key found for this signature in database
GPG Key ID: 647983861A4EC5EA
1 changed files with 2 additions and 2 deletions

View File

@ -428,7 +428,7 @@ class Creds
matched_cred_ids << core.id matched_cred_ids << core.id
public_val = core.public ? core.public.username : "" 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 : "" realm_val = core.realm ? core.realm.value : ""
human_val = core.private ? core.private.class.model_name.human : "" human_val = core.private ? core.private.class.model_name.human : ""
@ -463,7 +463,7 @@ class Creds
matched_cred_ids << core.id matched_cred_ids << core.id
public_val = core.public ? core.public.username : "" 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 : "" realm_val = core.realm ? core.realm.value : ""
human_val = core.private ? core.private.class.model_name.human : "" human_val = core.private ? core.private.class.model_name.human : ""