We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9a7d1b2 + 0d9fbe7 commit 643329eCopy full SHA for 643329e
app/concerns/metasploit/credential/core/to_credential.rb
@@ -9,8 +9,8 @@ module Metasploit::Credential::Core::ToCredential
9
10
def to_credential
11
Metasploit::Framework::Credential.new(
12
- public: public.try(:username),
13
- private: private.try(:data),
+ public: public.try(:username) || '',
+ private: private.try(:data) || '',
14
private_type: private.try(:type).try(:demodulize).try(:underscore).try(:to_sym),
15
realm: realm.try(:value),
16
realm_key: realm.try(:key),
0 commit comments