private can be nil

GSoC/Meterpreter_Web_Console
h00die 2019-02-18 20:30:08 -05:00
parent 1da5190cd9
commit e25abebd80
1 changed files with 5 additions and 1 deletions

View File

@ -505,7 +505,11 @@ class Creds
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 : ""
jtr_val = core.private.jtr_format ? core.private.jtr_format : ""
if human_val == ""
jtr_val = "" #11433, private can be nil
else
jtr_val = core.private.jtr_format ? core.private.jtr_format : ""
end
row += [
public_val,