Skip to content

Commit 09dd5b8

Browse files
committed
fix check command to not require an rport _method_
1 parent c288dab commit 09dd5b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/msf/ui/console/module_command_dispatcher.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,10 @@ def check_simple(instance=nil)
209209
end
210210

211211
rhost = instance.datastore['RHOST']
212-
rport = nil
212+
rport = instance.datastore['RPORT']
213213
peer = rhost
214-
if instance.datastore['rport']
215-
rport = instance.rport
214+
if rport
215+
rport = instance.rport if instance.respond_to?(:rport)
216216
peer = "#{rhost}:#{rport}"
217217
end
218218

0 commit comments

Comments
 (0)