diff --git a/lib/msf/ui/console/command_dispatcher/core.rb b/lib/msf/ui/console/command_dispatcher/core.rb index bbe807bdf9..31cfc5d438 100644 --- a/lib/msf/ui/console/command_dispatcher/core.rb +++ b/lib/msf/ui/console/command_dispatcher/core.rb @@ -2377,7 +2377,7 @@ class Core # List all hosts in the database else - framework.db.each_host(framework.db.workspace) do |host| + framework.db.hosts.each do |host| res << host.address end end