File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -75,8 +75,10 @@ def inspect
75
75
def to_s
76
76
if realm && realm_key == Metasploit ::Model ::Realm ::Key ::ACTIVE_DIRECTORY_DOMAIN
77
77
"#{ self . realm } \\ #{ self . public } :#{ self . private } "
78
- else
78
+ elsif self . private
79
79
"#{ self . public } :#{ self . private } #{ at_realm } "
80
+ else
81
+ self . public
80
82
end
81
83
end
82
84
Original file line number Diff line number Diff line change @@ -566,7 +566,6 @@ def print_brute(opts={})
566
566
else
567
567
level = opts [ :level ] . to_s . strip
568
568
end
569
-
570
569
host_ip = opts [ :ip ] || opts [ :rhost ] || opts [ :host ] || ( rhost rescue nil ) || datastore [ 'RHOST' ]
571
570
host_port = opts [ :port ] || opts [ :rport ] || ( rport rescue nil ) || datastore [ 'RPORT' ]
572
571
msg = opts [ :msg ] || opts [ :message ] || opts [ :legacy_msg ]
You can’t perform that action at this time.
0 commit comments